You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package _4._1;
|
|
|
|
public class SquareFunction extends Function {
|
|
public SquareFunction() {
|
|
super();
|
|
}
|
|
|
|
public SquareFunction(Function inner) {
|
|
super(inner);
|
|
}
|
|
|
|
@Override
|
|
public double apply(double x) {
|
|
return x * x;
|
|
}
|
|
}
|