From 611596c916fa9ff1015209b3bd306516ff39311f Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 21 Dec 2016 21:16:37 +0100 Subject: [PATCH] PTpower --- src/spicelib/parser/ptfuncs.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/spicelib/parser/ptfuncs.c b/src/spicelib/parser/ptfuncs.c index fe81d5c57..0671dfe08 100644 --- a/src/spicelib/parser/ptfuncs.c +++ b/src/spicelib/parser/ptfuncs.c @@ -70,14 +70,7 @@ PTdivide(double arg1, double arg2) double PTpower(double arg1, double arg2) { - if (arg1 < 0.0) { - if (fabs(arg2 - ((int) arg2)) / (arg2 + 0.001) < 0.000001) { - arg2 = (int) arg2; - } else { - arg1 = -arg1; - } - } - return (pow(arg1, arg2)); + return pow(fabs(arg1), arg2); } double