The library is able to interpret several functions. Their length cannot be longer than 4 characters. Indeed wxEcEngine::Function2ID() converts the name (8 or 16 bits per char) into an integer (32 bits). We assumed it should be faster to interpret.
Normal functions
- abs : the absolute value, it removes the sign
- ceil : the smallest integer greater than or equal to x
- cub : x^3, safe way to compute such an exponent
- deg : converts from radian to degree
- even : =1 if even, else =0
- exp : the exponential value
- hvi : Heaviside's function, =0 if x<0, =1 if x>=0
- int : the largest integer less than or equal to x
- inv : inverts, 1/x
- floor : not supported, see int
- ln : the neperian logarithm
- lnep : see ln
- log : the logarithm base 10
- not : =1 if =0, else =0
- odd : =1 if odd, else =0
- rad : converts from degree to radian
- rand : generates a random number, modulo the given value if not null
- sgn : the sign, -1 or +1. Zero returns +1.
- sqr : x^2, safe way to compute such an exponent
- sqrt : the root square
Trigonometric functions
- acos : the secant (inverse of cosine)
- acsh : the inverse of the hyperbolic cosine
- asin : the cosecant (inverse of sine)
- asnh : the inverse of the hyperbolic sine
- atan : the cotangent (inverse of tangent)
- atnh : the inverse of the hyperbolic tangent
- cos : the cosine
- cosh : the hyperbolic cosine
- sin : the sine
- sinc : the cardinal sine (radian)
- sinh : the hyperbolic sine
- tan : the tangent
- tanh : the hyperbolic tangent
Overriden functions in the complex domain
These functions are not supported by wxEcEngine. Their use is dedicated to C++ developers who use our wxEcComplex class to handle complex numbers.
The definition of these functions is explicitely written in ec_complex.h. So you must include this file before being able to use them.
List :
- sqrt : the root square
- exp : the exponential value
- log : the natural logarithm (don't confuse with LN which is not overriden)
- cos : cosine
- sin : sine
- tan : tangent
- csc : cosecant
- sec : secant
- cot : cotangent
- cosh : hyperbolic cosine
- sinh : hyperbolic sine
- tanh : hyperbolic tangent
- csch : hyperbolic cosecant
- sech : hyperbolic secant
- coth : hyperbolic cotangent