# ConstantSteps¶

class probnum.diffeq.ConstantSteps(stepsize)[source]

Constant step size rule for ODE solvers.

Methods Summary

 errorest_to_norm(errorest, proposed_state, …) Computes the norm of error per tolerance (usually referred to as ‘E’). is_accepted(scaled_error) Always True. suggest(laststep, errorest[, localconvrate]) Suggest a new step h_{n+1} given error estimate e_n at step h_n.

Methods Documentation

errorest_to_norm(errorest, proposed_state, current_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.

is_accepted(scaled_error)[source]

Always True.

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

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