constants man page on Darwin

Man page or keyword search:  
man Server   23457 pages
apropos Keyword Search (all sections)
Output format
Darwin logo
[printable version]

M_PI(3)			 BSD Library Functions Manual		       M_PI(3)

NAME
     constants — mathematical library constants

SYNOPSIS
     #include <math.h>

DESCRIPTION
     The header file math.h provides macros that define a number of useful
     numerical constants.

LIST OF CONSTANTS
     As required by the POSIX standard, these constants are double-precision
     literals, with enough digits specified as to ensure that they are cor‐
     rectly rounded in double-precision:

     M_E

     "Euler's constant" or e; the base of the natural logarithm.

     M_LOG2E
     M_LOG10E

     The logarithms of e in base 2 and 10, respectively.

     M_LN2
     M_LN10

     The natural logarithms of 2 and 10, respectively.	Note that these are
     the reciprocals of the preceeding two values.

     M_PI
     M_PI_2
     M_PI_4

     pi, pi/2, and pi/4, respectively.

     M_1_PI
     M_2_PI

     1/pi and 2/pi, respectively.

     M_2_SQRTPI

     Two divided by the square root of pi.

     M_SQRT2
     M_SQRT_1_2

     The square root of two and its reciprocal, respectively.

SEE ALSO
     math(3), float(3),

STANDARDS
     The <math.h> functions and macros conform to the ISO/IEC 9899:2011 stan‐
     dard.

BSD				 July 6, 2010				   BSD
[top]

List of man pages available for Darwin

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net