Re: local variables Message #6 Posted by Gilles Carpentier on 19 Sept 2012, 9:14 a.m., in response to message #1 by brooky
Hi,
as Marcus wrote, the ->TAG function is just for labels data on the stack.
There are several way for your calculation :
<< -> a b '((b-a)/5)+b' >>
<< -> a b << b a - 5 / b + >> >>
or just
<< DUP ROT - 5 / + >>
Not that, in all cases, if you name your program for example 'f', you can use it in RPN or Algrabraic :
5 6 f
'f(5,6)' EVAL
or just
`f(5,6)`
The result will be 6.2
I recommand you to debug each program to see what happens
PS : My RPL is for 49 and 50G.
Edited: 19 Sept 2012, 1:40 p.m. after one or more responses were posted
|