Web-Books
in the Austria-Forum
Austria-Forum
Web-Books
Informatik
Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python
Page - 95 -
  • User
  • Version
    • full version
    • text only version
  • Language
    • Deutsch - German
    • English

Page - 95 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python

Image of the Page - 95 -

Image of the Page - 95 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python

Text of the Page - 95 -

4SolvingOrdinaryDifferentialEquations Differential equations constitute one of themost powerful mathematical tools to understand and predict the behavior of dynamical systems in nature, engineering, andsociety.Adynamicalsystemissomesystemwithsomestate,usuallyexpressed by a set of variables, that evolves in time. For example, an oscillating pendulum, thespreadingofadisease, and theweatherareexamplesofdynamical systems.We canusebasic lawsofphysics, or plain intuition, to expressmathematical rules that govern theevolutionof thesystemin time. These rules take the formofdifferential equations.Youareprobablywellexperiencedwithequations,at leastequationslike axCbD0orax2CbxCcD0. Suchequationsareknownasalgebraicequations, and theunknownisanumber. Theunknowninadifferentialequation isa function, andadifferentialequationwillalmostalways involvethis functionandoneormore derivatives of the function. For example, f 0.x/ D f.x/ is a simple differential equation (asking if there is any functionf such that it equals its derivative – you might remember thatex is acandidate). The present chapter starts with explaining how easy it is to solve both single (scalar) first-order ordinarydifferential equations and systemsoffirst-order differ- entialequationsbytheForwardEulermethod.Wedemonstrateall themathematical andprogrammingdetails through twospecificapplications: populationgrowthand spreadingofdiseases. Thenwe turn to a physical application: oscillatingmechanical systems, which arise in awide rangeof engineering situations. Thedifferential equation is nowof secondorder, and theForwardEulermethoddoesnot performwell. This observa- 95©TheAuthor(s)2016 S.Linge,H.P.Langtangen,Programming for Computations –Python, Texts inComputational Science andEngineering15,DOI10.1007/978-3-319-32428-9_4
back to the  book Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python"
Programming for Computations – Python A Gentle Introduction to Numerical Simulations with Python
Title
Programming for Computations – Python
Subtitle
A Gentle Introduction to Numerical Simulations with Python
Authors
Svein Linge
Hans Petter Langtangen
Publisher
Springer Open
Date
2016
Language
English
License
CC BY-NC 4.0
ISBN
978-3-319-32428-9
Size
17.8 x 25.4 cm
Pages
248
Keywords
Programmiersprache, Informatik, programming language, functional, imperative, object-oriented, reflective
Category
Informatik
Web-Books
Library
Privacy
Imprint
Austria-Forum
Austria-Forum
Web-Books
Programming for Computations – Python