Commit 2f27d046 authored by Alexander A. Maly's avatar Alexander A. Maly

Fixing bug in ComplexNumbers multiplication

parent 648bc0c9
Pipeline #692 passed with stages
in 4 minutes and 30 seconds
......@@ -74,7 +74,7 @@ Complex ComplexNumbersModule::runOperatorASTERISK(const Complex& x, const Comple
{
Complex result;
result.re = x.re*y.re - x.im*y.im;
result.im = y.im*x.re + x.re*y.im;
result.im = x.re*y.im + x.im*y.re;
return result;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment