--User changes

-cosh, coth, csch, sech, sinh, tanh: Scale inputs by PI/4. This will produce different results, but is technically more correct.

--Code changes
 -cos, csch: move position of sign flip, shouldn't change output.
 -cot, coth, csc, csch, sec, sech, tan, tanh: add optimization.
This commit is contained in:
Person
2019-06-02 14:33:42 -07:00
parent 460dd6254f
commit a117432762
6 changed files with 206 additions and 146 deletions

View File

@ -59,6 +59,7 @@ namespace apoconv
{ "pow(", "std::pow(" },
{ "fabs(", "std::abs(" },
{ "log(", "std::log(" },
{ "exp(", "std::exp(" },
{ "sqr(", "Sqr(" },
@ -69,7 +70,7 @@ namespace apoconv
{ "M_LN10", "T(M_LN10)" },
{ "M_PI", "T(M_PI)" },
{ "M_PI_2", "T(M_PI_2)" },
{ "M_PI_4", "T(M_PI_4)" },
{ "M_PI_4", "M_PI4" },
{ "M_1_PI", "T(M_1_PI)" },
{ "M_2_PI", "T(M_2_PI)" },
{ "M_2_SQRTPI", "T(M_2_SQRTPI)" },