Skip to content
Symja - Java computer algebra and symbolic math library. Differentiation, integration, equation solving, polynomial factorization and linear algebra functions.
Branch: master
Clone or download

Symja Library - Java Symbolic Math System

Note: this repository contains the Java 8 version of the project. The NCalc Android calculator project maintains a Java 7 Android branch of the Android *.AAR library.

Use especially the "2nd" button in the following calculator interfaces:

Google Play App Store

Quick start

Read the Symja Manual for the description of the Symja language or browse the available functions. We encourage everyone to participate in our Wiki.

Join the chat at


Features of the Symja language:



To get an idea of the kinds of expressions Symja handles, see the tests in this file.

Console Examples

>>> 24/60

>>> N(24/60)

>>> sin(30*degree)

>>> sin(pi/2)

>>> a+a+4*b^2+3*b^2

>>> solve({x^2-11==y, x+y==-9}, {x,y})

>>> dsolve({y'(x)==y(x)+2,y(0)==1},y(x), x)

>>> integrate(cos(x)^5, x)

>>> D(sin(x^3), x)

>>> factor(-1+x^16)

>>> factor(5+x^12, Modulus->7)

>>> expand((-1+x)*(1+x)*(1+x^2)*(1+x^4)*(1+x^8))

>>> det({{1,2},{3,4}})

>>> inverse({{1,2},{3,4}})

>>> factorinteger(2^15-5)

>>> refine(abs(n*abs(m)), n<0)

Maven Usage

Using Maven, add the following to your pom.xml



and run

mvn clean install

With the following command you can run the Symja console from the command line

mvn exec:java -pl matheclipse-core

With the following command you can run a symja console with a Mathematica-compatible syntax and functions

mvn exec:java@mma -pl matheclipse-core 

With the following command you can build a fat jar which contains all needed classes

mvn assembly:single -pl matheclipse-core

Getting started

First, you'll need a Java Development Kit compatible with Java 8 or later.

You can find JDK installers at:

If you're unsure how to install the JDK, you can find instructions for all operating systems here:

Pay careful attention to anything about setting up your PATH or CLASSPATH.

Install and open the latest version of the Eclipse development IDE for Java Developers:

Github GIT

a) Fork the Symja repository to use as a starting point.

  • Navigate to in your browser.
  • Click the "Fork" button in the top-right of the page.
  • Once your fork is ready, open the new repository's "Settings" by clicking the link in the menu bar on the left.
  • Change the repository name to the name of your Library and save your changes.

b) Clone your new repository to your Eclipse workspace.

  • Open Eclipse and select the "File -> Import..." menu item.
  • Select "Git -> Projects from Git", and click "Next >".
  • Select "URI" and click "Next >".
  • Enter your repository's clone URL in the "URI" field. The remaining fields in the "Location" and "Connection" groups will get automatically filled in.
  • Enter your Github credentials in the "Authentication" group, and click "Next >".
  • Select the master branch on the next screen, and click "Next >".
  • The default settings on the "Local Configuration" screen should work fine, click "Next >".
  • Make sure "Import existing projects" is selected, and click "Next >".
  • Eclipse should find and select the symja_android_library automatically, click "Finish".

See this Git version control with Eclipse (EGit) - Tutorial for a general overview.


If you have any questions about using or developing for this project, send me an email!


  • the complete Symja system is published under the GNU GENERAL PUBLIC LICENSE Version 3.

If you would like to use parts of the system here are some of the associated licenses:

  • the JAS Java Algebra System is published under the (LESSER) GNU GENERAL PUBLIC LICENSE license. The Java bytecode is dual licenced also under the Apache 2.0 license to allow usage in Android projects.
  • the apfloat project is published under the (LESSER) GNU GENERAL PUBLIC LICENSE license.
  • the LogicNG project is published under the Apache software license
  • the Hipparchus Mathematics Library is published under the Apache software license
  • the JGraphT Library is published under the Eclipse Public License (EPL) or (LESSER) GNU GENERAL PUBLIC LICENSE license.
  • the Symja parser libraries (org.matheclipse.parser* packages) are published under the APACHE LICENSE Version 2.0.
You can’t perform that action at this time.