Plus42 algebraic expressions update
|
02-25-2021, 05:39 PM
(This post was last modified: 02-25-2021 05:43 PM by Thomas Okken.)
Post: #9
|
|||
|
|||
RE: Plus42 algebraic expressions update
(02-25-2021 05:32 PM)Vincent Weber Wrote: Also, it would be great to define functions rather than just equations, like DEF F(X,Y,Z)=X+Y+Z, and reuse them in either equations or RPN program. The DEF syntax isn't needed. The function already defines its formal parameters simply by using them, i.e. the mechanism by which the calculator decides which variables to show in the CALC menu. The way I see it, you should be able to write, for example, QUAD:X^2-3*X+2 Or LBL "QUAD" MVAR "X" RCL "X" X^2 LASTX 3 * - 2 + END and use both exactly the same way, calling them using XEQ, or from SOLVE or INTEG. (An expression containing an equals sign would be evaluated by evaluating the LHS and RHS separately and then subtracting them from each other. I believe this is how the numerical solver in the 17B and 27S works as well. Conversely, an expression without an equals sign is interpreted by adding =0 to it when solved symbolically.) |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)