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

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

}