Post Reply 
newRPL - build 1255 released! [updated to 1299]
06-03-2019, 01:12 PM
Post: #470
RE: newRPL - build 1255 released! [official and unofficial]
(06-03-2019 12:13 PM)Claudio L. Wrote:  
(06-03-2019 09:32 AM)Nigel (UK) Wrote:  Two points:
  • Entering '(0,1)' onto the stack and then pressing EVAL returns the list { '0' '1' } rather than the complex number (0,1). This may or may not be by design, but it surprised me.
  • Entering 'sqrt(-2)' onto the stack and then pressing EVAL crashes both the physical calculator and the PC emulator.
Both of these operations are carried out with the complex results flag checked.

I haven't used newRPL for a while and it is wonderful to see how much progress has been made. George R R Martin could learn a thing or two from Claudio!

Nigel (UK)

I updated the unofficial ROMs with a few bugfixes, I believe the crash you mentioned above should be resolved.
Also, complex numbers can't be expressed with parenthesis in a symbolic. You basically called a function without any name or command, therefore the list of arguments was returned as it was on the stack. This is part of the not-so-new support for multivalued functions in a symbolic. You can return multiple results and will be packed into a list.

Edit: Just for completeness, to express a symbolic you need to use a+b*i where the complex i is not the letter 'i' but the one on Alpha-LS-7.

This prompted me to test if it's possible to express complex numbers in polar form into symbolics: I found two issues.

1) (-1+i) = (sqrt(2),∡135º) so at first I tried to build 'sqrt(2)*e^(i*∡135º)' by steps: I failed because symbolic i units can't be multiplied by an angle using the '*' key. Nevertheless, typing the whole expression on the command line was accepted by the parser.

2) Evaluation gave a wrong result because I was in DEG mode and ∡135º was converted to 135 rather than 3*pi/4. Repeating the test in RAD mode returned the correct result.

IMHO multiplication of complex by angle should be allowed and considered a special case whereas the angle is always converted to a real in radians regardless current angular mode: it's the only case where there should be a deviation from the standard treatment which, in other situations, it's useful and straightforward.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
RE: newRPL - build 1001 released! - pier4r - 12-16-2017, 08:03 AM
newRPL - on Hp 39gs - Martin Hepperle - 06-05-2019, 06:51 AM
RE: newRPL - build 1001 released! - pier4r - 12-23-2017, 10:16 AM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 09:42 AM
t - Claudio L. - 01-01-2018, 03:06 PM
RE: newRPL - build 1001 released! - pier4r - 01-01-2018, 03:41 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 04:54 PM
RE: newRPL - build 1001 released! - pier4r - 01-02-2018, 06:58 PM
newRPL - brickviking - 10-05-2018, 06:01 AM
RE: newRPL - build 1255 released! [official and unofficial] - JoJo1973 - 06-03-2019 01:12 PM
How to participate? - erazor - 12-13-2019, 07:12 AM



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