DADiSP Worksheet Functions > F - K > FEVAL

 

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.

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)

 

See EVAL to evaluate a command string.

 

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

See Also:

EVAL

EVALTOSTR

EXECUTE