public
class
Cosine
implements
Function {
public
double
apply(
double
x) {
return
Math.cos(x); } }