C version Now returns NUM error when trying to do a non integer power of a negative number