Home > Software engineering >  Programming language for manipulating equations algebraically
Programming language for manipulating equations algebraically

Time:10-19

What is a good programming language that I can learn for writing my own algorithms/scripts to manipulate equations? As an example, I would like to run the following script on an equation that looks like this:

I know I could just use WolframAlpha.com or WolframLanguage, but I think it's fun to solve problems from scratch without the use of the website.

  1. Isolate a square root term on the LHS.
  2. Square both sides of the equation.
  3. Add and subtract terms accordingly to get 0 on LHS.
  4. Isolate another square root term on the LHS. [ i.e. step 1) ]
  5. Repeat step 2).
  6. Repeat step 3).
  7. Repeat step 1).

ETC . . .

Note, I have tried Python, but sadly it's not the best because I can't square root polynomials (using numpy library, at least) and all sorts of other complications with variables and whatnot...

CodePudding user response:

What you are looking for is a branch of computer science that is called symbolic computation (a.k.a computer algebra). I have seen books about this topic in LISP, Mupad, Mathematica, etc. Here are some of the references:

  • Related