Post Reply 
RPN-PRGM: New Windows console application emulating HP calculators
02-03-2021, 06:54 AM
Post: #16
RE: RPN-PRGM: New Windows console application emulating HP calculators
(01-20-2021 08:56 PM)Aacini Wrote:  So I have to wait until such companies answer my request... However, as one people at VirusTotal said: "1/60 and even 5/60 doesn’t automatically mean “Bad”, and 0/60 doesn't always mean good". You may use my RPN.exe program anyway if you trust me.

Antonio

Hallo Antonio,

I also trusted your RPN program and went for installation. (You are better than the programmer of TI59 simulator, who's program was blocked by my computer already during download - you can compare virus check results by yourself http://www.breatharian.eu/Petr/program/d.../TI-59.zip).

Your RPN.exe is very interesting and I played a little bit with it. I have to say I was very surprised and did not get reasoning that all the stack items get lost and "erased" to -1.#FLW when the stack underflows. I understand that with RPNPRGM you can use the switch but it might be useful to be able to change operation of the stack during interactive operation as well.

I know nothing about X86 assembly language and your tool is a nice bridge to it and more interestingly into FPU world as well.

Could you explain why I got different results for SIN COS TAN forensic test?

RPN: FPUPC:0 9 Deg Sin Cos Tan ATan ACos ASin FIX:16
9.0338335037231445

RPN: FPUPC:2 9 Deg Sin Cos Tan ATan ACos ASin FIX:16
9.0000000001046097

RPN: FPUPC:3 9 Deg Sin Cos Tan ATan ACos ASin FIX:16
8.9999999999999130

RPN.exe users manual Wrote:RPN FPUPC:0 9 Deg Sin Cos Tan ATan ACos ASin FIX:16. The exact result of this expression is 9, but the real results are 9.0338315963745117, 9.0000000001046061 and 9.0000000000002736 when the precision is set to 0, 2 and 3, respectively.

The result of this particular expression is affected by the multiple (6) conversions of the angular mode between the FPU native Radians to the requested Degrees. If the mode is keep in Radians and just two conversions are performed at beginning and end of the expression (RPN FPUPC:0 9 D->R Rad Sin Cos Tan ATan ACos ASin R->D FIX:16), then the precision of the results improves: 9.0000047683715820, 9.0000000000000071 and 9.0000000000000000. If you have an intensive trigonometric operations program you should perform all operations in Radians and just convert the final result to Degrees, if required; the results will be both better and faster.

For RAD I have the same result as you stated in the manual. I have an Intel CPU.

I decided to donate $10 and I admire your skills and effort. Thank you for sharing this program.

KR
Pavel
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: RPN-PRGM: New Windows console application emulating HP calculators - pavel nemec cz - 02-03-2021 06:54 AM



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