Re: 50G variable issue Message #7 Posted by C.Ret on 21 May 2012, 3:10 p.m., in response to message #4 by Kiyoshi Akima
Hi,
Right, inner sub-program structure and local variables allow a lot of fun in RPL.
But the « -> a b « ... » » structure is not the only possible way.
One useful structure with local variable is the 'user function'. In contrary of program/sub-program structure, 'user function' permits algebraic or symbolic evaluations, derivations and integrations.
Simply replace the unique inner « ... » sub-program structure by an algebraic expression '...a...b...'
Having two types of local variables structures also explain a inner structure (program or algebraic object) is needed.
« -> a b 'a^2+a*b+b*b' »
P.S. Bart's message meets mine in the Internet Wires !
Edited: 21 May 2012, 3:14 p.m.
|