dt (float, None) – Evolve for this length of time when computing the exponent. If None, then
a reasonable value should be estimated by the code. (The code may adaptively
update dt.)
min_norm (float, None) – Minimum norm. Start with states separated by min_norm, then evolve by dt,
extract the exponent, add this to the samples, then pull the state back along
the same direction to have length min_norm and repeat. If None, then
reasonable values should be estimated by the code.
Nsamples (int) – Number of samples to use when estimating the Lyapunov exponent. The estimate
should be the mean of this many samples with an error as the standard deviation.
norm (function) – Use this function to compute the norm of the difference between states.
(Default is np.linalg.norm.)
rng (random number generator) – Random number generator such as returned by np.random.default_rng(), which is
used by default if one is not provided.
debug (bool) – If True, then return (lams, ts, ys, dys) with the sample evolution.
solve_ivp_args (dict, None) – Additional arguments for solve_ivp.
Returns:
lams (array of floats) – Array of maximal Lyapunov exponents such that the mean and standard deviations
give a good estimate. These should be uncorrelated.
ts, ys, dys (array) – Only provided if debug is True. Times, states, and separations used in
sampling.