--- In 50g@yahoogroups.com, Mateusz Drabek <sq9iws@...> wrote:
This should do something similar to what you want:
<< ¨ a b c d
<< a "Value a" ¨TAG
b "Value b" ¨TAG
c "Value c" ¨TAG
d "Value d" ¨TAG
"(" d ¨STR +
"*" + a ¨STR +
")-(" + b ¨STR +
"*" + a ¨STR +
")" +
"---------"
"(" c ¨STR +
"-" d ¨STR +
")" +
"RESULT:"
d a * b a * -
c d - /
~S
>example:
> Hello!
> Could somebody help me or write simple programme for HP-50g.
> I have never programmed and I don't know how to deal with.
> Currently for each time I write in the values manually in EQW.
>
> I have 4 values and I must make calculation according to formula:
>
> (d*a)-(b*a)
> -----------
> (c-d)
>
> I would like that after runing the programm I should give for
> "Value: a:"Hi Mateusz,
> "Value: b:"
> "Value: c:"
> "Value: d:"
>
> (d*a)-(b*a)
> -----------
> (c-d)
>
> "RESULT:"
>
>
> Example:
> "Value: a:"
> 10
> "Value: b:"
> 0
> "Value: c:"
> 14
> "Value: d:"
> 5
>
> (5*10)-(0*10)
> -----------
> (14-5)
>
> "RESULT:"
> 5,55
>
>
> Regards,
> Mateusz
>
>
This should do something similar to what you want:
<< ¨ a b c d
<< a "Value a" ¨TAG
b "Value b" ¨TAG
c "Value c" ¨TAG
d "Value d" ¨TAG
"(" d ¨STR +
"*" + a ¨STR +
")-(" + b ¨STR +
"*" + a ¨STR +
")" +
"---------"
"(" c ¨STR +
"-" d ¨STR +
")" +
"RESULT:"
d a * b a * -
c d - /
>>Regards,
>>
~S
