User-defined functions in Free42
|
01-14-2021, 02:08 AM
Post: #28
|
|||
|
|||
RE: User-defined functions in Free42
(01-14-2021 01:37 AM)Dave Britten Wrote: What about functions that should have different behaviors depending on the types/values of the inputs? Maybe a function takes two real arguments from the stack, but if X is complex, it only takes one. The COMPLEX function itself is one such example. For any semantics that FUNC doesn't cover, you can still write your own code. FUNC is supposed to make it easier to write the common types of user-defined functions, not be the ultimate solution for absolutely every imaginable type of function. Note that variable-number-of-arguments semantics are not common at all. As far as HP-42S built-in functions are concerned, the complete list is COMPLEX, R->P, and P->R. |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)