Post Reply 
Little explorations with HP calculators (no Prime)
03-17-2018, 02:37 PM
Post: #276
RE: Little explorations with HP calculators (no Prime)
(03-16-2018 09:10 PM)pier4r Wrote:  Thanks to you and Dieter. I forgot indirect calls, and yes, that's it. So now I have also to check whether ti basic/casio basic have indirect calls.

I've not followed this thread in its entirety so I'm not sure which "dialect" of TI-Basic you mean.

If you mean the 68k version (TI-89 and 92 families of calculators) then the answer is an emphatic "YES!!" The indirection operator is the hash sign '#'. E.g.:

Code:
"funca"->funcb
2x^2->funca(x)

So, store the string "funca" in variable funcb and then define a function funca(x) that returns 2*x^2.

Code:
funca(10)  --  gives you 200.

#funcb(20)  --  gives you 800
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Little explorations with HP calculators (no Prime) - grsbanks - 03-17-2018 02:37 PM



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