On Dec 22, 3:26 am, evans <ev...@artofproblemsolving.com> wrote:
> What I need is something that could take any two of these equations
> and tell me if they are equal or not. ...

One thing i can think of is to store them in expressions, the left
hand sides, and take differences. Then a test if it is zero. (or store
the entire equation and calculate eq.lhs - eq.rhs or something like
that)
But the problem is, afaik Sage can't read latex syntax and also there
is only limited support for implicit multiplications (i.e. 3x => 3*x)

sage: implicit_multiplication(True)
sage: var('x y')
(x, y)
sage: ex1 = 3 + x^2 + (2-y)/3 * x
sage: ex2 = x^2 + ((2-y)/3)x + 3
sage: if simplify(ex1-ex2) == 0: print "They are the same!"
....:
They are the same!


Harald
--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to