sin
Computes the sine in radians for each element of x.
📝Syntax
res = sin(x)
📥Input Arguments
Parameter Description
x a numeric value
📤Output Arguments
Parameter Description
res a numeric value
📄Description

sin computes the sine in radians for each element of x.

The sine function is defined as:

$$\sin(x) = \frac{e^{ix} - e^{-ix}}{2i}$$

For real arguments, it represents the y-coordinate on the unit circle.

💡Examples
A = eye(3, 3);
res = sin(A)
🔗See Also
asin
🕔Version History
Version Description
1.0.0 initial version
Edit this page on GitHub