Print this page


Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libm/common/LD/coshl.c
          +++ new/usr/src/lib/libm/common/LD/coshl.c
↓ open down ↓ 24 lines elided ↑ open up ↑
  25   25  /*
  26   26   * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
  27   27   * Use is subject to license terms.
  28   28   */
  29   29  
  30   30  #if defined(ELFOBJ)
  31   31  #pragma weak coshl = __coshl
  32   32  #endif
  33   33  
  34   34  #include "libm.h"
       35 +#include "longdouble.h"
  35   36  
  36   37  /*
  37   38   * COSH(X)
  38   39   * RETURN THE HYPERBOLIC COSINE OF X
  39   40   *
  40   41   * Method :
  41   42   *      1. Replace x by |x| (COSH(x) = COSH(-x)).
  42   43   *      2.
  43   44   *                                                      [ EXP(x) - 1 ]^2
  44   45   *          0        <= x <= 0.3465  :  COSH(x) := 1 + -------------------
↓ open down ↓ 64 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX