sin, sinh

Purpose

Sine and hyperbolic sine.

Synopsis

Y = sin(X)
Y = sinh(X)

Description

The trigonometric functions operate element-wise on matrices. Their domains and ranges include complex values. All angles are measured in radians.

sin(X) is the circular sine of the elements of X.

sinh(X) is the hyperbolic sine of the elements of X.

Examples

sin(pi) might not be exactly zero, but rather a value the size of the floating-point accuracy eps, because pi is only a floating-point approximation to the exact value.

Algorithm

See Also

 acos, asin, atan, cos, exp, expm, funm, tan

(c) Copyright 1994 by The MathWorks, Inc.