ConstantSteps

class probnum.diffeq.stepsize.ConstantSteps(stepsize)

Bases: StepRule

Constant step-sizes.

Methods Summary

errorest_to_norm(errorest, reference_state)

Computes the norm of error per tolerance (usually referred to as 'E').

is_accepted(scaled_error)

Always True.

suggest(laststep, scaled_error[, localconvrate])

Suggest a new step h_{n+1} given error estimate e_n at step h_n.

Methods Documentation

Parameters

stepsize (Union[float, Real, floating]) –

errorest_to_norm(errorest, reference_state)[source]

Computes the norm of error per tolerance (usually referred to as ‘E’).

The norm is usually the current error estimate normalised with atol, rtol, and the magnitude of the previous states. If this is smaller than 1, the step was small enough.

Parameters
is_accepted(scaled_error)[source]

Always True.

Parameters

scaled_error (Union[float, Real, floating]) –

suggest(laststep, scaled_error, localconvrate=None)[source]

Suggest a new step h_{n+1} given error estimate e_n at step h_n.

Parameters