Changes between Initial Version and Version 1 of doc/lol/math/constants.h


Ignore:
Timestamp:
Mar 13, 2013, 12:20:19 PM (8 years ago)
Author:
sam
Comment:

list the upcoming constants

Legend:

Unmodified
Added
Removed
Modified
  • doc/lol/math/constants.h

    v1 v1  
     1[[TOC]]
     2= <lol/math/constants.h> =
     3
     4View this file in the source browser: [browser:trunk/src/lol/math/constants.h]
     5
     6This header provides some commonly used constants. They are similar to the `M_PI`, `M_E` etc. variables provided by the `<math.h>` header except they have the `F_` prefix for “float”, `D_` for “double” and `LD_` for “long double”.
     7
     8== List of constants ==
     9
     10Note that these constants also exist with increased precision. See the [wiki:doc/lol/math/real.h <lol/math/real.h>] header.
     11
     12|| `F_PI` || `D_PI` || `LD_PI` || Archimede’s constant ''pi'' ||
     13|| `F_PI_2` || `D_PI_2` || `LD_PI_2` || ''pi'' divided by 2 ||
     14|| `F_PI_3` || `D_PI_3` || `LD_PI_3` || ''pi'' divided by 3 ||
     15|| `F_PI_4` || `D_PI_4` || `LD_PI_4` || ''pi'' divided by 4 ||
     16|| `F_1_PI` || `D_1_PI` || `LD_1_PI` || the reciprocal of ''pi'' ||
     17|| `F_2_PI` || `D_2_PI` || `LD_2_PI` || 2 divided by ''pi'' ||
     18|| `F_SQRT2` || `D_SQRT2` || `LD_SQRT2` || Pythagoras’ constant, the square root of 2 ||
     19|| `F_SQRT3` || `D_SQRT3` || `LD_SQRT3` || Theodorus’ constant, the square root of 3 ||
     20|| `F_SQRT1_2` || `D_SQRT1_2` || `LD_SQRT1_2` || the square root of 1/2 ||