Wolfram Language Paclet Repository

Community-contributed installable additions to the Wolfram Language

Primary Navigation

    • Cloud & Deployment
    • Core Language & Structure
    • Data Manipulation & Analysis
    • Engineering Data & Computation
    • External Interfaces & Connections
    • Financial Data & Computation
    • Geographic Data & Computation
    • Geometry
    • Graphs & Networks
    • Higher Mathematical Computation
    • Images
    • Knowledge Representation & Natural Language
    • Machine Learning
    • Notebook Documents & Presentation
    • Scientific and Medical Data & Computation
    • Social, Cultural & Linguistic Data
    • Strings & Text
    • Symbolic & Numeric Computation
    • System Operation & Setup
    • Time-Related Computation
    • User Interface Construction
    • Visualization & Graphics
    • Random Paclet
    • Alphabetical List
  • Using Paclets
    • Get Started
    • Download Definition Notebook
  • Learn More about Wolfram Language

DifferentialEquationSolver

Guides

  • Guide to ZigangPan`DifferentialEquationSolver`

Symbols

  • flow
  • flowV
  • HDRungeKutta
  • nflow
  • nflowV
  • RungeKutta45
  • RungeKutta45V
ZigangPan`DifferentialEquationSolver`
flow
​
flow
[f,xc,
t
0
]
calculates the solution to the system of ordinary differential equation
xc'[t]=f[xc1[t],xc2[t],...,xcn[t]]
;
xc[t0]
=xc0; where
f
is the vector field (a pure function),
xc
is the state vector,and xc0 is the initial condition at time
t0
. The return of the function is a function sol[xc0_,t_] that satisfies the desired differential equation and the initial condition. (This function tries to solve the differential equation for all initial conditions.)
​
Examples  
(1)
Basic Examples  
(1)
In[1]:=
f[x1_,x2_]:={-x1,x1^2-x2};xc={x1,x2};t0=0;
In[2]:=
sol=
flow
[f,xc,t0]
Out[2]=
Function{x10,x20,Private`t$9408},
x10
Private`t$9408

,
-
2
x10
+
Private`t$9408

2
x10
+
Private`t$9408

x20
2Private`t$9408


In[3]:=
Plot[sol[2,1,t],{t,0,10},PlotRangeAll]
Out[3]=
SeeAlso
nflow
 
▪
RungeKutta45
 
▪
flowV
 
▪
RungeKutta45V
""

© 2025 Wolfram. All rights reserved.

  • Legal & Privacy Policy
  • Contact Us
  • WolframAlpha.com
  • WolframCloud.com