Post Reply 
HP Prime: how to insert and save formulas in a sort of "Equation library"
05-18-2020, 03:01 PM
Post: #18
RE: HP Prime: how to insert and save formulas in a sort of "Equation library"
Dear Bernard,
thank you very much for reply and for the programming code, which helps me in understanding how to create a programming code to build my own libraries...Thank you very much also for making everything as explicit, given that I am a novice with Prime...

I copied your programming code into the Connectivity Kit and I then synchronized with my Prime.
With the routine "Accounting" everything is OK and the solver works.
However the calculator pops up a "Synthax Error" when clicking on the routine "Economics" on my calculator.
The problem seems to be either in the variable declaration (which I suppose is contained in the EXPORT Row), or in the Syntax of following Economics equation:
E2:="PM=PV*(int)/()";

1. Can you please help me with the syntax error when clicking on Economics routine please? What represent () in E2 row above?

2. I have some general question about your programming code:
2a "EXPORT Lib,int;"
=> Question: I do not understand why "int" (which is an equation under "Economics" is written here).
What represent this first EXPORT row represents and what must contain?

2b "EXPORT SP,NP,TR,TC,TFC,TVC,VC;"
=> Question: o SP,NP,TR,... represent the variables of routine "Accounting" that we have to declare?

EXPORT n,PM,PRV;
2c. do n,PM,PRV represent the variables of routine "Economics" that we have to declare?
Is the syntax error related to the fact that there are some variables missing here, like int,FV,PV?
Or is it because of ()?

3. For each routine "Accounting", "Economics",...is it possible to write more than 10 equation for each routine? OR I have to create more Routines "Accounting 1", "Accounting 2",...each containing a maximum of 10 equation each?

4. Where and how should variables be declared for each routine which contains equations?

5. If I do not remember in which routine I wrote an equation, is there a way on the calculator to look for the equation but digiting the equation in a "search..." buttom like in Microsoft Explorer? It could be difficult to remember the exact location of each equation.

I hope I've explained my doubts clearly to you.

Thank you very much in advance for your kind help. I'm looking forward to receive some information from you.

Best regards,

Mark
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: HP Prime: how to insert and save formulas in a sort of "Equation library" - marprime80 - 05-18-2020 03:01 PM



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