JMathTools is a collection of independent packages designed to fit common engineering/scientific computing needs. For now, JMathTools contains:
JMathTools is designed to be:
It was initially developed to provide easy to use java API in Matlab to Java porting task.
JMathTools was NOT designed to be:
For such things, many free Java packages are available (see Links).
Provides a list of static methods applicable on int and double arrays:
import static org.math.array.LinearAlgebra.*; ... // random 4 x 4 matrix + Id double[][] A = plus(random(4, 4), identity(4)); // Eigen values Decomposition : A = V * D * V^-1 EigenvalueDecomposition eig = eigen(A); double[][] V = eig.getV(); double[][] D = eig.getD();
JMathArray syntax is stable. Only new features may be added, and current syntax will stay available.
→ Download jar
→ Doxygen doc
→ Tutorial
Provides :
![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() | ![]() |
![]() | ![]() | ![]() |
import org.math.plot.*; ... double[] x = ... double[] y = ... // create your PlotPanel (you can use it as a JPanel) Plot2DPanel plot = new Plot2DPanel(); // add a line plot to the PlotPanel plot.addLinePlot("my plot", x, y); // put the PlotPanel in a JFrame, as a JPanel JFrame frame = new JFrame("a plot panel"); frame.setContentPane(plot); frame.setVisible(true);
JMathPlot syntax is NOT stable. As far as possible current syntax will stay available.
→ Download jar
→ Doxygen doc
→ Tutorial
JMathIO allows to create, read, write, append your datas in:
import static org.math.io.files.ASCIIFile.*; import static org.math.io.parser.ArrayString.*; ... double[][] b = { { 1.0, 2.0, 3.0, 4.0 }, { 11.0, 12.0, 13.0, 14.0 } }; // write file in ASCII writeDoubleArray(new File("b.txt"), b); // read this file double[][] b_read = readDoubleArray(new File("b.txt"));
JMathIO syntax is considered stable. Only new features may be added, and current syntax will stay available.
→ Download jar
→ Doxygen doc
→ Tutorial