Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ sinh(3C) — DG/UX 4.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought



                                                                 sinh(3C)



        _________________________________________________________________
        sinh                                            $builtin function
        Determine the hyperbolic sine of a number.
        _________________________________________________________________


        Calling Sequence

        double m, n, sinh();
        m = sinh(n);

        (or)

        $builtin double sinh();
        double m, n;
        m = sinh(n);

        where m and n are of type double.


        Description

        The sinh function returns the hyperbolic sine (m) of the number
        you pass it (n.) The first version noted above uses a function
        call.  The second might generate smaller or faster code, but may
        not run under other C compilers.

        The include file math.h defines this entry, and uses the $builtin
        version.


        Returns

        If a floating-point overflow or underflow occurs, this function
        will return the largest possible floating-point number (with the
        correct sign) and sets errno to ERANGE (defined in errno.h).


        Related Functions

        See also the sin function.


        Example

        /* Program test for the sinh() function */

        #include <math.h>

        int     i = 1;
        double  m, n, atof(), sinh();



        DG/UX 4.00                                                 Page 1
               Licensed material--property of copyright holder(s)





                                                                 sinh(3C)



        main(argc, argv)

        int    argc;
        char  *argv[];
        {
            while (i < argc) {
                n = atof(argv[i]);
                printf("Hyperbolic sin of %lf = %lf\n",
                       n, m = sinh(n));
                i++;
            }
        }

        A call to the program test with


        generates the output

        Hyperbolic sin of 0.100000 = 0.100166
        Hyperbolic sin of 0.750000 = 0.822316
        Hyperbolic sin of 0.500000 = 0.521095
        Hyperbolic sin of 0.250000 = 0.252612
































        DG/UX 4.00                                                 Page 2
               Licensed material--property of copyright holder(s)



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