Closed drocheam closed 3 years ago
There's an error in the OprtAssignMul function (mpOprtBinAssign.cpp)
The line 191 *pVar = cmplx_type(a*c-b*d, a*d-b*c);
*pVar = cmplx_type(a*c-b*d, a*d-b*c);
should be *pVar = cmplx_type(a*c-b*d, a*d+b*c);
*pVar = cmplx_type(a*c-b*d, a*d+b*c);
Check https://www.math-only-math.com/multiplication-of-two-complex-numbers.html for reference.
should be fixed
There's an error in the OprtAssignMul function (mpOprtBinAssign.cpp)
The line 191
*pVar = cmplx_type(a*c-b*d, a*d-b*c);
should be
*pVar = cmplx_type(a*c-b*d, a*d+b*c);
Check https://www.math-only-math.com/multiplication-of-two-complex-numbers.html for reference.