Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

cos

Computes the cosine in radians for each element of x.

Syntax

  • res = cos(x)

Input argument

  • x - a numeric value

Output argument

  • res - a numeric value

Description

cos computes the cosine in radians for each element of x.

Example

A = eye(3, 3);
res = cos(A)

See also

acos.

History

VersionDescription
1.0.0initial version

Author

Allan CORNET