cos

Trigonometric cosine function.

Syntax

cos(expr)

Argument

expr
A valid scalar, vector, or matrix expression measured in radians.

Example

Templex Expression Result
{cos(PI/2)} 0
{cos( {0, 1, 2} * PI)} 1, -1, 1
{cos( { {0, 1}, {1, 0} } * PI)} {1, -1}, {-1, 1}
Curve Math Vectors Result
x = c1.x

y = cos(c1.x)

 

Comments

If expr is a scalar, the result is a scalar which is the trigonometric cosine of expr.

If expr is a vector, the result is a vector of the same dimensions containing a trigonometric cosine for each element of expr.

If expr is a matrix, the result is a matrix of the same dimensions containing a trigonometric cosine for each element of expr.