50g group photo

Yahoo Groups archive

50g

Index last updated: 2026-04-28 22:38 UTC

Message

Re: Program

2008-11-14 by Shawn D. King

--- In 50g@yahoogroups.com, Mateusz Drabek <sq9iws@...> wrote:
>
> 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 
example:
> "Value: a:"
> "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
> 
> 

Hi 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

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.