コンテンツにスキップ

Tolerances

このコンテンツはまだ日本語訳がありません。

Defined in: error.rs:5

pub struct Tolerances {
pub atol: f64,
pub rtol: f64,
}

Tolerance configuration for adaptive step-size integrators.

atol: f64

Absolute tolerance (applied uniformly to all state components).


rtol: f64

Relative tolerance (applied uniformly to all state components).


fn validate(&self) -> [Result<(), IntegrationError>](https://doc.rust-lang.org/std/result/enum.Result.html)

Reject tolerances that would make adaptive error control meaningless.

atol == 0 && rtol == 0 makes the scale factor sc zero, so a component whose error is also zero yields 0 / 0 == NaN. A NaN error norm compares false against both the accept threshold and the dt_min floor, so the stepper would retry the same step forever.