Evaluate the solution for y(t) at time t.
Evaluate the solution for y(t) at time t.
the time point
Apply the exponential 'exp' function to each element of a vector.
Apply the exponential 'exp' function to each element of a vector.
the vector to apply the exp function to
Show the flaw by printing the error message.
Show the flaw by printing the error message.
the method where the error occurred
the error message
Print the solution to the differential equation.
The
LinearDiffEq
class may be used for solving a system of linear differential equations that are ordinary and first-order with constant coefficients of the formd/dt y(t) = a * y(t)
'y(t)' is the vector function of time and 'a' is the coefficient matrix. The initial value vector 'y0 = y(0)' must also be given. Note, higher-order differential equations may be converted to first-order by introducing additional variables. The above equation is the homogeneous case. Caveats: the following cases are not currently handled: (i) The non-homogeneous equation: d/dt y(t) = a * y(t) + f(t). (ii) Complex or repeated eigenvalues.