Mathematical functions Single argument
mag,
magnitude
Returns the magnitude of a complex vector in a real vector
ph,
phase
Returns the phase of a complex vector in a real vector
j
sqrt(-1) * vec
re,
real
Place the real part of a complex vector in a real vector
im,
imag
Place the imaginary part of a complex vector in a real vector
db20 * lgt(vec)
log,
log10
Log base 10 of vec
lnNatural log
isdef
test existence of a vector; returns 1 if it exists, 0 otherwise
expe ^ vec
absAbsolute value
sqrtSquare root
derivx,
differentiatex
(Scope Only) Returns the derivative of a vector with respect to
the default scale vector (usually time or frequency).
deriv,
differentiate
Returns the derivative of a vector with respect to the current plots scale
ceilReturns the ceiling of the vector.
floorReturns the floor of the vector.
integratex
(Scope Only) Returns the integral of a vector with respect to the
default scale vector (usually time or frequency).
integrateReturns the integral of a vector with respect to the current plots scale
pulse
Returns a vector that is the length of the default vector that is unity for
the number of points in its argument and zero thereafter
Trigonometric functions
sin
cos
tan
atan
Miscellaneous functions
Single argument except as noted
askvalue
or Scope5 only)
Displays a dialog box asking the user to enter a number
(real or a complex) which is returned by the function when the
user clicks OK. The argument to the function is the prompt string
to be displayed in the dialog.
isdisplayed
(for Scope5 only)
Return 1if the argument is the name of a vector that is currently
displayed as a trace in Scope, otherwise 0. If the argument is a
simple vector name, the currently active plot is searched. If the
argument is a plot name, vector name combination of the form
<plotName>.<vecName>, the specified plot is searched.
normNormalize the vector so the max of its abs is 1.0
rndRandom integer between 0 and vec.
posReturn 1 if vec[] > 0, else 0.
vectorReturn a vector from 0 to the magnitude of the argument, where
length is the argument value caste to an integer.
unitvecReturns a vector composed of all 1’s whose length is the argument.
lengthReturns the length of the vector argument.
interpolateRe-scales a vector from another plot to the current plot.
phaseextendExtends phase past +-180 degrees, assumes the initial phase is
within the +-180 degree boundary.
operatingpointReturns the magnitude of the first element.
getcursorxReturns the value of the cursor (x-axis scale).
getcursoryFunction with 2 arguments, vec and cursor number returns the value
of the vector identified by cursor number.
getcursory0(v(1))Returns the vector value corresponding to cursor 0 for vector v(1).
getcursory1(v(1))Returns the vector value corresponding to cursor 1 for vector v(1).
initialvalueThe initial value of a vector.
isdefReturns 0 if the argument is not a vector, else returns 1.
finalvalueThe last value of a vector.
nextvectorEnumerates a vector list, the first vector is returned if the argument
is null, null is returned at the end. The return value is an alias to the
vector. If you use the plot resolution operator, refplot.nv, then you will
enumerate the refplot vectors.
nextplotEnumerates a plot list, the first plots vector is returned if the argument
is null, null is returned at the end. The return value is an alias to the plot
scale, do not use plot the resulution operator, plot.pl, for this vector.
sameplotReturns 1 if a vector is in the current plot.
Cursor relative functions, Evaluate the vector between cursor 0 and cursor 1 single argument
rmsRoot Mean Square by trapezoid integration
rmsptsRoot Mean Square by datapoints
mean,
average
Average value by trapezoid integration
meanptsAverage value by datapoints
maxMaximum value
minMinimum value
maxscaleMaximum scale value
minscaleMinimum scale value
stddevStandard deviation (rms with average removed) by trapezoid integration
stddevptsStandard deviation by datapoints
pk_pkPeak to peak
triseThe 10-90% transition using cursor 0 and cursor 1 to define initial and final value.
tfallThe 10-90% transition using cursor 0 and cursor 1 to define initial and final value.
Operations
Between 2 values
Operation
Symbol
Example
PLUS
"+"
x = a + b
MINUS
"-"
x = a - b
TIMES 
"*" 
x = a * b 
MOD 
"%"  
x = a % b - remainder of integer division  
DIVIDE
"/"
x = a/b
COMMA
","
x = vreal, vimaginary 
POWER 
"^"  
xsquared = x^2 
EQ 
"="  
if a = b 
GT 
">"  
if a > b 
LT
"<"
if a < b 
GE
">=" 
if a >= b 
LE
"<=" 
if a <= b 
NE
"<>"  
if a <> b 
AND 
"&"  
vand = a & b 
OR 
"|"
vor = a | b 
INDX
"["  
vthree = a[3] 
UMINUS,
"-"  
x = -b  
NOT 
"~"  
vnand = ~vand 

Assignment operators that extract the mid part of a vector

vmid=w1[(20,30)] It makes a new vector, vmid, using elements 20 through 30
of vector w1.
vmid=w1[[(500u,600u)]] Extracts data based on the scale vector range (time in this case) and makes a new vector out of the data between 500u to 600u. You can make an accompanying time axis for a new plot:
t56 = time[[(500u,600u)]], and then plot vmid vs t56. Of course you can subtract the offset from t56 using the following script:
t56 = t56 - 500u. This gives you the power to rearrange data during post processing to make things like "eye" diagrams.