#131 multisolve() does not work with semicolon separators

open
nobody
5
2011-07-16
2011-07-16
No

When using a locale which uses semicolons as separators (and commas as decimal points), such as "de_AT.utf8", the multisolve() function states an error that it cannot isolate the "y" variable, given the following input:

multisolve([3*x-3*y=4; 17*x+23*y=15];[x;y])
= multisolve([((3 ⋅ x) − (3 ⋅ y)) = 4; ((17 ⋅ x) + (23 ⋅ y)) = 15]; [x; y])
- Unable to isolate y.

However, the same input works fine using the "qalc" command line tool:

> multisolve([3*x-3*y=4; 17*x+23*y=15];[x;y])

multisolve([((3 * x) - (3 * y)) = 4, ((17 * x) + (23 * y)) = 15], [x, y]) = approx. [1.14166666666666666666666666667, -0.191666666666666666666666666667]

I therefore assume this problem is not specific to multisolve() or the backend library, but rather a general parsing problem with qalculate-gtk when using a locale like "de_AT.utf8".

Discussion