Skip to content
Ax Kr edited this page May 15, 2021 · 9 revisions

Maven Usage

Using Maven, add the following to your pom.xml if you want to use the core (and gpl module which is licensed under GPL) library in your Java program:

<dependencies>
  <dependency>
    <groupId>org.matheclipse</groupId>
      <artifactId>matheclipse-core</artifactId>
	  <version>2.0.0-SNAPSHOT</version>
    </dependency>
  <dependency>
    <groupId>org.matheclipse</groupId>
      <artifactId>matheclipse-gpl</artifactId>
	  <version>2.0.0-SNAPSHOT</version>
    </dependency>
</dependencies>

<repositories> 
  <repository>
    <id>snapshots-repo</id>
    <url>https://oss.sonatype.org/content/repositories/snapshots</url>
    <releases>
      <enabled>false</enabled>
    </releases>
    <snapshots>
      <enabled>true</enabled>
    </snapshots>
  </repository>
</repositories>

If you would like to use fast integer factorization, add after Symja initialisation:

Config.PRIME_FACTORS = new BigIntegerPrimality();

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 function names

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
Clone this wiki locally