Contents Links Search
 

RPN Scripts

RPN Documentation

Submit Script

Conversion
   Conversions
   Convert
   Euro
   Euro_Calculator
   Soundex
Engineering
   Feet_&_Inch
   Units
   Water
Entertainment
   Master_Mind
   Sticks!
Finance
   Annuity
   Euro_Calculator
   TVM_Financial_Functions
Math
   3D_Vectors_v1.2
   Base
   Base_Conversions
   Complex_Arithmetic
   Complex_Math
   Discrete_Math
   EBBases
   Fractions
   Fractions
   Least
   Logs_&_Powers
   Misc
   Regressions
   Scientific
   Scientific_Functions
   Scientific_Programmable
   Simple_Complex_Math
   Standard_Normal_Distribution
   Trig
Misc
   Health
   Husband's_Calculator
Physics
   Angle_of_View
   Depth_of_Field
   Physics_Functions
Time
   Clock
   Julian
   Multiple_Timer
   Stop5Watch
   Stopwatch
   Timer
Utility
   Board_Foot_Calculator
   Calendar_Functions
   Checkbook_II
   MiniG
   Stack_Handling_and_Saving
   WindChill

Simple Complex Math
Shin Katsumata - email


summary
Set of Complex Math Functions

instructions
This code implments a set of four basic math
functions for complex number and conversion of
coordinate system between cartesian(R) and
polar(P). A complex number is represented using
two registers. X (top register) contains the real
value and Y is imaginary value. In polar notation,
X is magnitude and Y is phase. "CLRx" clears two
registers at a time.

code
RPN.1
"Complex"
~
"+" k4r4r2k3+k3+r2;
"-" k4r4r2k3-k3-r2;
"x" k4r4g1g5*g4g4*+r2r4*r3r4*-;
"÷" k4r4g1g1*g3g1*+g2g6*g4g6*-g2/r3r5*r4r5*+r3/;
~
">R" r2g1ig3*r2or3*;
">P"g10<(1A4*:0)g2g4/A+k32Pr22P+s;
"CLRx" d1d1;

top
Nth Lab
©1996 - 2001 all rights reserved
August 03, 2001
contact