Page - 175 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition
Image of the Page - 175 -
Text of the Page - 175 -
7SolvingNonlinearAlgebraicEquations
Asareaderof thisbook,youmightbewell intomathematicsandoften“accused”of
beingparticularlygoodatsolvingequations(a typicalcommentat familydinners!).
How true is it, however, that you can solve many types of equations with pen and
paperalone?Restrictingourattentiontoalgebraicequationsinoneunknownx,you
cancertainlydo linearequations:ax+b=0,andquadraticones:ax2+bx+c=
0. You may also know that there are formulas for the roots of cubic and quartic
equationstoo.Maybeyoucandothespecial trigonometricequationsinx+cosx=
1 as well, but there it (probably?) stops. Equations that are not reducible to one of
those mentioned, cannot be solved by general analytical techniques, which means
thatmostalgebraicequationsarising in applicationscannotbe treatedwith penand
paper!
If we exchange the traditional idea of finding exact solutions to equations with
the idea of ratherfindingapproximate solutions,a wholenewworldof possibilities
opensup.Withsuchanapproach,wecan in principlesolveanyalgebraicequation.
Letus start by introducinga commongeneric formforanyalgebraicequation:
f(x)=0 .
©The Author(s) 2020
S.Linge, H.P. Langtangen, Programming forComputations -Python,
Texts in Computational Science and Engineering 15,
https://doi.org/10.1007/978-3-030-16877-3_7 175
Programming for Computations – Python
A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition
- Title
- Programming for Computations – Python
- Subtitle
- A Gentle Introduction to Numerical Simulations with Python 3.6
- Volume
- Second Edition
- Authors
- Svein Linge
- Hans Petter Langtangen
- Publisher
- Springer Open
- Date
- 2020
- Language
- English
- License
- CC BY 4.0
- ISBN
- 978-3-319-32428-9
- Size
- 17.8 x 25.4 cm
- Pages
- 356
- Keywords
- Programmiersprache, Informatik, programming language, functional, imperative, object-oriented, reflective
- Category
- Informatik