[poincare] In Logarithm, fix bug in logarithm approximation: log(x,y) =

ln(x)/ln(y) (instead of ln(y)/ln(x))
This commit is contained in:
Émilie Feral
2017-12-14 10:17:23 +01:00
committed by Ecco
parent 385328f46b
commit 95438ff89d

View File

@@ -212,7 +212,7 @@ Expression * Logarithm::templatedApproximate(Context& context, AngleUnit angleUn
if (x->type() == Type::Complex && n->type() == Type::Complex) {
Complex<T> * xc = static_cast<Complex<T> *>(x);
Complex<T> * nc = static_cast<Complex<T> *>(n);
result = Division::compute<T>(computeOnComplex(*nc, angleUnit), computeOnComplex(*xc, angleUnit));
result = Division::compute<T>(computeOnComplex(*xc, angleUnit), computeOnComplex(*nc, angleUnit));
}
delete x;
delete n;