FEVAL

Purpose:

Evaluates a function string with arguments.

Syntax:

FEVAL("func", arg1, arg2, …, argN)

"func"

-

A string. Any valid function or SPL name.

argN

-

Optional. Zero or more input arguments of any type.

Returns:

A string, series, table, or number.

Example:

feval("sin", pi/4)

 

returns 0.707107, the same as sin(pi/4).

Example:

feval("sin", 0..pi/10..2*pi)

 

returns one cycle of a sine wave with a deltax of pi/10.

Example:

feval("gsin", 100, 1/100, 1)

 

returns one cycle of a sine wave with a deltax of 1/100.

Example:

feval("gsin($1, $2, $3)", 100, 1/100, 1)

 

same as above, except the position of the input arguments of the command string are specified by the placeholder variables $1, $2, $3.

Remarks:

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)

 

The position of the input arguments of the command string can also be specified by the placeholder variables $1, $2, …, $N, where N is the Nth argument in the optional list. Thus:

 

feval("gsin($1, $2, $3)", 100, 1/100, 1)

 

is identical to:

 

gsin(100, 1/100, 1)

 

See EVAL to evaluate a command string.

 

See EVALSCOPE to evaluate an expression at a specific execution scope.

 

See EXECUTE to evaluate a command string in DADiSP as an ActiveX Automation Server.

See Also:

COLPAIRWISE

EVAL

EVALSCOPE

EVALTOSTR

EXECUTE