interface Function {
   double apply(double x);
}