A built-in function has the format:
function_name(arguments)
Each function has a specified number of arguments and format for entering its arguments. The built-in functions return arithmetic, trigonometric, or Boolean values. The following tables list the built-in functions valid in Circuit netlist expressions. In the tables, arguments x and y can themselves be any expressions.
|
Function |
Return Value |
|
ABS(x) |
Absolute value of x. |
|
CEIL(x) |
Returns the smallest integer greater than or equal to x (rounds x toward positive infinity) |
|
DB(x) |
(sign of x)*20*log10(abs(x)) [x expressed in deciBels, with the sign of x] |
|
DB_NONINVERTING(x) |
20*log10(abs(x)) [x expressed in deciBels] |
|
DDT(x) |
Time derivative of x. |
|
EXP(x) |
ex |
|
FLOOR(x) |
Returns the largest integer less than or equal to x (rounds x toward negative infinity) |
|
FMOD(x,y) |
x -i *y for some integer i, such that if y is non-zero the result has the same sign as x and magnitude less than y. |
|
INT(x) |
Integer portion of x |
|
LOG(x) |
loge(x), -300.0*loge(10) if x£0 |
|
LOG10(x) |
log10(x), -300 if x£0 |
|
MAX(x,y) |
x if x > y, y if y ³ x |
|
MIN(x,y) |
x if x < y, y if y £ x |
|
NINT(x) |
Rounds x up or down to nearest integer. A fractional part of .5 is rounded UP to the nearest integer. NINT(-1.5) is -1 and NINT(1.5) is 2. |
|
POW(x,y) |
xy |
|
PWR(x,y) |
SGN(x)|x|y |
|
SIGN(x,y) |
abs(x) if y ³ 0 -abs(x) if y < 0 |
|
SGN(x) |
-1 if x < 0, 0 if x = 0, 1 if x > 0 |
|
SQRT(x) |
Positive square root of x |
|
Function |
Return Value |
|
ACOS(x) |
Inverse cosine of x in radians |
|
ASIN(x) |
Inverse sine of x in radians |
|
ATAN(x) |
Inverse tangent of x in radians |
|
ATAN2(x,y) |
For any real arguments (x, y) not both zero, the angle in radians between the positive X-axis and the point (x, y). The angle is positive for y > 0 and negative for y < 0. |
|
COS(x) |
Cosine of x in radians |
|
COSH(x) |
Hyperbolic cosine of x in radians |
|
HYPOT(x,y) |
SQRT(x**2 + y**2) |
|
SIN(x) |
Sine of x in radians |
|
SINH(x) |
Hyperbolic sine of x in radians |
|
TAN(x) |
Tangent of x in radians |
|
TANH(x) |
Hyperbolic tangent of x in radians |
|
Function |
Return Value |
|
IS_EQUAL(x,y) |
1 if x is equal to y, 0 otherwise |
|
IS_NOT_EQUAL(x,y) |
1 if x is not equal to y, 0 otherwise |
|
IS_GREATER(x,y) |
1 if x is greater than y, 0 otherwise |
|
IS_GREATER_EQUAL(x,y) |
1 if x is greater than or equal to y, 0 otherwise |
|
IS_LESS(x,y) |
1 if x is less than y, 0 otherwise |
|
IS_LESS_EQUAL(x,y) |
1 if x is less than or equal to y, 0 otherwise |