Post Reply 
Saving expressions?
03-21-2020, 08:26 PM (This post was last modified: 03-22-2020 02:37 AM by toml_12953.)
Post: #13
RE: Saving expressions?
(03-21-2020 08:18 PM)Dands Wrote:  I know it's possible to define functions in the TI Nspire calculators as follows:

[Image: Screen-Shot-2020-03-21-at-2-17-05-PM.png]

If I do this in that calculator, I can call the function anytime and pass values with no problem. I want to be able to do the same in my HP Prime. Ideas?

You can define functions in the Prime, too. Programs can be called as functions. Just Return the value you want at the end of the program.

Code:
EXPORT MED(Y,Z)
BEGIN
  RETURN [[1+Y*Z/2,Z],[Y*(1+Y*Z/4),1+Y*Z/2]];
END;

Tom L
Cui bono?
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Saving expressions? - Dands - 03-20-2020, 07:15 PM
RE: Saving expressions? - CyberAngel - 03-20-2020, 09:40 PM
RE: Saving expressions? - victorvbc - 03-21-2020, 03:30 AM
RE: Saving expressions? - Dands - 03-21-2020, 04:19 AM
RE: Saving expressions? - toml_12953 - 03-21-2020, 10:47 AM
RE: Saving expressions? - CyberAngel - 03-21-2020, 12:32 PM
RE: Saving expressions? - toml_12953 - 03-21-2020, 02:40 PM
RE: Saving expressions? - CyberAngel - 03-21-2020, 04:38 PM
RE: Saving expressions? - Dands - 03-21-2020, 04:58 PM
RE: Saving expressions? - CyberAngel - 03-21-2020, 05:23 PM
RE: Saving expressions? - victorvbc - 03-21-2020, 06:48 PM
RE: Saving expressions? - Dands - 03-21-2020, 08:18 PM
RE: Saving expressions? - toml_12953 - 03-21-2020 08:26 PM



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