qalculate makes mistakes in factoring
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libqalculate (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: qalc
Open a terminal and perform the following:
$ qalc
> (1-y^(-
warning: To avoid division by zero, the following must be true: x != 0.
error: factorized result is wrong: -82x^2 + x^2 + x + -16x + -36x + 2x + -4 + -4. This is a bug. Please report it.
warning: To avoid division by zero, the following must be true: x != -(+infinity) / ln(y).
((1 - (y^(-(2 * x)))) / (2 * x)) + (((-((-(2 * x * (y^(-(2 * x))))) - (y^(-(2 * x))))) / (x^2)) - (((-(3 * x * (y^(-(3 * x))))) - (y^(-(3 * x)))) / (x^2))) - (((y^(-(2 * x))) - (y^(-(3 * x)))) / x) + ((5 * ((y^(-(3 * x))) - (y^(-(6 * x))))) / x) - (((((x^2) * ((9 * x * (y^(-(3 * x)))) + (3 * (y^(-(3 * x)))))) - (2 * x * ((-(3 * x * (y^(-(3 * x))))) - (y^(-(3 * x)))))) / (x^4)) + ((((x^2) * ((36 * x * (y^(-(6 * x)))) + (6 * (y^(-(6 * x)))))) - (2 * x * ((-(6 * x * (y^(-(6 * x))))) - (y^(-(6 * x)))))) / (x^4))) = -(81x^2 + 49x + 8) / (2x^3)
This is not in the upstream bug tracker.
It might be advisable to file it upstream; I can't see us doing anything about this.