DADiSP Worksheet Functions > F - K > FEVAL
Evaluates a function string with arguments.
FEVAL("func", arg1, arg2, …, argN)
"func" |
- |
A string. Any valid function or SPL name. |
argN |
- |
Optional. Zero or more input arguments of any type. |
A string, series, table, or number.
feval("sin", pi/4)
returns 0.707107, the same as sin(pi/4).
feval("sin", 0..pi/10..2*pi)
returns one cycle of a sine wave with a deltax of pi/10.
feval("gsin", 100, 1/100, 1)
returns one cycle of a sine wave with a deltax of 1/100.
FEVAL evaluates a function specified by "func" using the given input arguments. For example:
feval("gsin", 100, 1/100, 1)
is identical to:
gsin(100, 1/100, 1)
and in general
feval("f", x1, x2, xN)
is the same as:
f(x1, x2, xN)
See EVAL to evaluate a command string.
See EXECUTE to evaluate a command string in DADiSP as an ActiveX Automation Server.