Download LME for Pocket PC User Manual

Transcript
LME Reference — mathematical functions
189
See also
floor, ceil, fix
sign
Sign of a real number or direction of a complex number.
Syntax
s = sign(x)
z2 = sign(z1)
Description
With a real argument, sign(x) is 1 if x>0, 0 if x==0, or -1 if x<0. With a
complex argument, sign(z1) is a complex value with the same phase
as z1 and whose magnitude is 1.
Examples
sign(-2)
-1
sign(1+1j)
0.7071+0.7071j
sign([0, 5])
0 1
See also
abs, angle
sec
Secant.
Syntax
y = sec(x)
Description
sec(x) gives the secant of x, which is complex if x is.