From 4804b7e30b46107a5b3c329fcc277f128b5f7d75 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 119cc22ef..6c737586c 100644 --- a/src/spicelib/parser/ptfuncs.c +++ b/src/spicelib/parser/ptfuncs.c @@ -69,14 +69,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