| @@ -1,7 +1,7 @@ | |||||
| // | // | ||||
| // Lol Engine - Sample math program: Chebyshev polynomials | // Lol Engine - Sample math program: Chebyshev polynomials | ||||
| // | // | ||||
| // Copyright: (c) 2005-2011 Sam Hocevar <sam@hocevar.net> | |||||
| // Copyright: (c) 2005-2013 Sam Hocevar <sam@hocevar.net> | |||||
| // This program is free software; you can redistribute it and/or | // This program is free software; you can redistribute it and/or | ||||
| // modify it under the terms of the Do What The Fuck You Want To | // modify it under the terms of the Do What The Fuck You Want To | ||||
| // Public License, Version 2, as published by Sam Hocevar. See | // Public License, Version 2, as published by Sam Hocevar. See | ||||
| @@ -14,15 +14,22 @@ | |||||
| #include "core.h" | #include "core.h" | ||||
| #include "lol/math/real.h" | |||||
| #include "lol/math/remez.h" | |||||
| #include <lol/math/real.h> | |||||
| #include <lol/math/remez.h> | |||||
| using lol::real; | using lol::real; | ||||
| using lol::RemezSolver; | using lol::RemezSolver; | ||||
| /* See the tutorial at http://lol.zoy.org/wiki/doc/maths/remez */ | /* See the tutorial at http://lol.zoy.org/wiki/doc/maths/remez */ | ||||
| real f(real const &x) { return exp(x); } | |||||
| real g(real const &x) { return exp(x); } | |||||
| real f(real const &x) | |||||
| { | |||||
| return exp(x); | |||||
| } | |||||
| real g(real const &x) | |||||
| { | |||||
| return exp(x); | |||||
| } | |||||
| int main(int argc, char **argv) | int main(int argc, char **argv) | ||||
| { | { | ||||