[back] [prev] [next] [index] [root]

 


Cos

Returns the cosine of a number.

Syntax:

y := Cos(x);

complex
  y  
complex
  x  

See also:  Sin, Tan

Description:

Given an x (in radians) the function returns the cosine of x. The computation is done in the current precision of the real (complex) field.


Example:


kash> Cos(.5);
0.877582561890372716116281582603829651991645197109744
kash> i := Comp(0, 1);
1*i
kash> Cos(i);
> 1.543080634815243778477905620757061682601529112366


<- back[back] [prev] [next] [index] [root]