coefficient should not be re-ordered twice for cashybrid.
Apparently isnan(double t) does not compile with some builds.
std::isnan(double t) seems to work.

Namespace issue, I guess