# This uses Jasymca engine

from jhplot.math import * 
from jhplot import *
from java.awt import Color

j=Symbolic("jasymca") # this sets the engine to "jasymca"

s="syms x; sin(x)^2+cos(x)^2"
print "Simplified ",s, " is ",j.eval(s)

s1="A=[2 3 1; 4 4 5; 2 9 3;];"
s2="b=[0;3;1];"
print "Systems of Linear Equations:",s1,s2
print j.eval(s1+s2+"linsolve(A,b)")
