Function Math Trig Complex Class

Sine

Sine of a real or complex number. Inverse of the ASin function.

Signature (Visual Basic / VBA)

Public Function Sine( _
    ByVal vX As Variant _
    ) As Variant

Code Examples

    Sine(-0.5) = -0.479425538604203
    Sine(0) = 0
    Sine(0.5) = 0.479425538604203
    Sine(1) = 0.841470984807897
    Sine(1.5) = 0.997494986604054
    Sine(2) = 0.909297426825682
    Sine(2.5) = 0.598472144103957
    Sine(3) = 0.141120008059867
    Sine(3.5) = -0.35078322768962
    Sine("2.3|-4.5") = "33.567264016308|29.9844272159606"
    For X = -8 to 8 step .1:
            ****             |  ****               ***
           **   *            | *   **              *
           *     *           |**    **            *
          *      **          |*      *           **
         **       *          *        *          *
         *        *          *        *         **
    ----**---------*--------**---------*--------*-----
        *          *        *|         *       **
       **           *      * |         **      *
       *            **    ** |          *     *
      *              **   *  |           *   **
    ***               ****   |            ****

Parameters

Parameter Description
vX Number whose sine is returned. Function returns Null if vX is Null or cannot be fixed up to a real or complex number (as defined by the ComplexStringToReals function). Complex numbers are represented within strings as "R|I" where R is the real part and I is the imaginary part.

Notes & Version History

Return The result is expressed in radians.