summaryrefslogtreecommitdiff
path: root/src/auxiliaryFunctions/pythag/cpythags.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/auxiliaryFunctions/pythag/cpythags.c')
-rw-r--r--src/auxiliaryFunctions/pythag/cpythags.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/auxiliaryFunctions/pythag/cpythags.c b/src/auxiliaryFunctions/pythag/cpythags.c
index b505195c..2f4ad33d 100644
--- a/src/auxiliaryFunctions/pythag/cpythags.c
+++ b/src/auxiliaryFunctions/pythag/cpythags.c
@@ -13,6 +13,6 @@
#include "pythag.h"
floatComplex cpythags(floatComplex x, floatComplex y) {
- return (csqrts( cadds(ctimess(x,x),
- ctimess(y,y)) ));
+ return (csqrts( cadds(cmuls(x,x),
+ cmuls(y,y)) ));
}