类 EulerFieldIntegrator<T extends CalculusFieldElement<T>>
java.lang.Object
org.hipparchus.ode.AbstractFieldIntegrator<T>
org.hipparchus.ode.nonstiff.RungeKuttaFieldIntegrator<T>
org.hipparchus.ode.nonstiff.EulerFieldIntegrator<T>
- 类型参数:
-
T
- 字段元素的类型
- 所有已实现的接口:
-
FieldODEIntegrator<T>
,FieldButcherArrayProvider<T>
public class EulerFieldIntegrator<T extends CalculusFieldElement<T>> extends RungeKuttaFieldIntegrator<T>
该类实现了普通微分方程的简单欧拉积分器。
欧拉算法是用于积分普通微分方程的最简单算法。它是正向差分表达式的简单反演:f'=(f(t+h)-f(t))/h
,导致f(t+h)=f(t)+hf'
。用于稠密输出的插值方案是线性方案,已用于积分。
这个算法看起来很便宜,因为每步只需要一个函数评估。然而,由于它使用线性估计,它需要非常小的步长才能达到高精度,而小步长会导致数值误差和不稳定性。
这个算法几乎从不被使用,并且仅作为更有用的积分器的比较参考而包含在此包中。
- 另请参阅:
-
构造器概要
-
方法概要
修饰符和类型方法说明protected org.hipparchus.ode.nonstiff.EulerFieldStateInterpolator
<T> createInterpolator
(boolean forward, T[][] yDotK, FieldODEStateAndDerivative<T> globalPreviousState, FieldODEStateAndDerivative<T> globalCurrentState, FieldEquationsMapper<T> mapper) 创建一个插值器。T[][]
getA()
从Butcher数组获取内部权重(不包括第一行空行)。T[]
getB()
从Butcher数组获取高阶方法的外部权重。T[]
getC()
从Butcher数组获取时间步长(不包括第一个零)。从类继承的方法 org.hipparchus.ode.nonstiff.RungeKuttaFieldIntegrator
fraction, getDefaultStep, integrate, singleStep
从类继承的方法 org.hipparchus.ode.AbstractFieldIntegrator
acceptStep, addEventDetector, addStepEndHandler, addStepHandler, clearEventDetectors, clearStepEndHandlers, clearStepHandlers, computeDerivatives, getCurrentSignedStepsize, getEquations, getEvaluations, getEvaluationsCounter, getEventDetectors, getField, getMaxEvaluations, getName, getStepEndHandlers, getStepHandlers, getStepSize, getStepStart, initIntegration, isLastStep, resetOccurred, sanityChecks, setIsLastStep, setMaxEvaluations, setStateInitialized, setStepSize, setStepStart
-
构造器详细资料
-
EulerFieldIntegrator
简单构造函数。使用给定的步长构建一个欧拉积分器。- 参数:
-
field
- 时间和状态向量元素所属的字段 -
step
- 积分步长
-
-
方法详细资料
-
getC
从Butcher数组获取时间步长(不包括第一个零)。- 返回:
- 从Butcher数组获取时间步长(不包括第一个零)
-
getA
从Butcher数组获取内部权重(不包括第一行空行)。- 返回:
- 从Butcher数组获取内部权重(不包括第一行空行)
-
getB
从Butcher数组获取高阶方法的外部权重。- 返回:
- 从Butcher数组获取高阶方法的外部权重
-
createInterpolator
protected org.hipparchus.ode.nonstiff.EulerFieldStateInterpolator<T> createInterpolator(boolean forward, T[][] yDotK, FieldODEStateAndDerivative<T> globalPreviousState, FieldODEStateAndDerivative<T> globalCurrentState, FieldEquationsMapper<T> mapper) 创建一个插值器。- 指定者:
-
createInterpolator
在类中RungeKuttaFieldIntegrator<T extends CalculusFieldElement<T>>
- 参数:
-
forward
- 积分方向指示器 -
yDotK
- 中间点的斜率 -
globalPreviousState
- 全局步骤的起始点 -
globalCurrentState
- 全局步骤的结束点 -
mapper
- 所有方程的方程映射器 - 返回:
- 从Butcher数组获取高阶方法的外部权重
-