This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / integrate / _ivp / radau / predict_factor

function

scipy.integrate._ivp.radau:predict_factor

source: build-install/usr/lib/python3.14/site-packages/scipy/integrate/_ivp/radau.py:139

Signature

def predict_factor(h_abs, h_abs_old, error_norm, error_norm_old)

Summary

Predict by which factor to increase/decrease the step size.

Extended Summary

The algorithm is described in [1].

Parameters

h_abs, h_abs_old : float

Current and previous values of the step size, h_abs_old can be None (see Notes).

error_norm, error_norm_old : float

Current and previous values of the error norm, error_norm_old can be None (see Notes).

Returns

factor : float

Predicted factor.

Notes

If h_abs_old and error_norm_old are both not None then a two-step algorithm is used, otherwise a one-step algorithm is used.

Aliases

  • scipy.integrate._ivp.radau.predict_factor