⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 differentialequation.java

📁 一个一元曲线多项式数值演示例子
💻 JAVA
字号:
package numbercruncher.mathutils;

/**
 * The base class for functions that can have derivatives.
 * Initialize the static function table with some sample functions.
 */
public abstract class DifferentialEquation
    implements Evaluatable {
  /** initial condition */
  private DataPoint initialCondition;
  /** solution function label */
  private String solutionLabel;

  /**
   * Constructor.
   * @param initialCondition the initial condition data point
   * @param solutionLabel the solution function label
   */
  public DifferentialEquation(DataPoint initialCondition,
                              String solutionLabel) {
    this.initialCondition = initialCondition;
    this.solutionLabel = solutionLabel;
  }

  /**
   * Return the initial condition data point.
   * @return the initial condition
   */
  public DataPoint getInitialCondition() {
    return initialCondition;
  }

  /**
   * Return the solution label.
   * @return the label
   */
  public String getSolutionLabel() {
    return solutionLabel;
  }

  /**
   * Return the value of the differential equation at x.
   * (Implementation of Evaluatable.)
   * @param x the value of x
   * @return the solution value
   */
  public abstract float at(float x);

  /**
   * Return the value of the differential equation at (x, y).
   * @return the solution value
   */
  public float at(float x, float y) {
    return at(x);
  }

  /**
   * Return the value of the solution at x.
   * @return the solution value
   */
  public abstract float solutionAt(float x);
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -