OAFunc-expression

expression (OAFunc)

Works with VSimBase, VSimEM, VSimPD, VSimPA, and VSimMD licenses.

A function of one argument, given via a UserFunc

expression Parameters

fmin (float, optional, default = minimum float)

The lower bound of the function’s domain.

fmax (float, optional, default = maximum float)

The upper bound of the function’s domain.

variable (string, optional, default = x)

Name of the variable in the expression.

expression (string)

The function expression (can be given directly for simple functions), required if a UserFunc code block is not given; in this case, a UserFunc of kind=expression is automatically created with this expression.

UserFunc (code block)

A UserFunc can be specified directly; it must take one argument, and return a scalar. This code block is required if a string expression is not given.

Example expression Block

<OAFunc oafunc1>
  kind = expression
  expression = cos(x)
</OAFunc>