?? diffeqsolver.java~1~
字號:
package numbercruncher.mathutils;/** * The base class for differential equation solvers. */public abstract class DiffEqSolver{ /** the differential equation to solve */ protected DifferentialEquation equation; /** the initial condition data point */ protected DataPoint initialCondition; /** current x value */ protected float x; /** current y value */ protected float y; /** * Constructor. * @param equation the differential equation to solve */ public DiffEqSolver(DifferentialEquation equation) { this.equation = equation; this.initialCondition = equation.getInitialCondition(); reset(); } /** * Reset x and y to the initial condition data point. */ public void reset() { this.x = initialCondition.x; this.y = initialCondition.y; } /** * Return the next data point in the * approximation of the solution. * @param h the width of the interval */ public abstract DataPoint nextPoint(float h);}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -