let's say, for example, I give this equation as an input:
4x + x - 20 + 10
And I want to get
5x - 10 as a result
Software Recommendations Stack Exchange is a question and answer site for people seeking specific software recommendations. It only takes a minute to sign up.Sign up to join this community
DataMelt (http://jwork.org/dmelt) does this. Here is an example (I use Jython, but you can use Java too)
from jhplot.math import * from jhplot import * j=Symbolic("jscl") # using jscl engine print j.simplify("(x + 1)^(1/x)") == "(1+x)^(1/x)" print j.simplify("(x^2-1)/(x-1)") == "1+x"
This code returns "true" for all such simplifications