Changeset 1069 for trunk/test/math
 Timestamp:
 Nov 15, 2011, 1:52:42 PM (9 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

trunk/test/math/remez.cpp
r1050 r1069 31 31 real myfun(real const &y) 32 32 { 33 real k1024 = 1024; 34 real klog32 = log((real)32); 35 return (y  k1024) / log2(log(sqrt(y))/klog32); 33 36 real x = sqrt(y); 34 37 return (sin(x)  x) / (x * y); … … 37 40 real myerr(real const &y) 38 41 { 42 return myfun(y); 43 return real::R_1; 39 44 real x = sqrt(y); 40 45 return sin(x) / (x * y); … … 43 48 int main(int argc, char **argv) 44 49 { 45 RemezSolver< 6> solver;46 solver.Run( real::R_1 >> 400, real::R_PI_2 * real::R_PI_2, myfun, myerr, 40);50 RemezSolver<3> solver; 51 solver.Run((real)(1024.001), (real)(1024 * 1024), myfun, myerr, 40); 47 52 48 53 return EXIT_SUCCESS;
Note: See TracChangeset
for help on using the changeset viewer.