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

public class Grade1 extends Function {
	
	private double a, b;
	
	public Grade1(double a, double b) {
		this.a = a;
		this.b = b;
	}

	@Override
	public double getY(double x) {
		return a*x+b;
	}

}