Changes between Version 1 and Version 2 of doc/lol/math/real.h


Ignore:
Timestamp:
Dec 28, 2011, 6:42:55 PM (9 years ago)
Author:
sam
Comment:

--

Legend:

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

    v1 v2  
    7272|| `R_SQRT1_2` || the square root of 1/2 ||
    7373
     74All these constant are accurate up to the full precision of the real number class.
     75
    7476== Conversions ==
    7577
     
    8890{{{
    8991#!cpp
    90 real r("0.1");
     92real r("3.1415");
    9193r.print(10);
     94}}}
     95
     96{{{
     973.141500000
    9298}}}
    9399
     
    106112As an extension, the `<<`, `<<=`, `>>` and `>>=` operators are available for very fast division or multiplication by a power of two.
    107113
    108 '''Example''': compute the first 150 digits of the golden ratio as the quotient of two very large Fibonacci numbers:
     114=== Example ===
     115
     116Compute the first 150 digits of the golden ratio as the quotient of two very large Fibonacci numbers:
    109117
    110118{{{
     
    173181|| `fmod` || modulo: remainder of dividing ''x'' by ''y'' ||
    174182
    175 '''Example''': find the solution to ''cos(x) = x³'' using [http://en.wikipedia.org/wiki/Newton's_method#Solution_of_cos.28x.29_.3D_x3 Newton-Raphson]:
     183=== Example ===
     184
     185Find the solution to ''cos(x) = x³'' using [http://en.wikipedia.org/wiki/Newton's_method#Solution_of_cos.28x.29_.3D_x3 Newton-Raphson]:
    176186
    177187{{{