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

Page - 143 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition

Image of the Page - 143 -

Image of the Page - 143 - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition

Text of the Page - 143 -

6.3 TheCompositeMidpointMethod 143 Fig. 6.3 Computing approximately the integral of a function as the sum of the areas of the rectangles the trapezoidal method (10%) with the same sub-intervals. More rectangles give a betterapproximation. 6.3.1 TheGeneralFormula Let us derive a formula for the midpoint method based on n rectangles of equal width: ∫ b a f(x)dx= ∫ x1 x0 f(x)dx+ ∫ x2 x1 f(x)dx+ . . .+ ∫ xn xnβˆ’1 f(x)dx, β‰ˆhf ( x0+x1 2 ) +hf ( x1+x2 2 ) + . . .+hf ( xnβˆ’1 +xn 2 ) , β‰ˆh ( f ( x0+x1 2 ) +f ( x1+x2 2 ) + . . .+f ( xnβˆ’1+xn 2 )) . (6.19) This sum maybewrittenmorecompactlyas ∫ b a f(x)dxβ‰ˆh nβˆ’1βˆ‘ i=0 f(xi), (6.20) wherexi = ( a+ h2 )+ ih.
back to the  book Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition"
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
Web-Books
Library
Privacy
Imprint
Austria-Forum
Austria-Forum
Web-Books
Programming for Computations – Python