res = cos(x)
| Parameter | Description |
|---|---|
| x | a numeric value |
| Parameter | Description |
|---|---|
| res | a numeric value |
cos computes the cosine in radians for each element of x.
The cosine function is defined as:
$$\cos(x) = \frac{e^{ix} + e^{-ix}}{2}$$For real arguments, it represents the x-coordinate on the unit circle.
A = eye(3, 3);
res = cos(A)
| Version | Description |
|---|---|
| 1.0.0 | initial version |