numparm, fix pow() implementation

This commit is contained in:
rlar 2013-10-08 18:38:43 +02:00
parent 1dda94fb7a
commit feb43795b2
1 changed files with 1 additions and 6 deletions

View File

@ -1038,7 +1038,6 @@ operate(char op, double x, double y)
/* bug: x:=x op y or simply x:=y for empty op? No error signalling! */
double u = 1.0;
double z = 0.0;
double epsi = 1e-30;
double t;
switch (op)
@ -1060,11 +1059,7 @@ operate(char op, double x, double y)
x = x / y;
break;
case '^': /* power */
t = absf(x);
if (t < epsi)
x = z;
else
x = exp(y * ln(t));
x = pow(fabs(x), y);
break;
case '&': /* && */
if (y < x)