Book Image

Mastering Julia

Book Image

Mastering Julia

Overview of this book

Table of Contents (17 chapters)
Mastering Julia
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Differential equations


Differential equations are those that have terms that involve the rates of change of variates as well as the variates themselves. They arise naturally in a number of fields, notably dynamics. When the changes are with respect to one dependent variable, most often the systems are called ordinary differential equations. If more than a single dependent variable is involved, then they are termed partial differential equations.

Julia has a number of packages that aid the calculation of differentials of functions and to solve systems of differential equations. We will look at a few aspects of these in the next section.

The solution of ordinary differential equations

Julia supports the solution of ordinary differential equations through a couple of packages such as ODE and Sundials. ODE consists of routines written solely in Julia whereas Sundials is a wrapper package around a shared library.

We will look at the ODE package first.

ODE exports a set of adaptive solvers; adaptive...