newRPL - build 1255 released! [updated to 1299]
05-23-2019, 02:06 PM
Post: #440
 Claudio L. Senior Member Posts: 1,840 Joined: Dec 2013
RE: newRPL - build 1089 released! [update:build 1158]
(05-23-2019 09:57 AM)JoJo1973 Wrote:  Very interesting... Evaluating

Code:
 'c{ -1,1 }*X+c{ -1,1 }*Y'

results in

Code:
 c{ '-X-Y' '-X+Y' 'X-Y' 'X+Y' }

If you like that... you'll like the ALLROOTS command.
Try '√4' ALLROOTS and you'll see that it applies a group of rules that will replace any square root or power with exponent in the 1/n form with a case list using the command XROOT (which only returns the principal root) or the actual principal root magnitude if it's numerically exact, multiplied by a case list with all the complex angles needed to return exact values for all roots.
I think the command is still incomplete, it doesn't cover all cases but it's easy to add rules as needed since it's a plain RPL source file (here is an area where I can get help from math-minded people like yourself).
 « Next Oldest | Next Newest »