Function List for Output Variables
The Output Variables dialog includes a second function list containing functions to enter directly into the Expression field. These functions can also be applied to previously specified Quantities and Functions.
Some of these functions can operate along an entire curve. These are: deriv, min, max, integ, rms, pk2pk, cang_deg and cang_rad.
You can select from the following functions in the Output Variables dialog Function list, or type them directly into the Expression field, if necessary:
abs |
Absolute value |
acos |
Arc cosine |
acosh |
Hyperbolic arc cosine |
ang_deg |
Angle (phase) of a complex number, cut at +/-180 |
ang_rad |
Angle in radians |
arg |
Argument of a complex number. It is the angle the complex number makes with the positive x axis. Same as ang_deg. |
asin |
Arc sine |
asinh |
Hyperbolic arc sine |
atan |
Arc tangent. Takes a tangent value as an argument. Because there are two angles in a circle that can have the same tangent value, and atan can return only one value, it returns a value in the range between -90 degrees and +90 degrees (or between -pi/2 and pi/2 in radians). |
atan2(y,x) |
A two-argument version of the atan function. Takes the y and x coordinates (including sign information) of a point as arguments and returns the angle from the X-axis. Can return angle values for the full circle (-180 degrees to +180 degrees or -pi to +pi in radians). |
atanh |
Hyperbolic arc tangent |
avgabs |
Absolute value of average. |
cang_deg |
Cumulative angle (phase) of the first parameter (a complex number) in degrees, along the second parameter (typically sweep variable). Returns a double precision value cut at +/-180. |
cang_rad |
Cumulative angle of the first parameter in radians along a second parameter (typically a sweep variable) Returns a double precision value. |
cmplx(re, im) |
A complex number, where re is the real part and im is the imaginary part. |
conjg |
Conjugate of the complex number. |
cos |
Cosine |
cosh |
Hyperbolic cosine |
crestfactor |
Peak/RMS (root mean square) for the selected simulation quantity |
dB(x) |
20*log10(|x|) |
dB10 |
10*log(|x|) to base 10. |
dBm(x) |
10*log10(|x|) +30 |
dBW(x) |
10*log10(|x|) |
dBc |
Decibels relative to the carrier. It is the power ratio of the signal to a carrier signal. Gives the relative signal strength. |
db10normalize |
10*log [normalize(mag(x))] |
db20normalize |
20*log [normalize(mag(x))] |
degel |
Conversion from degrees electrical to seconds with respect to Hz. |
deriv |
Derivative of a given parameter. |
even |
Returns 1 if integer part of the number is even; returns 0 otherwise |
exp |
Exponential function (the natural anti-logarithm) |
if |
if(cond_exp,true_exp, false_exp). |
im |
Imaginary part of the complex number |
int |
Truncated integer function |
j0 |
Bessel function of the first kind (0th order) |
j1 |
Bessel function of the first kind (1st order) |
ln |
Natural logarithm |
log |
Natural logarithm (same as ln). |
log10 |
Logarithm base 10 |
mag |
Magnitude of the complex number |
mod |
Returns the modulus or absolute value of the simulation quantity. |
nint |
Nearest integer |
normalize |
Divides each value within a trace by the maximum value of the trace. ex. normalize(mag(x)) |
odd |
Returns 1 if integer part of the number is odd; returns 0 otherwise |
polar |
Converts the complex number in rectangular to polar |
pow |
Raise x to y power., pow(x,y). |
pwl |
Piecewise Linear |
pwl_periodic |
Piecewise Linear for periodic extrapolation on x |
pwlx |
Piecewise Linear x with linear extrapolation on x. |
re |
Real part of the complex number |
rect |
Converts the complex number in polar to rectangular |
rem |
Returns the fractional part of a decimal number such that rem(x) = x-int(x) Syntax: rem(x) |
root |
Take the y root of x, root(x,y) |
sgn |
Sign extraction |
sin |
Sine |
sinh |
Hyperbolic sine |
sliding mean |
sliding mean. |
slidingrms |
sliding root mean square |
sqr |
Square. |
sqrt |
Square root |
tan |
Tangent |
tanh |
Hyperbolic tangent |
y0 |
Bessel function of the second kind (0th order) |
y1 |
Bessel function of the second kind (1st order) |
yn |
Bessel function of the second kind (nth order) |