Open source software for numerical computation

Skip to main content

Java

Java is a major programming language and Scilab should offer a Java interface.

Javasci provides a simple and documented API which follows the Java conventions to use Scilab engine features from a Java application or library.

Fully and automatically tested, it allows any application to delegate the calculation and modeling parts to Scilab.

For example, the following Java code shows the data exchange between Java and Scilab engine and a simple calculation:

Scilab sci = new Scilab();
sci.open();
sci.exec("disp(%pi);");
ScilabDouble a = new ScilabDouble(3.14);
sci.put("a",a);
sci.exec("b=sin(a);");
ScilabType b = sci.get("b");
System.out.println("b = " + b);

The lastest improvements of Javasci come from Similan R&D project.