sin - Maple Help

DeepLearning/Tensor/sin, cos, ...

compute trigonometric functions over entries of a tensor

 Calling Sequence sin(x,opts)      cos(x,opts)      tan(x,opts) sec(x,opts)      csc(x,opts)      cot(x,opts) sinh(x,opts)     cosh(x,opts)     tanh(x,opts) sech(x,opts)     csch(x,opts)     coth(x,opts) arcsin(x,opts)   arccos(x,opts)   arctan(x,opts) arcsec(x,opts)   arccsc(x,opts)   arccot(x,opts) arcsinh(x,opts)  arccosh(x,opts)  arctanh(x,opts) arcsech(x,opts)  arccsch(x,opts)  arccoth(x,opts) arctan(y,x,opts)

Parameters

 x - Tensor y - Tensor opts - zero or more options as specified below

Options

 • name=string

The value of option name specifies an optional name for this Tensor, to be displayed in output and when visualizing the dataflow graph.

Description

 • The sin(x,opts) command computes the sine of elements across a Tensor.
 • The cos(x,opts) command computes the cosine of elements across a Tensor.
 • The tan(x,opts) command computes the tangent of elements across a Tensor.
 • The sec(x,opts) command computes the secant of elements across a Tensor.
 • The csc(x,opts) command computes the cosecant of elements across a Tensor.
 • The cot(x,opts) command computes the cotangent of elements across a Tensor.
 • The sinh(x,opts) command computes the hyperbolic sine of elements across a Tensor.
 • The cosh(x,opts) command computes the hyperbolic cosine of elements across a Tensor.
 • The tanh(x,opts) command computes the hyperbolic tangent of elements across a Tensor.
 • The sech(x,opts) command computes the hyperbolic secant of elements across a Tensor.
 • The csch(x,opts) command computes the hyperbolic cosecant of elements across a Tensor.
 • The coth(x,opts) command computes the hyperbolic cotangent of elements across a Tensor.
 • The arcsin, arccos, arctan, arcsec, arccsc, and arccot commands compute the inverse trigonometric functions.
 • The arcsinh, arccosh, arctanh, arcsech, arccsch, and arccoth commands compute the inverse hyperbolic trigonometric functions.
 • The arctan(y,x) computes the inverse tangent of y/x, similar to arctan.

Examples

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $x≔\mathrm{Constant}\left(\left[0.,1.57,3.141592,5.7\right],\mathrm{datatype}=\mathrm{float}\left[4\right]\right):$
 > $\mathrm{sin}\left(x\right)+\mathrm{cos}\left(x\right)$
 $\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: float\left[4\right]}}\end{array}\right]$ (1)
 > $\mathrm{sech}\left(x\right)$
 $\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: float\left[4\right]}}\end{array}\right]$ (2)

Compatibility

 • The DeepLearning/Tensor/sin, cos, ... command was introduced in Maple 2018.