Engee documentation

sin

The sine of the argument is in radians.

Library

EngeeDSP

Syntax

Function call

  • Y = sin(X) — returns the sine value of the elements X. Function sin works with arrays piecemeal. The function accepts both real and complex inputs.

    • For real values X function sin returns real values in the interval [-1,1].

    • For complex values X function sin returns complex values.

Arguments

Input arguments

# X is the value of the input angle in rad

+ scalar | vector | the matrix | N-dimensional array

Details

The value of the input angle in rad, specified as a scalar, vector, matrix, or multidimensional array.

Data types

Float32, Float64, Char, String

Support for complex numbers

Yes

Output arguments

# Y is the sine value of the input angle

+ scalar | vector | the matrix | An N-dimensional array

Details

The sine value of the input angle returned as a real or complex scalar, vector, matrix, or multidimensional array.

Data types

Float32, Float64, Char, String

Support for complex numbers

Yes

Additional information

The sine function

Details

Sine of the angle a right triangle is equal to:

Where

  • — opposite catheter;

  • — the hypotenuse of a right triangle.

sin en

The sine of a complex quantity equal to: