mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-03-30 04:00:02 +02:00
[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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user