diff --git a/README.md b/README.md index 087bea3..ac8f94a 100644 --- a/README.md +++ b/README.md @@ -6,10 +6,10 @@ A tutorial is available [in the wiki section](https://github.com/samhocevar/lolr ## Example -Approximate `atan(sqrt(3+x³)-exp(1+x))` over the range `[sqrt(2),pi²]` with a 5th degree polynomial: +Approximate `atan(sqrt(3+x³)-exp(1+x))` over the range `[sqrt(2),pi²]` with a 5th degree polynomial for `double` floats: ```sh -lolremez -d 5 -r "sqrt(2):pi²" "atan(sqrt(3+x³)-exp(1+x))" +lolremez --double -d 5 -r "sqrt(2):pi²" "atan(sqrt(3+x³)-exp(1+x))" ``` Result: @@ -20,12 +20,12 @@ Result: * with a polynomial of degree 5. */ double f(double x) { - double u = -3.9557569330471554e-5; + double u = -3.9557569330471555e-5; u = u * x + 1.2947712130833294e-3; u = u * x + -1.6541397035559147e-2; u = u * x + 1.0351664953941214e-1; u = u * x + -3.2051562487328135e-1; - return u * x + -1.1703528319321960; + return u * x + -1.1703528319321961; } ``` @@ -56,8 +56,22 @@ Math functions: - *asin()*, *acos()*, *atan()* - *sinh()*, *cosh()*, *tanh()* +Parsing rules: + + - *-a^b* is *-(a^b)* + - *a^b^c* is *(a^b)^c* + ## Changes +### News for LolRemez 0.4: + + - Allow expressions in the range specification: `-r -pi/4:pi/4` is now valid. + - Allow using “pi” and “e” in expressions, as well as “π”. + - Bugfixes in the expression parser. + - Support for hexadecimal floats, *e.g.* `0x1.999999999999999ap-4`. + - New `--float`, `--double` and `--long-double` options to choose precision. + - Trim down DLL dependencies to allow for lighter binaries. + ### News for LolRemez 0.3: - implemented an expression parser so that the user does not have to diff --git a/configure.ac b/configure.ac index 6a7fb23..1d403a4 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ dnl dnl Configure script for a Lol Engine project dnl -AC_INIT(lolremez, 0.3) +AC_INIT(lolremez, 0.4) dnl dnl Standard autoconf setup and tools requirements diff --git a/lol b/lol index a94e477..29b41d9 160000 --- a/lol +++ b/lol @@ -1 +1 @@ -Subproject commit a94e477f7fb924c4fc5db3bfc9089f8a65bffa58 +Subproject commit 29b41d9c081a1ae0d3eaa54e3b545a23d275f6d7 diff --git a/src/lolremez.vcxproj b/src/lolremez.vcxproj index 0eac703..75a1670 100644 --- a/src/lolremez.vcxproj +++ b/src/lolremez.vcxproj @@ -41,7 +41,7 @@ - PACKAGE_VERSION="0.3";%(PreprocessorDefinitions) + PACKAGE_VERSION="0.4";%(PreprocessorDefinitions)