User Defined Variables within SOLVE Application
03-03-2014, 06:47 AM
Post: #9
 cyrille de brĂ©bisson Senior Member Posts: 1,047 Joined: Dec 2013
RE: User Defined Variables within SOLVE Application
Hello

Quote:It seems that although you can save an equation as a Home User Variable, say using F_P1:=fv=pv*(1+rate)^periods, you will have issues:
- You get a syntax error after you store the equation - even though it shows up in User Var properly
- If you try to assign it to a Solver APP with say Solve.E1:=F_P1 you will see 0 in E1: of the Solver App. Looks like its evaluating the variables ahead of time

Correct, you can not do what you wrote above. The reason for it is that althrough you can Crate F_P1 (by doing: fv:=1; pv:=1; rate:=1; periods:=1 ENTER in the command line followed by 4 ENTER) and then typing fv=pv*(1+rate)^periods inthe define dialog box, you can not 'recal' the function to store it into Solve.E1.
Solve.E1 needs to contain an equation, BUT typing F_P1 will evalutate F_P1 (using whichever values are in the variables), and doinf quote(F_P1) will just keep F_P1 as is...

What you CAN do would be to enter F_P1 in E1 (using a quoted STO OR typing it in the symbolic view) and then press on the eval menu key in the solve symbolic view as this does a recall of funcions, but without evaluating them.

You could also do Solve.E1:=quote(fv=pv*(1+rate)^periods)

Regards, cyrille
 « Next Oldest | Next Newest »

 Messages In This Thread User Defined Variables within SOLVE Application - Michael Lopez - 12-27-2013, 05:28 AM RE: User Defined Variables within SOLVE Application - Terje Vallestad - 12-27-2013, 10:34 AM RE: User Defined Variables within SOLVE Application - Michael Lopez - 12-27-2013, 10:32 PM RE: User Defined Variables within SOLVE Application - Terje Vallestad - 01-01-2014, 03:37 PM RE: User Defined Variables within SOLVE Application - Stevetuc - 02-28-2014, 07:28 AM RE: User Defined Variables within SOLVE Application - Terje Vallestad - 02-28-2014, 06:51 PM RE: User Defined Variables within SOLVE Application - CR Haeger - 01-12-2014, 08:14 PM RE: User Defined Variables within SOLVE Application - cyrille de brĂ©bisson - 03-03-2014 06:47 AM RE: User Defined Variables within SOLVE Application - CR Haeger - 03-22-2014, 12:37 PM RE: User Defined Variables within SOLVE Application - Michael Lopez - 01-15-2014, 10:09 AM

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