Ignore:
Timestamp:
Sep 27, 2011, 7:09:35 PM (11 years ago)
Author:
sam
Message:

test: more work on the Remez exchange algorithm.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/math/pi.cpp

    r984 r989  
    3333    sum.print();
    3434
     35    /* Bonus: compute e for fun. */
     36    sum = 0.0;
     37    x0 = 1.0;
     38
     39    for (int i = 1; i < 100; i++)
     40    {
     41        sum += fres(x0);
     42        x0 *= (real)i;
     43    }
     44
     45    sum.print();
     46
    3547    return EXIT_SUCCESS;
    3648}
Note: See TracChangeset for help on using the changeset viewer.