Calculates the cosine of any expression.
COS(val)
val |
- |
A scalar, series or table. |
A scalar, series, or table.
cos(-2*pi..pi/100..2*pi);gridhv;griddot
displays the cosine from -2π to 2π.
cos(pi)
returns -1.
cos(-2..0.1..2)
returns a 41 point series.
t = 0..0.01..1
cos(2*pi*10*t)
returns a 101 point series of a 10 Hertz cosine sampled at 100 samples per second. This is equivalent to:
gcos(101, 0.01, 10)
The cosine is defined as:
for all complex z.
The function calculates in radians unless degrees are specified with the SETDEGREE function.