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

cbrt.3p (2419B)


  1. '\" et
  2. .TH CBRT "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. cbrt,
  12. cbrtf,
  13. cbrtl
  14. \(em cube root functions
  15. .SH SYNOPSIS
  16. .LP
  17. .nf
  18. #include <math.h>
  19. .P
  20. double cbrt(double \fIx\fP);
  21. float cbrtf(float \fIx\fP);
  22. long double cbrtl(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 real cube root of their argument
  30. .IR x .
  31. .SH "RETURN VALUE"
  32. Upon successful completion, these functions shall return the cube root
  33. of
  34. .IR x .
  35. .P
  36. If
  37. .IR x
  38. is NaN, a NaN shall be returned.
  39. .P
  40. If
  41. .IR x
  42. is \(+-0 or \(+-Inf,
  43. .IR x
  44. shall be returned.
  45. .SH ERRORS
  46. No errors are defined.
  47. .LP
  48. .IR "The following sections are informative."
  49. .SH EXAMPLES
  50. None.
  51. .SH "APPLICATION USAGE"
  52. None.
  53. .SH RATIONALE
  54. For some applications, a true cube root function, which returns
  55. negative results for negative arguments, is more appropriate than
  56. .IR pow (\c
  57. .IR x ,
  58. 1.0/3.0), which returns a NaN for
  59. .IR x
  60. less than 0.
  61. .SH "FUTURE DIRECTIONS"
  62. None.
  63. .SH "SEE ALSO"
  64. The Base Definitions volume of POSIX.1\(hy2017,
  65. .IR "\fB<math.h>\fP"
  66. .\"
  67. .SH COPYRIGHT
  68. Portions of this text are reprinted and reproduced in electronic form
  69. from IEEE Std 1003.1-2017, Standard for Information Technology
  70. -- Portable Operating System Interface (POSIX), The Open Group Base
  71. Specifications Issue 7, 2018 Edition,
  72. Copyright (C) 2018 by the Institute of
  73. Electrical and Electronics Engineers, Inc and The Open Group.
  74. In the event of any discrepancy between this version and the original IEEE and
  75. The Open Group Standard, the original IEEE and The Open Group Standard
  76. is the referee document. The original Standard can be obtained online at
  77. http://www.opengroup.org/unix/online.html .
  78. .PP
  79. Any typographical or formatting errors that appear
  80. in this page are most likely
  81. to have been introduced during the conversion of the source files to
  82. man page format. To report such errors, see
  83. https://www.kernel.org/doc/man-pages/reporting_bugs.html .