I always calculate things by hand, but now my comrades are getting nasty and making a lot of repetitive exercises involving just plugging things in like the expression above. I am particularly interested in open-source software such as Python or R to simplify these kinds of equations. I tried using Wolfram Alpha, but I was unsuccessful. What open-source software packages are able to substitute the expression $x=\sqrt{2}t-1$ into the equation $x^{2}+2x+3$ and simplify the result? Specifically, I am looking for a software package that has something like a simplify command.
|
|
||||
|
|
|
You may want to look into SymPy, which is a Python library with your desired simplify command.
|
|||||||||||||
|
|
You got several good answers already with high quality advanced open source packages. I'd like to point to http://www.mathics.net/ (http://mathics.org/ if you want to download it), which is an open source CAS using the Mathematica syntax (which you may be familiar with a little bit if you're used WolramAlpha). It is not nearly as complete as any of the other suggestions you got. But it can do the (very simple) operations you talked about in your question. What you are talking about in your question is not really simplification, but substitution and expansion (which, unlike more complex simplification, are very easy to implement operations available even in the most basic CAS): In Mathics it would look like this:
In case you need a simplification function, it's called |
||||
|
|
|
Sage can do that (you're going to have to scroll pretty far down the page to get to the simplification part). Also, make sure you read the general introduction to symbolic math in Sage. It's semantics and syntax are quite different from Mathematica, which is what most people are familiar with. Here's an example from the documentation I linked you to:
For your case, this should work:
|
|||||
|
|
As akid suggested, wxMaxima is a great graphical front end to the venerable lisp based Computer Algebra System called Maxima. Using your example, you would get something like:
or you could just do it directly:
Maxima has a number of different ways of simplifying, but |
||||
|
|
|
I think I was able to get Wolfram Alpha to work. Maybe I'm wrong about what you're looking for. |
||||
|
|
|
wxMaxima can simplify expressions. I believe it's supposed to be a substitute for Maple. |
|||
|
|