A Java Math Library for carryng out complex functions and advanced tools. From math geometry, calculus and algebra to artificial intelligence
Features
- Cross platform
- Simple and easy use
- Stadistic and data mining tools
- Regression (linear, polynomial)
- Window Viewer
- Function and data drawer
- Data analyzer
- Advanced Matrix and Vector classes
- Stadistic functions
- Equation solver
- 2D/3D Physics
- Collisions
- CSV data reader
- Artificial Inteligence - Beta
- Neural Network - In progress
- Genetic Algorithm - In progress
Download
Download the .jar file and set it to your project workspace. Select project properties and add the library to the build path. Then you will have finished setting up all the requirements
IDE Environment
Used Eclipse. You can also use Netbeans or IntellijIDEA
Coding with the Math Library
This library let you to carry out complex algorithms
Works in every platform : Linux, Windows, MacOSX
Sintax
The sintax for using the library is Simple.
You have Matrix, Vector classes for creating math structures
Then you have solvers like Regression or Equation solvers
Finally you can draw the solutions in a window
Example
Code
double[][]values= {{1,1,1,-1},{1,1,-1,1},{1,-1,1,1},{-1,1,1,1}}; //Matrix DataSet
double []outputsX= {49,69,89,99,109,20}; //XValues for regression
double []outputsY= {124,95,36,45,55,30}; //YValues for regression
MathViewer viewer= new MathViewer(600, 600); //Create a window to draw functions
double solutions[]=Regression.executePolynomialRegression(outputsX, outputsY, 4); //Execute polynomial regression with grade 3 (4-1)
viewer.draw().addDataset(Dataset.arrayToDataset(outputsX, outputsY)); //Simple draw dataset points
viewer.draw().addFunction(solutions); //Draw the regression solution function