Commit graph

6 commits

Author SHA1 Message Date
Mitsuru Kariya
191867afe0 fix math::is_odd for a negative argument
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
2014-07-16 01:13:53 +09:00
bolero-MURAKAMI
14f8d9d042 fix copyright year 2014-01-08 16:48:12 +09:00
bolero-MURAKAMI
c58c9cc0fc fix: math functions (support for inferior C++14 standard)
add C++14 constexpr modifying algorithms
2013-10-25 12:29:16 +09:00
bolero-MURAKAMI
cb1077d247 add copyright 2013-08-08 18:54:33 +09:00
bolero-MURAKAMI
3f434dd7e1 add finite check: is_integer, is_odd, is_even 2013-05-09 01:15:44 +09:00
bolero-MURAKAMI
7794e56192 fix math functions 2013-05-06 00:22:08 +09:00