Page - 185 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python
Image of the Page - 185 -
Text of the Page - 185 -
6SolvingNonlinearAlgebraicEquations
As a reader of this book you are probably well into mathematics and often “ac-
cused” of being particularly good at “solving equations” (a typical comment at
family dinners!). However, is it really true that you,with penandpaper, can solve
many types of equations? Restricting our attention to algebraic equations in one
unknownx, youcancertainlydo linearequations:axCbD0, andquadraticones:
ax2CbxCcD0. Youmayalsoknowthat thereare formulas for the rootsof cu-
bicandquarticequations too.Maybeyoucandothespecial trigonometricequation
sinxCcosx D 1 aswell, but there it (probably) stops. Equations that are not re-
ducible tooneof thementionedcannotbe solvedbygeneral analytical techniques,
whichmeans thatmostalgebraicequationsarising inapplicationscannotbe treated
withpenandpaper!
Ifwe exchange the traditional idea of finding exact solutions to equationswith
the ideaof ratherfindingapproximate solutions, awholenewworldofpossibilities
opensup.Withsuchanapproach,wecan inprinciplesolveanyalgebraicequation.
Letus start by introducingacommongeneric formforanyalgebraicequation:
f.x/D0:
Here,f.x/ is someprescribed formula involvingx. Forexample, theequation
e x sinxD cosx
185©TheAuthor(s)2016
S.Linge,H.P.Langtangen,Programming for Computations –Python,
Texts inComputational Science andEngineering15,DOI10.1007/978-3-319-32428-9_6
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