SciML / DiffEqDocs.jl

Documentation for the DiffEq differential equations and scientific machine learning (SciML) ecosystem
https://docs.sciml.ai/DiffEqDocs/stable/
Other
272 stars 242 forks source link

Conversion to DataFrame does not show described behaviour #224

Closed zimmermm closed 5 years ago

zimmermm commented 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!

ChrisRackauckas commented 5 years ago

Duplicate