NAME
    sin - sine

SYNOPSIS
    sin(x [,acc])

TYPES
    x		real
    acc		real

    return	real

DESCRIPTION
    Calculate the sine of x with an accuracy within acc.
    By default, acc is epsilon().

    The sine is calculated using the formula:

	sin(x)^2 + cos(x)^2 = 1

    with special case given to the sign of the result.

EXAMPLE
    > print sin(-1), sin(0), sin(2^-37)
    -.84147098480789650665 0 ~.0000000000072759576

    > print sin(0.4), sin(0.4, 0.01), sin(asin(1), 0.001)
    ~.38941834230865049166 .390625 1

LIMITS
    acc > 0

LIBRARY
    NUMBER *qsin(NUMBER *x, *acc)
    COMPLEX *csin(COMPLEX *x, NUMBER *acc)

SEE ALSO
    acos, atan, atan2, cos, epsilon, sin, tan
