Complex Number Utilities
Description
Posted by Karl Schneider in the MoHPC - HP Forum
Functions:
0 - Clear a complex number by multiplying with 0 without disturbing the stack, except that "clear" disables stack push.
1 - Negate a complex number by multiplying with -1 without disturbing the stack, except that "clear" disables stack push.
2 - Conjugate complex number
3 - Signum - a unit-magnitude number that preserves the sign of each component) is unrelated to the others, but fills the empty slot.
4 - Decomposition, inverse of f I
5 - Real part
6 - Imaginary part
To call a function press f LBL N
Program Resources
Labels
Name |
Description |
|
0 |
Clear |
|
1 |
Negate |
|
2 |
Conjugate |
|
3 |
Signum |
|
4 |
Decomposition |
|
5 |
Re |
|
6 |
Im |
|
Program
Line |
Display |
Key Sequence |
|
Line |
Display |
Key Sequence |
|
000 |
|
|
|
016 |
36 |
ENTER |
|
001 |
42,21, 0 |
f LBL 0 |
|
017 |
43 16 |
g ABS |
|
002 |
43 35 |
g CLx |
|
018 |
10 |
÷ |
|
003 |
42 30 |
f Re↔Im |
|
019 |
43 32 |
g RTN |
|
004 |
43 35 |
g CLx |
|
020 |
42,21, 4 |
f LBL 4 |
|
005 |
43 32 |
g RTN |
|
021 |
36 |
ENTER |
|
006 |
42,21, 1 |
f LBL 1 |
|
022 |
32 5 |
GSB 5 |
|
007 |
16 |
CHS |
|
023 |
34 |
x↔y |
|
008 |
42,21, 2 |
f LBL 2 |
|
024 |
22 6 |
GTO 6 |
|
009 |
42 30 |
f Re↔Im |
|
025 |
42,21, 5 |
f LBL 5 |
|
010 |
16 |
CHS |
|
026 |
42 30 |
f Re↔Im |
|
011 |
42 30 |
f Re↔Im |
|
027 |
42,21, 6 |
f LBL 6 |
|
012 |
43 32 |
g RTN |
|
028 |
43 35 |
g CLx |
|
013 |
42,21, 3 |
f LBL 3 |
|
029 |
42 30 |
f Re↔Im |
|
014 |
43 20 |
g x=0 |
|
030 |
43 32 |
g RTN |
|
015 |
43 32 |
g RTN |
|
|
|
|
|