public class Sine implements Function {
  public double apply(double x) {
    return Math.sin(x);
  }
}