Original Post
Hi all. In my application it has been sensible to define the following function: double alt_pow(double a, double b){ return a<0 ? -pow(-a,b) : pow(a,b); } Alternatively, alt_pow(a,b)=sgn(a)pow(|a|,b) Is there a proper mathematical name for this function of am I being obscure?