sin - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


DeepLearning/Tensor/sin, cos, ...

compute trigonometric functions over entries of a tensor

 

Calling Sequence

Parameters

Options

Description

Examples

Compatibility

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

withDeepLearning:

xConstant0.,1.57,3.141592,5.7,datatype=float4:

sinx+cosx

DeepLearning TensorShape: [4]Data Type: float[4]

(1)

sechx

DeepLearning TensorShape: [4]Data Type: float[4]

(2)

Compatibility

• 

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

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

See Also

DeepLearning Overview

invtrig

trig