affine_independent#

diffeqzoo.ivps.affine_independent(*, initial_values=1.0, time_span=(0.0, 1.0), a=1.0, b=0.0)[source]#

Construct an IVP with an affine vector field, where each dimension is treated independently.

In Python code, this means f(y, a, b)=a * y + b.

By default, this is a scalar problem. Change the initial value to make this a multidimensional problem.