TQ's FunPlot 1.0 - Built-in Function Parser

Constants | Operators | Functions


 

Constant

Description

pi The ratio of the circumference to the diameter of a circle, having a numerical value of approximately 3.14159.
e The base of the natural system of logarithms, having a numerical value of approximately 2.7183.

x, x0, x1, x2, ...

(x,x0,x1,x2,...) are independent variables. Any number of independent variables can be used. Please note that, for this parser, 'x' and 'x00' are the same as 'x0', 'x017' and 'x0017' are the same as 'x17', and so on.

 

Constants | Operators | Functions

 

Operator

Description

^ Power. This operator is binary.
* Multiplication. This operator is binary.
/ Division. This operator is binary.
+ Addition. This operator can be either unary or binary.
- Subtraction. This operator can be either unary or binary.
== X==Y returns 1 if X equals to Y, 0 otherwise. This operator is binary.
!= X!=Y returns 1 if X does NOT equal to Y, 0 otherwise. This operator is binary.
> X>Y returns 1 if X is greater than Y, 0 otherwise. This operator is binary.
< X<Y returns 1 if X is less than Y, 0 otherwise. This operator is binary.
<= X<=Y returns 1 if X is NO greater than Y, 0 otherwise. This operator is binary.
>= X>=Y returns 1 if X is NO less than Y, 0 otherwise. This operator is binary.
&& X&&Y returns 1 if both X and Y are nonzero, 0 otherwise. This operator is binary.
|| X||Y returns 1 if either X or Y is nonzero, 0 otherwise. This operator is binary.

 

Constants | Operators | Functions

 

Function

Description

acos ACOS(X) calculates the arc cosine of X. X must be in the range -1 to 1. This function returns a value in the range 0 to pi.
asin ASIN(X) calculates the arc sine of X. X must be in the range -1 to 1. This function returns a value in the range -pi/2 to pi/2.
atan ATAN(X) calculates the arc tangent of X. X must be in the range -1 to 1. This function returns a value in the range -pi/2 to pi/2.
atan2 ATAN2(Y,X) calculates the arc tangent of Y/X. X and Y cannot both be 0. This function returns a value in the range -pi to pi.
ceil CEIL(X) finds the smallest integer not less than X.
cos COS(X) calculates the cosine of X. Angles are specified in radians. This function returns a value in the range -1 to 1.
cosh COSH(X) calculates the hyperbolic cosine of X.
ein1 The frist of four Einstein functions, which is defined as: X*X*EXP(X)/((EXP(X)-1)*(EXP(X)-1)).
ein2 The second of four Einstein functions, which is defined as: X/(EXP(X)-1).
ein3 The third of four Einstein functions, which is defined as: LOG(1-EXP(-X)).
ein4 The last of four Einstein functions, which is defined as: X/(EXP(X)-1)-LOG(1-EXP(-X)).
exp EXP(X) calculates the exponential e to the X.
fabs FABS(X) returns the absolute value of X.
floor FLOOR(X) finds the largest integer not greater than X.
fmod FMOD(X,Y) calculates X modulo Y, the remainder of X/Y. This function returns 0 when Y = 0.
hardlim Hard limit transfer function for neural networks. HARDLIM(X) returns 1 when X is positive, 0 otherwise.
hardlims Symmetric hard limit transfer function for neural networks. HARDLIMS(X) returns 1 when X is positive, -1 otherwise.
hypot HYPOT(X,Y) calculates hypotenuse of a right triangle. It is defined as: SQRT(X*X+Y*Y).
if_then IF_THEN(X,Y,Z) returns Y if X does NOT equal to 0, returns Z otherwise.
log LOG(X) calculates the natural logarithm of X. X must be greater than 0.
log10 LOG10(X) calculates the base 10 logarithm of X. X must be greater than 0.
logsig Log sigmoid transfer function for neural networks. LOGSIG(X) returns the value of X squashed between 0 and 1.
max MAX(X1,X2,...) returns the largest value. Two or more input arguments are required for this function.
mean MEAN(X1,X2,...) returns the average or mean value. Two or more input arguments are required for this function.
median MEDIAN(X1,X2,X3,...) returns the median value. At least three input arguments are required for this function.
min MIN(X1,X2,...) returns the smallest value. Two or more input arguments are required for this function.
poslin Positive linear transfer function for neural networks. POSLIN(X) returns the value of X when X is positive, 0 otherwise.
pow POW(X,Y) calculates X to the power of Y. Y must be an integer when X is less than 0. And X and Y cannot both be 0.
purelin Linear transfer function for neural networks. PURELIN(X) returns the value of X.
rand RAND() returns a pseudo random number in the range 0 to 1.
rosen Rosenbrock function, which is defined as: (1-X)*(1-X)+105*(Y-X*X)*(Y-X*X). This function is often used as a test problem for optimization algorithms. It has a global minimum of 0 at (1, 1).
round ROUND(X) rounds X to the nearest integer.
satlin Saturating linear transfer function for neural networks. SATLIN(X) returns the value of X truncated into the range 0 to 1.
satlins Symmetric saturating linear transfer function for neural networks. SATLINS(X) returns the value of X truncated into the range -1 to 1.
sign SIGN(X) returns 1 if X is greater than zero, 0 if it equals zero and -1 if it is less than zero.
sin SIN(X) calculates the sine of X. Angles are specified in radians. This function returns a value in the range -1 to 1.
sinc Sine cardinal. This function is defined as: SIN(X)/X.
sinh SINH(X) calculates the hyperbolic sine of X.
sqrt SQRT(X) calculates the positive square root of X. X must be not less than 0.
std STD(X1,X2,...) returns the standard deviation. Two or more input arguments are required for this function.
tan TAN(X) calculates the tangent of X. Angles are specified in radians.
tanc This function is defined as: TAN(X)/X.
tanh TANH(X) calculates the hyperbolic tangent of X.
tansig Hyperbolic tangent sigmoid transfer function for neural networks. TANSIG(X) returns the value of X squashed between -1 and 1.

 


Constants | Operators | Functions

Go to top

Go back

This page was last modified on 02/04/2004.