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
- 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.