Closed zimmermm closed 5 years ago
If I take the example in 'Ordinary Differential Equations':
using DifferentialEquations, IterableTables, DataFrames function parameterized_lorenz(du,u,p,t) du[1] = p[1]*(u[2]-u[1]) du[2] = u[1]*(p[2]-u[3]) - u[2] du[3] = u[1]*u[2] - p[3]*u[3] end u0 = [1.0,0.0,0.0] tspan = (0.0,1.0) p = [10.0,28.0,8/3] prob = ODEProblem(parameterized_lorenz,u0,tspan,p) sol1 = solve(prob, Rosenbrock23()) df = DataFrame(sol1)
The timestamps appear as columns and the variables as rows!
Duplicate
If I take the example in 'Ordinary Differential Equations':
The timestamps appear as columns and the variables as rows!