From f5ebea5e9fe1fac5b008104497802abd1f609e20 Mon Sep 17 00:00:00 2001 From: Holger Vogt Date: Thu, 16 Apr 2020 12:04:31 +0200 Subject: [PATCH] use internally predefined pow() function --- src/frontend/inpcom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 347e31da4..6e389e375 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -7592,9 +7592,9 @@ static struct card *pspice_compat(struct card *oldcard) /* add funcs limit, pwr, pwrs, stp, if, int */ new_str = copy(".func limit(x, a, b) { min(max(x, a), b) }"); nextcard = insert_new_line(nextcard, new_str, 4, 0); - new_str = copy(".func pwr(x, a) { abs(x) ** a }"); + new_str = copy(".func pwr(x, a) { pow(x, a) }"); nextcard = insert_new_line(nextcard, new_str, 5, 0); - new_str = copy(".func pwrs(x, a) { sgn(x) * pwr(x, a) }"); + new_str = copy(".func pwrs(x, a) { sgn(x) * pow(x, a) }"); nextcard = insert_new_line(nextcard, new_str, 6, 0); new_str = copy(".func stp(x) { u(x) }"); nextcard = insert_new_line(nextcard, new_str, 7, 0);