Annotation of coherent/b/lib/libm/asin.c, revision 1.1

1.1     ! root        1: /*
        !             2:  * Compute the inverse sine function.
        !             3:  */
        !             4: #include <math.h>
        !             5: 
        !             6: #if    EMU87
        !             7: #include "emumath.h"
        !             8: #endif
        !             9: 
        !            10: double
        !            11: asin(x)
        !            12: double x;
        !            13: {
        !            14:        if (x<-1.0 || x>1.0) {
        !            15:                errno = EDOM;
        !            16:                return (0.0);
        !            17:        }
        !            18:        if (x == 1.0)
        !            19:                return (PI/2.0);
        !            20:        if (x == -1.0)
        !            21:                return (-PI/2.0);
        !            22:        return (atan(x/sqrt(1.0-x*x)));
        !            23: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.