bolero-MURAKAMI / Sprout

C++11/14 constexpr based Containers, Algorithms, Random numbers, Parsing, Ray tracing, Synthesizer, and others.
http://bolero-murakami.github.io/Sprout/
Boost Software License 1.0
876 stars 48 forks source link

sprout::math::pow returns nan when nagative value is inputted #65

Closed yasuharu519 closed 10 years ago

yasuharu519 commented 10 years ago

sprout::math::pow returns nan when negative value is inputted.

sprout::math::pow(-1.f, 2.f)

returns nan.

This should return 1.0f.

bolero-MURAKAMI commented 10 years ago

fixed: 5c10e4d85c50a76b8c67c1241c176be5c5e533a9 http://melpon.org/wandbox/permlink/9Ar1VTcbKpphn5ZH

yasuharu519 commented 10 years ago

Thank you for your quick reply!