C++11/14 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others.
Boost Software License 1.0
876
stars
48
forks
source link
fix math::is_odd for a negative argument #66
Closed
kariya-mitsuru closed 10 years ago
I think that sprout::math::is_odd(-1) should be true.
It also fixes math::pow for a case that x is a negative and y is a negative odd integer.
cf. http://melpon.org/wandbox/permlink/XVKea2I6CdVJCbZX