package jasext.hist.function;

import jas2.hist.*;

public class CubicFunction extends AbstractPolynomialFunction
{
	CubicFunction(double[] coefficients)
	{
		p = coefficients;
	}
	public CubicFunction(double xmin, double xmax, double ymin, double ymax)
	{
		order = 3;
		p = new double[4];
		p[0] = 1.0;
		p[1] = -6.0;
		p[2] = 8.0;
		p[3] = -6.0;
	}
	public String getTitle()
	{
		return "Cubic";
	}
}

 

Ads help maintain this website.