Appendix
There are a large number of built-in functions that you may use in the Interpreter. The formal parameters For some
of these functions (identified with a C), the formal parameters accept complex
numbers.
General purpose functions
Sin(x)
Calculates the sine of x
Cos(x)
Calculates the cosine of x
Tan(x)
Calculates the tangent of x
Atan(x)
Calculates the arc tangent of x
Exp(x) C
Calculates the exponential function
Ln(x) C
Calculates the natural logarithm of x, x>0
Sqr(x) C
Calculates the square of x
Sqrt(x) C
Calculates the positive square root of x
Abs(x) C
Calculates the absolute value of x
Sgn(x)
Sign function:
Re(x) C
Calculates the real part of x
Im(x) C
Calculates the imaginary part of x
Arc(x) C
Calculates the phase of x in radian
Sum(f(x))
Integral of f(x) in the [0..x] interval
Example:
Sum(sin(pi))=[2]
Integ(Expression(),Limit1,Limit2,)
Integral of Expression() in the [Limit1..Limit2] interval. The variable of
integration is .
Example:
a)
Function Con(t);
Begin
Con := t;
End;
Integ(Con(t),0,1,t)=[0.5]
b)
The meaning of Integ(Con(t),0,x,t) is
.
D(f(x))
Derivative of f(x) at x
Example:
D(sin(0))=[1]
Periodic(x,y)
Where y is the period value. The function transforms x into the [0..y]
interval according to y.
Example:
Periodic(5.3,2)=[1.3]
Not(x)
Calculates the bitwise negation of x
RadToDeg(x)
Converts x, in radians to degrees
DegToRad(x)
Converts x, in degrees to radians
Special functions for electrical engineering applications
Calculation of parallel impedances
Replus(x,y)=
C
Unit step
E(x)=
Calculation of a value in decibels
Db(x)=
C