From 74836555beb47b6effecc9e44a7a33abbc1197fc Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Fri, 22 Feb 2013 13:19:19 +0000 Subject: [PATCH] lolremez: minor refactor. --- test/math/remez.cpp | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/test/math/remez.cpp b/test/math/remez.cpp index 19483ec1..5cec573f 100644 --- a/test/math/remez.cpp +++ b/test/math/remez.cpp @@ -1,7 +1,7 @@ // // Lol Engine - Sample math program: Chebyshev polynomials // -// Copyright: (c) 2005-2011 Sam Hocevar +// Copyright: (c) 2005-2013 Sam Hocevar // 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 // Public License, Version 2, as published by Sam Hocevar. See @@ -14,15 +14,22 @@ #include "core.h" -#include "lol/math/real.h" -#include "lol/math/remez.h" +#include +#include using lol::real; using lol::RemezSolver; /* 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) {