|
Elementary Functionsabs, sign absolute value, arithmetic sign
The atan function takes one or two arguments; atan(t) returns a value in the range (-p/2,p/2]), while atan(y,x) returns the counterclockwise angle from (1,0) to (x,y) in the range (-p,p]). The abs function allows any number of arguments; for example, abs(x,y,z) is the same as sqrt(x^2+y^2+z^2). The sign satisfies sign(0)==1 and abs(z)*sign(z)==z always (even when z is complex). The min and max functions return a scalar result when presented with a single argument, but the pointwise minimum or maximum when presented with multiple arguments. The min, max, sum, and single argument abs functions return integer results when presented integer arguments; the other functions will promote their arguments to a real type and return reals. |