Using SymJa for symbolic calculations
Code: "symbolic_symja.py"
Programming language: Python
DMelt Version 1.4. Last modified: 12/19/1970. License: Free
http://jwork.org/dmelt/code/cache/symbolic_symja_195.py
To run this script using the DMelt IDE, copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.


from jhplot.math   import *

s=Symbolic("symja")
util=s.getEngine()

result = util.evaluate("Expand[(AX^2+BX)^2]")
print result

result = util.evaluate("A=2;B=4")
print result

result = util.evaluate("Expand[(A*X^2+B*X)^2]")
print result

result = util.evaluate("Factor[-1+x^16]")
print result