e2 docs complex - wiremod/wire GitHub Wiki
Complex
= comp()
Returns complex zero (2 ops)
= comp(
A)
Converts a real number to complex (returns complex number with real part N and imaginary part 0) (2 ops)
= comp(
A,
B)
Returns a + b*i (2 ops)
= i()
Returns the imaginary unit i (2 ops)
= i(
B)
Returns N*i (2 ops)
= abs(
Z)
Returns the absolute value of C (2 ops)
= arg(
Z)
Returns the argument of C (2 ops)
= conj(
Z)
Returns the conjugate of C (2 ops)
= real(
Z)
Returns the real part of C (2 ops)
= imag(
Z)
Returns the imaginary part of C (2 ops)
= exp(
Z)
Raises Euler's constant e to the power of C (2 ops)
= log(
Z)
Calculates the natural logarithm of C (2 ops)
= log(
Base,
Z)
Calculates the logarithm of C2 to a complex base C (2 ops)
= log(
Base,
Z)
Calculates the logarithm of C to a real base N (2 ops)
= log2(
Z)
Calculates the logarithm of C to base 2 (2 ops)
= log10(
Z)
Calculates the logarithm of C to base 10 (2 ops)
= sqrt(
Z)
Calculates the square root of C (2 ops)
= csqrt(
N)
Calculates the complex square root of the real number N (2 ops)
= sin(
Z)
Calculates the sine of C (3 ops)
= cos(
Z)
Calculates the cosine of C (3 ops)
= sinh(
Z)
Calculates the hyperbolic sine of C (3 ops)
= cosh(
Z)
Calculates the hyperbolic cosine of C (3 ops)
= tan(
Z)
Calculates the tangent of C (3 ops)
= cot(
Z)
Calculates the cotangent of C (3 ops)
= asin(
Z)
Calculates the inverse sine of C (5 ops)
= acos(
Z)
Calculates the inverse cosine of C (5 ops)
= atan(
Z)
Calculates the inverse tangent of C (5 ops)
= atan2(
Z)
Calculates the principle value of C (2 ops)
= tanh(
Z)
Calculates the hyperbolic tangent of C (4 ops)
= coth(
Z)
Calculates the hyperbolic cotangent of C (4 ops)
= sec(
Z)
Calculates the secant of C (3 ops)
= csc(
Z)
Calculates the cosecant of C (3 ops)
= sech(
Z)
Calculates the hyperbolic secant of C (3 ops)
= csch(
Z)
Calculates the hyperbolic cosecant of C (3 ops)
= toString(
Z)
Formats C as a string (15 ops)
=
:toString()
The same as toString(C) (15 ops)