from jhplot.math import *
s=Symbolic("symja")
util=s.getEngine()
s="FactorInteger[2^15-5]" # Factor an integer number
print util.evaluate(s)
s="D[Sin[x^3],x]"
print util.evaluate(s) # Derivative of a function
s="Factor[-1+x^16]"
print util.evaluate(s) # Factor a polynomial
s="Factor[5+x^12,Modulus->7]"
print util.evaluate(s) # Factor a polynomial modulo an integer
s="Expand[(-1+x)*(1+x)*(1+x^2)*(1+x^4)*(1+x^8)]"
print util.evaluate(s) # Expand a polynomial
s="Inverse[{{1,2},{3,4}}]"
print util.evaluate(s) # Inverse of a matrix
s="Det[{{1,2},{3,4}}]"
print util.evaluate(s) # Determinant of a matrix