cpx(scalar a, scalar
b)
exp(complex a)
im(complex a)
ln(complex a)
log10(complex a)
mag(complex a)
phase(complex a)
pow(complex
a,complex b)
re(complex a)
sin(complex a)
sqrt(complex a)
tan(complex a)
Constants
e
PI
Mutual transformation is automatically made for scalar and
•
complex.
scalar(x) -> complex(x, 0)
complex(x, y) -> scalar(x)
Advanced Math Functions
In the following table: a,b,c,d are arguments of complex value that are
used in the function. For 2-port network measurement: a,b,c,d
corresponds to Sii,Sji, Sij, Sjj respectively.
The functions can also be defined by scalar arguments with port
•
numbers of the ENA. For example, the function, kfac(1,2)
returns a complex value (a+ib) from two scalar values
returns the exponential of a
returns the imaginary part of a as the scalar part of the
result (zeroes the imaginary part)
returns the natural logarithm of a
returns the base 10 logarithm of a
returns sqrt(a.re*a.re+a.im*a.im)
returns atan2(a) in degrees
returns a to the power b
returns the scalar part of a (zeroes the imaginary part)
takes a in radians and returns the sine
returns the square root of a, with phase angle in the
half-open interval (-pi/2, pi/2]
takes a in radians and returns the tangent
2.71828182845904523536
3.14159265358979323846
Measurement
331