Post Reply 
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.
Visit this user's website Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: User-defined functions in Free42 - Thomas Okken - 01-14-2021 02:08 AM



User(s) browsing this thread: 2 Guest(s)