Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

3 anos atrás
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by GNU Texinfo 6.5, http://www.gnu.org/software/texinfo/ -->
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>cosh (LIBM)</title>
  7. <meta name="description" content="cosh (LIBM)">
  8. <meta name="keywords" content="cosh (LIBM)">
  9. <meta name="resource-type" content="document">
  10. <meta name="distribution" content="global">
  11. <meta name="Generator" content="makeinfo">
  12. <link href="index.html#Top" rel="start" title="Top">
  13. <link href="Document-Index.html#Document-Index" rel="index" title="Document Index">
  14. <link href="Document-Index.html#SEC_Contents" rel="contents" title="Table of Contents">
  15. <link href="Math.html#Math" rel="up" title="Math">
  16. <link href="erf.html#erf" rel="next" title="erf">
  17. <link href="copysign.html#copysign" rel="prev" title="copysign">
  18. <style type="text/css">
  19. <!--
  20. a.summary-letter {text-decoration: none}
  21. blockquote.indentedblock {margin-right: 0em}
  22. blockquote.smallindentedblock {margin-right: 0em; font-size: smaller}
  23. blockquote.smallquotation {font-size: smaller}
  24. div.display {margin-left: 3.2em}
  25. div.example {margin-left: 3.2em}
  26. div.lisp {margin-left: 3.2em}
  27. div.smalldisplay {margin-left: 3.2em}
  28. div.smallexample {margin-left: 3.2em}
  29. div.smalllisp {margin-left: 3.2em}
  30. kbd {font-style: oblique}
  31. pre.display {font-family: inherit}
  32. pre.format {font-family: inherit}
  33. pre.menu-comment {font-family: serif}
  34. pre.menu-preformatted {font-family: serif}
  35. pre.smalldisplay {font-family: inherit; font-size: smaller}
  36. pre.smallexample {font-size: smaller}
  37. pre.smallformat {font-family: inherit; font-size: smaller}
  38. pre.smalllisp {font-size: smaller}
  39. span.nolinebreak {white-space: nowrap}
  40. span.roman {font-family: initial; font-weight: normal}
  41. span.sansserif {font-family: sans-serif; font-weight: normal}
  42. ul.no-bullet {list-style: none}
  43. -->
  44. </style>
  45. </head>
  46. <body lang="en">
  47. <a name="cosh"></a>
  48. <div class="header">
  49. <p>
  50. Next: <a href="erf.html#erf" accesskey="n" rel="next">erf</a>, Previous: <a href="copysign.html#copysign" accesskey="p" rel="prev">copysign</a>, Up: <a href="Math.html#Math" accesskey="u" rel="up">Math</a> &nbsp; [<a href="Document-Index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Document-Index.html#Document-Index" title="Index" rel="index">Index</a>]</p>
  51. </div>
  52. <hr>
  53. <a name="cosh_002c-coshf_002d_002d_002dhyperbolic-cosine"></a>
  54. <h3 class="section">1.13 <code>cosh</code>, <code>coshf</code>&mdash;hyperbolic cosine</h3>
  55. <p><strong>Synopsis</strong>
  56. </p><div class="example">
  57. <pre class="example">#include &lt;math.h&gt;
  58. double cosh(double <var>x</var>);
  59. float coshf(float <var>x</var>);
  60. </pre></div>
  61. <p><strong>Description</strong><br>
  62. </p>
  63. <p><code>cosh</code> computes the hyperbolic cosine of the argument <var>x</var>.
  64. <code>cosh(<var>x</var>)</code> is defined as
  65. </p><div class="smallexample">
  66. <pre class="smallexample"> (exp(x) + exp(-x))/2
  67. </pre></div>
  68. <p>Angles are specified in radians.
  69. <code>coshf</code> is identical, save that it takes and returns <code>float</code>.
  70. </p>
  71. <br>
  72. <p><strong>Returns</strong><br>
  73. The computed value is returned. When the correct value would create
  74. an overflow, <code>cosh</code> returns the value <code>HUGE_VAL</code> with the
  75. appropriate sign, and the global value <code>errno</code> is set to <code>ERANGE</code>.
  76. </p>
  77. <br>
  78. <p><strong>Portability</strong><br>
  79. <code>cosh</code> is ANSI.
  80. <code>coshf</code> is an extension.
  81. </p>
  82. <br>
  83. </body>
  84. </html>