logo

oasis-root

Compiled tree of Oasis Linux based on own branch at <https://hacktivis.me/git/oasis/> git clone https://anongit.hacktivis.me/git/oasis-root.git

cosh.3p (3577B)


  1. '\" et
  2. .TH COSH "3P" 2017 "IEEE/The Open Group" "POSIX Programmer's Manual"
  3. .\"
  4. .SH PROLOG
  5. This manual page is part of the POSIX Programmer's Manual.
  6. The Linux implementation of this interface may differ (consult
  7. the corresponding Linux manual page for details of Linux behavior),
  8. or the interface may not be implemented on Linux.
  9. .\"
  10. .SH NAME
  11. cosh,
  12. coshf,
  13. coshl
  14. \(em hyperbolic cosine functions
  15. .SH SYNOPSIS
  16. .LP
  17. .nf
  18. #include <math.h>
  19. .P
  20. double cosh(double \fIx\fP);
  21. float coshf(float \fIx\fP);
  22. long double coshl(long double \fIx\fP);
  23. .fi
  24. .SH DESCRIPTION
  25. The functionality described on this reference page is aligned with the
  26. ISO\ C standard. Any conflict between the requirements described here and the
  27. ISO\ C standard is unintentional. This volume of POSIX.1\(hy2017 defers to the ISO\ C standard.
  28. .P
  29. These functions shall compute the hyperbolic cosine of their argument
  30. .IR x .
  31. .P
  32. An application wishing to check for error situations should set
  33. .IR errno
  34. to zero and call
  35. .IR feclearexcept (FE_ALL_EXCEPT)
  36. before calling these functions. On return, if
  37. .IR errno
  38. is non-zero or \fIfetestexcept\fR(FE_INVALID | FE_DIVBYZERO |
  39. FE_OVERFLOW | FE_UNDERFLOW) is non-zero, an error has occurred.
  40. .SH "RETURN VALUE"
  41. Upon successful completion, these functions shall return the hyperbolic
  42. cosine of
  43. .IR x .
  44. .P
  45. If the correct value would cause overflow, a range error shall occur
  46. and
  47. \fIcosh\fR(),
  48. \fIcoshf\fR(),
  49. and
  50. \fIcoshl\fR()
  51. shall return the value of the macro HUGE_VAL, HUGE_VALF, and HUGE_VALL,
  52. respectively.
  53. .P
  54. If
  55. .IR x
  56. is NaN, a NaN shall be returned.
  57. .P
  58. If
  59. .IR x
  60. is \(+-0, the value 1.0 shall be returned.
  61. .P
  62. If
  63. .IR x
  64. is \(+-Inf, +Inf shall be returned.
  65. .SH ERRORS
  66. These functions shall fail if:
  67. .IP "Range\ Error" 12
  68. The result would cause an overflow.
  69. .RS 12
  70. .P
  71. If the integer expression (\fImath_errhandling\fR & MATH_ERRNO) is
  72. non-zero, then
  73. .IR errno
  74. shall be set to
  75. .BR [ERANGE] .
  76. If the integer expression (\fImath_errhandling\fR & MATH_ERREXCEPT) is
  77. non-zero, then the overflow floating-point exception shall be raised.
  78. .RE
  79. .LP
  80. .IR "The following sections are informative."
  81. .SH EXAMPLES
  82. None.
  83. .SH "APPLICATION USAGE"
  84. On error, the expressions (\fImath_errhandling\fR & MATH_ERRNO) and
  85. (\fImath_errhandling\fR & MATH_ERREXCEPT) are independent of each
  86. other, but at least one of them must be non-zero.
  87. .SH RATIONALE
  88. None.
  89. .SH "FUTURE DIRECTIONS"
  90. None.
  91. .SH "SEE ALSO"
  92. .IR "\fIacosh\fR\^(\|)",
  93. .IR "\fIfeclearexcept\fR\^(\|)",
  94. .IR "\fIfetestexcept\fR\^(\|)",
  95. .IR "\fIisnan\fR\^(\|)",
  96. .IR "\fIsinh\fR\^(\|)",
  97. .IR "\fItanh\fR\^(\|)"
  98. .P
  99. The Base Definitions volume of POSIX.1\(hy2017,
  100. .IR "Section 4.20" ", " "Treatment of Error Conditions for Mathematical Functions",
  101. .IR "\fB<math.h>\fP"
  102. .\"
  103. .SH COPYRIGHT
  104. Portions of this text are reprinted and reproduced in electronic form
  105. from IEEE Std 1003.1-2017, Standard for Information Technology
  106. -- Portable Operating System Interface (POSIX), The Open Group Base
  107. Specifications Issue 7, 2018 Edition,
  108. Copyright (C) 2018 by the Institute of
  109. Electrical and Electronics Engineers, Inc and The Open Group.
  110. In the event of any discrepancy between this version and the original IEEE and
  111. The Open Group Standard, the original IEEE and The Open Group Standard
  112. is the referee document. The original Standard can be obtained online at
  113. http://www.opengroup.org/unix/online.html .
  114. .PP
  115. Any typographical or formatting errors that appear
  116. in this page are most likely
  117. to have been introduced during the conversion of the source files to
  118. man page format. To report such errors, see
  119. https://www.kernel.org/doc/man-pages/reporting_bugs.html .