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

org.lsmp.djep.matrixJep.MatrixVariableFactory Maven / Gradle / Ivy

Go to download

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

The newest version!
/* @author rich
 * Created on 19-Dec-2003
 */
package org.lsmp.djep.matrixJep;

import org.lsmp.djep.djep.*;
import org.nfunk.jep.Node;
import org.nfunk.jep.Variable;

/**
 * Allows creation of matrix aware variables.
 * 
 * @author Rich Morris
 * Created on 19-Dec-2003
 */
public class MatrixVariableFactory extends DVariableFactory {

	/** create a derivative */
	public PartialDerivative createDerivative(DVariable var,String[] dnames,Node eqn) {
		return null;
	}

	/** Create a variable with a given value. */
	public Variable createVariable(String name, Object value) {
		return new MatrixVariable(name,value);
	}

	/** Create a variable with a given value. */
	public Variable createVariable(String name) {
		return new MatrixVariable(name);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy