All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.lsmp.djepExamples.JamaConsole Maven / Gradle / Ivy

Go to download

JEP is a Java library for parsing and evaluating mathematical expressions.

The newest version!
/* @author rich
 * Created on 21-Mar-2005
 *
 * See LICENSE.txt for license information.
 */
package org.lsmp.djepExamples;
import org.lsmp.djep.jama.JamaUtil;

/**
 * has support for Jama matrix operations
 * @author Rich Morris
 * Created on 21-Mar-2005
 * @see http://math.nist.gov/javanumerics/jama/
 */
public class JamaConsole extends VectorConsole
{
	private static final long serialVersionUID = -4256036388099114905L;

	public static void main(String[] args)
	{
		Console c = new JamaConsole();
		c.run(args);
	}
	
	public void initialise()
	{
		super.initialise();
		JamaUtil.addStandardFunctions(j);
	}

	public void printHelp()
	{
		super.printHelp();
		println("inverse([[1,2],[3,4]])");
		println("rank([[1,2],[3,4]])");
		println("z = solve(x,y) solves x*z = y");
	}

	public void printIntroText()
	{
		super.printIntroText();
		println("Adds Jama matrix ops: inverse, solve, rank");
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy