C++ Mathematical Expression Library (ExprTk) http://www.partow.net/programming/exprtk/index.html

This commit is contained in:
Arash Partow
2013-10-25 08:02:51 +11:00
parent 58c2b0805e
commit 8bad05fa8c
3 changed files with 11 additions and 15 deletions

View File

@ -249,7 +249,7 @@ struct native
static inline T func13(Type x, Type y)
{
return (x + (std::cos(y - std::sin(2 / x * pi)) - std::sin(x - std::cos(2 * y / pi))) - y);
return (x + (std::cos(y - std::sin(T(2) / x * pi)) - std::sin(x - std::cos(T(2) * y / pi))) - y);
}
static inline T func14(Type x, Type y)