Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

intro(3m)



SIN(3M)                 COMMAND REFERENCE                 SIN(3M)



NAME
     sin, cos, tan, sincos, asin, acos, atan, atan2 -
     trigonometric functions

SYNOPSIS
     #include <math.h>

     double sin(x)
     double x;

     double cos(x)
     double x;

     int sincos (x, sc_var)
     double x;
     struct sin_cos *sc_var;

     double tan(x)
     double x;

     double asin(x)
     double x;

     double acos(x)
     double x;

     double atan(x)
     double x;

     double atan2(x, y)
     double x, y;

DESCRIPTION
     Sin, cos, and tan return trigonometric functions of radian
     arguments.  Arguments of large magnitude will lose accuracy,
     agruments of very large magnitude will lose all accuracy.

     Sincos returns the sine of x and the cosine of x in sc_var.
     Accuracy considerations are as described for sin.

     Asin    returns the arc sin of x in the range - /2 to  /2.

     Acos    returns the arc cosine of x in the range 0 to  .

     Atan    returns the arc tangent of x in the range - /2 to
              /2.

     Atan2 (x/y)
             returns atan (x/y)  for y > 0
             returns sign(x)*(  - atan|x/y|)for y < 0
             returns 0           for y = 0 = x
             returns sign(x)* /2 for y = 0 ≠ x



Printed 3/13/89                                                 1





SIN(3M)                 COMMAND REFERENCE                 SIN(3M)



FILES
     /usr/lib/libm.a
                    Mathematical library functions.
                    /usr/include/math.h For sin_cos structure.

DIAGNOSTICS
     Asin and acos are undefined for arguments of absolute value
     greater than 1; errno is set to EDOM.

SEE ALSO
     intro(3m).












































Printed 3/13/89                                                 2



%%index%%
na:240,129;
sy:369,2572;
de:2941,1203;
fi:4456,245;
di:4701,361;
se:5062,150;
%%index%%000000000111

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026