{ } Raw JSON

bundles / scipy latest / scipy / integrate / _ivp / radau / predict_factor

function

scipy.integrate._ivp.radau:predict_factor

source: /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