All Packages Class Hierarchy This Package Previous Next Index
java.lang.Object | +----jDisco.Linkage | +----jDisco.Link | +----jDisco.Continuous | +----jDisco.Function
A Function-object represents a variable whose continuous change can be described by an n'th order differential equation. The d array of an object contains the derivatives; d(i).state contains the i'th derivative (d(0).state contains the function value itself).
d(i).rate should not be used by the user.
Example:
The second-order equation of Van der Pol:
d2y/dt2 + E(1-y2)dy/dt + y = 0may be represented by:
y.d(2).state = - E * (1 - Math.pow(y.d(0).state, 2)) * y.d(1).state - y.d(0).state;where y is a Function-object with n = 2.
Note that y must be started to undergo continuous change.
public Function(int n)
public jDisco.Continuous start()
public void stop()
public jDisco.Variable d(int i)
protected final void derivatives()
All Packages Class Hierarchy This Package Previous Next Index