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

com.graphbuilder.math.func.EFunction Maven / Gradle / Ivy

Go to download

Implementation of various mathematical curves that define themselves over a set of control points. The API is written in Java. The curves supported are: Bezier, B-Spline, Cardinal Spline, Catmull-Rom Spline, Lagrange, Natural Cubic Spline, and NURBS.

There is a newer version: 1.08
Show newest version
package com.graphbuilder.math.func;

/**
Euler's number, e, also called the base of natural logarithms.

@see java.lang.Math#E
*/
public class EFunction implements Function {

	public EFunction() {}

	/**
	Returns the constant e regardless of the input.
	*/
	public double of(double[] d, int numParam) {
		return java.lang.Math.E;
	}

	/**
	Returns true only for 0 parameters, false otherwise.
	*/
	public boolean acceptNumParam(int numParam) {
		return numParam == 0;
	}

	public String toString() {
		return "e()";
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy