summaryrefslogtreecommitdiff
path: root/src/function/Grade2.java
blob: 2198d3a91f5971e04167a44c5c4bc75c27c514b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package function;

public class Grade2 extends Function {
	
	private double a, b, c;
	
	public Grade2(double a, double b, double c) {
		this.a = a;
		this.b = b;
		this.c = c;
	}
	
	public double getY(double x) {
		return a*Math.pow(x, 2)+b*x+c;
	}

}