DifferentiableFunction.java


Below is the syntax highlighted version of DifferentiableFunction.java from §3.3 Designing Data Types.


public interface DifferentiableFunction {
    public double evaluate(double x);
    public double differentiate(double x);
}


Copyright © 2000–2017, Robert Sedgewick and Kevin Wayne.
Last updated: Fri Oct 20 14:12:12 EDT 2017.