Closed CAG2Mark closed 3 years ago
This one might be somewhat related to #546 but I'm not sure.
I don't know to be honest. But it would be useful if it was able to recognise duplicate equations in a system of linear equations.
On Sat, Aug 29, 2020 at 3:48 AM Martin Donk notifications@github.com wrote:
This one might be somewhat related to #546 https://github.com/jiggzson/nerdamer/issues/546 but I'm not sure.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/jiggzson/nerdamer/issues/562#issuecomment-683115156, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANEKFYAJF637U7ORG6F54J3SDACYBANCNFSM4P5VLKLA .
nerdamer.solveEquations(['x+y=1', '2*x=6', '4*z+y=6']);
outputs the following:[["x", 3], ["y", -2], ["z", 2]]
When I add the equation 'y = (-1) z' to the system, the solution should not change, as y is indeed equal to -z. However, when I run the following code: `nerdamer.solveEquations(['x+y=1', '2x=6', '4z+y=6', 'y = (-1) z']);
I get the error:
System does not have a distinct solution`