-
-
Notifications
You must be signed in to change notification settings - Fork 98
Console usage
axexlck edited this page Nov 17, 2018
·
9 revisions
Symja can be used as computer algebra system in a REPL
Make sure the Oracle Java 8 development kit (JDK8) is installed. At a terminal you can type java -version to see if it is installed.
If not head to the Oracle JDK8 download page and follow the installation instructions.
Download the latest Symja release from
Unzip the download in a separate folder and modify the symja.bat file to use your Java 8 installation path to run the Symja Console:
"%JAVA_HOME%\bin\java" -classpath "lib/*" org.matheclipse.core.eval.Console
The available predefined function names in the console are described in the
>>> 24/60
2/5
>>> N(24/60)
0.4
>>> sin(30*degree)
1/2
>>> sin(pi/2)
1
>>> a+a+4*b^2+3*b^2
2*a+7*b^2
>>> solve({x^2-11==y, x+y==-9}, {x,y})
{{x->-2,y->-7},{x->1,y->-10}}
>>> dsolve({y'(x)==y(x)+2,y(0)==1},y(x), x)
{{y(x)->-2+3*E^x}}
>>> integrate(cos(x)^5, x)
-2/3*Sin(x)^3+Sin(x)^5/5+Sin(x)
>>> D(sin(x^3), x)
3*Cos(x)*Sin(x)^2
>>> factor(-1+x^16)
(-1+x)*(1+x)*(1+x^2)*(1+x^4)*(1+x^8)
>>> factor(5+x^12, Modulus->7)
(2+x^3)*(4+x^6)*(5+x^3)
>>> expand((-1+x)*(1+x)*(1+x^2)*(1+x^4)*(1+x^8))
-1+x^16
>>> det({{1,2},{3,4}})
-2
>>> inverse({{1,2},{3,4}})
{{-2,1},
{3/2,-1/2}}
>>> factorinteger(2^15-5)
{{3,1},{67,1},{163,1}}
>>> refine(abs(n*abs(m)), n<0)
-n*Abs(m)