| cminus#2(r,i) |
cminus#2(2,-3) = -2,3 |
Takes a complex number
times -1. |
COMPLEX.LIB |
| ctimes#2(r,i,R,I) |
ctimes#2(1,5,2,-1) =
7,9 |
Multiplication of two
complex numbers |
COMPLEX.LIB |
| cdivide#2(r,i,R,I) |
cdivide#2(1,6,4,3) =
0.88, 0.84 |
Division of two complex
numbers |
COMPLEX.LIB |
| crez#2(r,i) |
crez#2(4,3) = 0.16,
-0.12 |
The reciprocal of a
complex number (same as cdivide#2(1,0,r,i)) |
COMPLEX.LIB |
| cquad#2(r,i) |
cquad#2(4,3) = 7,24 |
The square of a complex
number |
COMPLEX.LIB |
| ckubik#2(r,i) |
ckubik#2(4,3) = -44,117 |
The cube of a complex
number |
COMPLEX.LIB |
| csqr#2(r,i) |
csqr#2(4,3) = 2.121320344,
0.70710678 |
The square root. Of
the two possible choices, the one preserving the sign of the imaginary
part |
COMPLEX.LIB |
| ccur#2(r,i) |
ccur#2(4,3) = 1.6707882,
0.36398424 |
The cubic root. Returns
negative reals for negative real input. Otherwise, returns the root which
is closest to (1,0). |
COMPLEX.LIB |
| cpower#2(r,i,R,I) |
cpower#2(4,3,4,0) =
-527, 336 |
The power of two complex
numbers |
COMPLEX.LIB |
| cpower#2(r,i,n) |
cPower(4,3,4) = -527,
336 |
The power of a complex
number with an integer exponent. Implementation relying only on complex
multiplication. Unlike cpower#2, enjoys the benefit of uniqueness. |
COMPLEX.LIB |
| cturn120#2(r,i) |
cturn120#2(1,0) = -0.5,
0.8660254 |
Performs a 120°
counterclockwise turn in the complex plane. |
COMPLEX.LIB |
| cturn240#2(r,i) |
cturn240#2(1,0) = -0.5,
-0.8660254 |
The same, clockwise. |
COMPLEX.LIB |
| cexp#2(r,i) |
cexp#2(1,pi) = -2.718281828,
0 |
The complex exponential
function |
COMPLEX.LIB |
| cln#2(r,i) |
cln#2(0,1) = 0, 1.57079633 |
The complex natural
logarithm |
COMPLEX.LIB |
| ccos#2(r,i) |
ccos#2(0,1) = 1.543080635,
0 |
The cosine of a complex
number |
COMPLEX.LIB |
| csin#2(r,i) |
csin#2(0,1) = 0, 1.17520119 |
The sine of a complex
number |
COMPLEX.LIB |
| fplus#2(a,b,A,B) |
fplus#2(1,3,1,2) =
5, 6 |
Addition of pure fractions |
UTILS.LIB |
| fminus#2(a,b,A,B) |
fminus#2(1,3,1,2) =
-1, 6 |
Subtraction of pure
fractions |
UTILS.LIB |
| ftimes#2(a,b,A,B) |
ftimes#2(2,3,-3,7)
= -2, 7 |
Multiplication of pure
fractions |
UTILS.LIB |
| fdivide#2(a,b,A,B) |
fdivide#2(1,3,1,2)
= 2, 3 |
Division of pure fractions |
UTILS.LIB |
| ffplus#3(a,b,c,A,B,C) |
ffplus#3(1,1,4,7,1,3)
= 8, 7, 12 |
Addition of mixed fractions |
UTILS.LIB |
| ffminus#3(a,b,c,A,B,C) |
ffminus#2(1,1,4,7,1,3)
= -6, -1, 12 |
Subtraction of mixed
fractions |
UTILS.LIB |
| fftimes#3(a,b,c,A,B,C) |
fftimes#2(1,1,4,7,1,3)
= 9, 1, 6 |
Multiplication of mixed
fractions |
UTILS.LIB |
| ffdivide#3(a,b,c,A,B,C) |
ffdivide#2(1,1,4,7,1,3)
= 0, 15, 88 |
Division of mixed fractions |
UTILS.LIB |
| ffrez#3(a,b,c) |
ffrez#2(0,-15,88) =
-5, -13, 15 |
Finds the reciprocal
of a mixed fraction |
UTILS.LIB |