in Mathematica
eq= a==a-x
Simplify[eq]
gives what is expected, which is
x==0
in Maple
eq:=a=a-x;
simplify(eq)
returns back a=a-x. So it did not do anything.
Why Maple does not do such simplification automatically as
Mathematica? Using option "size" does not help
eq:=a=a-x;
simplify(eq,size)
Only way I found in Maple is to manually convert
the equation to put everything on one side, like this
eq:=a=a-x;
simplify( lhs(eq)-rhs(eq) = 0 );
x=0
What is the logic that makes Maple not simplify a=a-x
to x=0 automatically? I do not see it myself.
Does your CAS simplify this automatically also?
Perhaps Maple operates in a similar way.
Martin.
pythonPython 3.11.3 (main, Apr 5 2023, 15:52:25) [GCC 12.2.1 20230201] on linux
Eq(a, a - x)from sympy import *
a,x = symbols('a x')
eq=Eq(a,a-x)
eq
Eq(x, 0)simplify(eq)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 61:54:28 |
Calls: | 6,712 |
Files: | 12,244 |
Messages: | 5,355,894 |