(42S) Argument, Real Part, Imaginary Part, and Sign Function
|
12-29-2018, 05:25 AM
Post: #1
|
|||
|
|||
(42S) Argument, Real Part, Imaginary Part, and Sign Function
The HP 42S* has only one extraction function for complex numbers: ABS (absolute value) by default. To complete the list, here are some programs for ARG (argument), REAL (real part), and IMAG (imaginary part). The three functions take a complex number, in either rectangular or polar form.
Using stack commands and flag checks, I am able to get obtain results without affecting the stack much (although the z and t stacks will have the same value). Also included is the SIGN (signum) function. * This applies to the Swiss Micros DM42 (it should work), Free42 from Thomas Oakken, and any other HP 42S emulator apps. The print out is from Free42 (and I also have a physical HP 42S). Disclaimer: I don't own a DM42... yet. HP 42S Program: ARG Code:
HP 42S Program: REAL Code:
HP 42S Program: IMAG Code:
HP 42S Program: SIGN Code:
Original Blog Entry Link: https://edspi31415.blogspot.com/2018/12/...-part.html |
|||
« 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)