(42S) Argument, Real Part, Imaginary Part, and Sign Function
|
12-29-2018, 08:50 AM
Post: #4
|
|||
|
|||
RE: (42S) Argument, Real Part, Imaginary Part, and Sign Function
(12-29-2018 05:48 AM)Paul Dale Wrote: What about: This would work if (!) the 42s allowed tests for complex numbers. ;-) But it throws an "Invalid Type" error here. (12-29-2018 06:35 AM)Thomas Klemm Wrote: What about using the built-in SIGN function? Yes, a complex sign function is not required, the built-in function works nicely. For complex arguments it even returns 0 for 0+0i. For real arguments sign(0) is returned as 1. Maybe for compatibility with the HP-41 which does it the same way. Here SIGN returns 0 only for Alpha data (!). Dieter |
|||
« Next Oldest | Next Newest »
|
Messages In This Thread |
(42S) Argument, Real Part, Imaginary Part, and Sign Function - Eddie W. Shore - 12-29-2018, 05:25 AM
RE: (42S) Argument, Real Part, Imaginary Part, and Sign Function - Paul Dale - 12-29-2018, 05:48 AM
RE: (42S) Argument, Real Part, Imaginary Part, and Sign Function - Thomas Klemm - 12-29-2018, 06:35 AM
RE: (42S) Argument, Real Part, Imaginary Part, and Sign Function - Dieter - 12-29-2018 08:50 AM
RE: (42S) Argument, Real Part, Imaginary Part, and Sign Function - Gerald H - 12-30-2018, 07:12 PM
RE: (42S) Argument, Real Part, Imaginary Part, and Sign Function - Dieter - 12-30-2018, 08:19 PM
|
User(s) browsing this thread: 1 Guest(s)