User`s guide

5- 12 Agilent EasyEXPERT Users Guide Vol. 1, Edition 1
Built-in Programming Tool
Built-in Functions
log(A) Returns the logarithm (base e) of the expression A.
If A=0, -Overflow is returned with the status “Arithmetic error”.
If A is a negative value, the logarithm of the absolute value is returned with the
status “Arithmetic error”.
Example B=log(A)
Data type A: numeric, B: numeric. Or A: vector, B: vector.
mavg(A,B) Returns the moving average value of data in the expression A. B specifies how
many data to use for the average. The moving average at the index number n is
defined as follows.
When n r
When r < n N-r
When N-r < n
where,
x
n
: moving average of A for the index number n
x
i
: A value for the index number i
r : B value
N : number of sweep steps or number of samples
If A contains some invalid values, the invalid values are ignored for the calculation.
For subordinate sweep, the first index number of each primary sweep is always 1.
Example C=mavg(A,B)
Data type A: vector or numeric, B: numeric, C: vector.
[
Q
UQ
3
L 
QU
[
L
[
Q
U
3
LQ
U
QU
[
L
[
Q
U1
Q
3
LQ
U
1
[
L