Post Reply 
HP 50G help
08-06-2016, 03:26 PM (This post was last modified: 08-06-2016 04:08 PM by Vtile.)
Post: #44
RE: HP 50G help
(08-06-2016 12:11 PM)Hlib Wrote:  I had to ensure a proper understanding of my operation correctly with HP-50g, if I type 5 3 / EXE or <<5 3 />> EVAL, the calculator returns the result of 5/3, because the system flag -105 = 0 (exact mode) only works in manual mode. The program returns to me, for example, for << 105 SF 5 3 / >> or for <<105 CF 5 3 />> 1.6666 ... or sometimes 5/3 no matter if the user flag 105 = 1 or =0. The program returns 5/3 or 1.666 ... arbitrarily regardless of the system/user flags. I threw one of my HP-50g and bought another. But the problem persists. Rev 2.15.
Claudio, you have a special HP-50g calculator?

Did you mean
Code:
<< -105 SF 5 3 / >>
??? Exact mode can be used in programs also, I haven't found any hick-ups on that on UserRPL. Also regular 50g exact mode works differently if there is decimal number present. ie. there is difference how it works with calculations of
Code:
<< 5. 3 / >>
and
Code:
<< 5 3 / >>
while
Code:
<< 5. R->I 3 / >>
and
Code:
<< 5 3 / >>
should work the same. Also system flag -2 do enable partial "exact mode" for CAS, ie. if the calculation contains Pi symbol, it keeps the pi symbol and not give you aprox value, of the calculation until you use eval / ->num command.

R->I is command for converting real type numbers to integer type (get rid of that dot behind the number). XQ is another a bit different real / integer switch command.

Here is a small program to toggle between exact and approx mode. I did save it to one of the user keys for now.
Code:

<< -105 FS? -> X
  << IF 'X==1' THEN -105 CF "EXACT MODE" 1 DISP 1 FREEZE
       ELSE
       -105 SF "APPROX MODE" 1 DISP 1 FREEZE END
  >>
>>
And here is a small program to toggle between symbolic vs. numeric constants. ( System Flag 2 )
Code:

<< -2 FS? -> X 
<< IF 'X==1' THEN -2 CF "Pi = Pi Mode" 1 DISP 1 FREEZE ELSE
-2 SF "Pi = 3.142 Mode" 1 DISP 1 FREEZE 
END 
>> 
>>
And here is a program to toggle between the cylindrical and Rectangular modes. Now with proper RPN / RPL IF structure. (Original author unknown, maybe mr. Linares or maybe derived from HP28 era.)
Code:

<< -16 FS? -> X << X 0 == IF THEN CYLIN ELSE RECT END >> >>
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
HP 50G help - jrmc114064 - 04-23-2015, 04:11 AM
RE: HP 50G help - Gilles - 04-23-2015, 09:09 AM
RE: HP 50G help - jrmc114064 - 04-23-2015, 04:00 PM
RE: HP 50G help - Gilles - 04-25-2015, 12:48 PM
RE: HP 50G help - Marcio - 04-25-2015, 02:23 PM
RE: HP 50G help - Gilles - 04-25-2015, 02:38 PM
RE: HP 50G help - Marcio - 04-25-2015, 02:46 PM
RE: HP 50G help - Sukiari - 04-27-2015, 10:05 PM
RE: HP 50G help - Marcio - 04-27-2015, 10:13 PM
RE: HP 50G help - jrmc114064 - 04-23-2015, 04:08 PM
RE: HP 50G help - Tugdual - 04-23-2015, 09:08 PM
RE: HP 50G help - peacecalc - 04-23-2015, 10:23 PM
RE: HP 50G help - Tugdual - 04-24-2015, 07:16 AM
RE: HP 50G help - Marcus von Cube - 04-24-2015, 08:41 AM
RE: HP 50G help - Tugdual - 04-24-2015, 10:21 AM
RE: HP 50G help - Marcus von Cube - 04-24-2015, 11:08 AM
RE: HP 50G help - Tugdual - 04-24-2015, 11:52 AM
RE: HP 50G help - DavidM - 04-24-2015, 04:23 PM
RE: HP 50G help - Tugdual - 04-24-2015, 05:19 PM
RE: HP 50G help - Han - 04-24-2015, 05:32 PM
RE: HP 50G help - rprosperi - 04-24-2015, 05:33 PM
RE: HP 50G help - DavidM - 04-24-2015, 07:34 PM
RE: HP 50G help - Tugdual - 04-24-2015, 10:25 PM
RE: HP 50G help - Sukiari - 04-25-2015, 02:42 PM
RE: HP 50G help - Sukiari - 04-25-2015, 02:37 PM
RE: HP 50G help - Marcio - 04-24-2015, 01:25 AM
RE: HP 50G help - Hlib - 06-08-2015, 08:46 PM
RE: HP 50G help - Hlib - 07-23-2015, 04:26 PM
RE: HP 50G help - DavidM - 07-23-2015, 06:15 PM
RE: HP 50G help - rprosperi - 07-23-2015, 09:32 PM
RE: HP 50G help - Hlib - 07-23-2015, 10:18 PM
RE: HP 50G help - Brad Barton - 07-23-2015, 11:17 PM
RE: HP 50G help - rprosperi - 07-24-2015, 01:30 AM
RE: HP 50G help - Hlib - 07-23-2015, 08:40 PM
RE: HP 50G help - Hlib - 07-24-2015, 09:21 AM
RE: HP 50G help - Hlib - 08-14-2015, 04:25 PM
RE: HP 50G help - Claudio L. - 08-14-2015, 09:28 PM
RE: HP 50G help - Hlib - 03-17-2016, 06:22 PM
RE: HP 50G help - ttw - 03-17-2016, 10:41 PM
RE: HP 50G help - Hlib - 08-06-2016, 02:47 PM
RE: HP 50G help - Hlib - 08-05-2016, 02:44 PM
RE: HP 50G help - Claudio L. - 08-05-2016, 04:31 PM
RE: HP 50G help - Hlib - 08-06-2016, 12:11 PM
RE: HP 50G help - Vtile - 08-06-2016 03:26 PM
RE: HP 50G help - Massimo Gnerucci - 08-06-2016, 03:29 PM
RE: HP 50G help - Claudio L. - 08-06-2016, 07:23 PM
RE: HP 50G help - Claudio L. - 08-06-2016, 07:30 PM
RE: HP 50G help - Hlib - 08-06-2016, 08:05 PM
RE: HP 50G help - DavidM - 08-06-2016, 09:31 PM
RE: HP 50G help - Joe Horn - 08-07-2016, 10:59 PM
RE: HP 50G help - DavidM - 08-08-2016, 02:41 AM
RE: HP 50G help - rprosperi - 08-09-2016, 11:32 PM
RE: HP 50G help - DavidM - 08-10-2016, 01:44 AM
RE: HP 50G help - Vtile - 08-08-2016, 01:25 AM
RE: HP 50G help - Joe Horn - 08-08-2016, 12:17 PM



User(s) browsing this thread: 21 Guest(s)