Sorry,
I think I explained myself incorrectly.
What I meant was can each formula be written in one statement with the given arguments.
Registered forum members do not see this ad.
Hello to all,
Attached below are three formulas to solve for distance for ellipsodial heads of different types.
My question is can each formula be written in one argument or does it need to be written in several?
I am not completely sure how to break this down. Any help on this would be greatly appreciated.
Again Thank You in advance,
The Buzzard
Sorry,
I think I explained myself incorrectly.
What I meant was can each formula be written in one statement with the given arguments.
I probably overlooked something, but this should be a good example (your first function)...
Code:(defun foo (L r O D tt / _sq) (setq _sq (lambda (#) (* # #))) (- L (sqrt (- (_sq (- L r)) (_sq (/ (* O D) (apply '- (list 2 tt r))))))) ) ;_ defun
DropBox
Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...
Sorry again,
Fixo,
I do not mean to combine all three or a way to pick a formula.
For each formula above can the supplied arguments be put into one continuous statement for each formula.
Thanks Alan,
I think I can figure the rest from here.
But what is apply in the statement for.
DropBox
Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...
You don't have to use the _sq sub function. However, it saves you a lot of typing and condenses your routine quite a bit.
Code:(setq _sq (lambda (#) (* # #)))
DropBox
Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...
Alan,
I looked up apply Function,
Passes a list of arguments to, and executes, a specified function.
Thanks
Registered forum members do not see this ad.
DropBox
Seann: ...it went crazy ex-girlfriend on me...
eric_monceaux...its pretty funny seeing two AutoCAD Gods give each other flak...
Bookmarks