// This example shows the symbolic derivation "plugin" class Test { public static final double omega = 3.276; public static final double theta = 0.227; public static final double decay = 1.447E-3; public static int main(String args[]) { // Tabulate the following expression for (double t = 0.0; t < 50.0; t += 0.01) { double y = d(sin(2 * omega * t + theta) * exp(-decay * t))/dt; System.out.println("t=" + t + ", y=" + y); } } }