Differential Equations: Computing and Modeling (5th Edition), Edwards, Penney & Calvis
5th Edition
ISBN: 9780321816252
Author: C. Henry Edwards, David E. Penney, David Calvis
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Question
Chapter 7.4, Problem 40P
Program Plan Intro
Program Description: Purpose of the problem is to show that
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
S(x) =
Given a cubic spline interpolation:
(So(x) = 1 − 2x − x3
1-2x-x³
0 < x < 1
(S₁(x) = 2 + b (x − 1) + c(x − 1)² + d(x − 1)² 1≤x<2
-
determine constants b, c, and d so that all conditions for a natural cubic spline hold.
We have learned the mid-point and trapezoidal rule for numercial intergration in the tutorials. Now you are asked to implement the Simpson rule, where we
approximate the integration of a non-linear curve using piecewise quadratic functions.
Assume f(x) is continuous over [a, b] . Let [a, b] be divided into N subintervals, each of length Ax, with endpoints at P = x0, x1, X2, ..., Xn,..., XN.
Each interval is Ax =
(b – a)/N.
The Simpon numerical integration rule is derived as:
N-2
Li f(x)dx =
* f(x0) + 4 (2n odd f(xn)) + 2 ( En=2,n even
N-1
f(x,) + f(xn)] .
Now complete the Python function InterageSimpson(N, a, b) below to implement this Simpson rule using the above equation.
The function to be intergrate is f (x) = 2x³ (Already defined, don't change it).
In [ ]: # Complete the function given the variables N,a,b and return the value as "TotalArea".
# Don't change the predefined content, only fill your code in the region "YOUR CODE"
from math import *
def InterageSimpson (N, a, b): # n is…
We have learned the mid-point and trapezoidal rule for
numercial intergration in the tutorials. Now you are asked to
implement the Simpson rule, where we approximate the
integration of a non-linear curve using piecewise quadratic
functions.
Assume f(x) is continuous over [a, b] . Let [a, b] be
divided into N subintervals, each of length Ax, with
endpoints at P = x0, x1, x2,..
Xn,..., XN. Each
interval is Ax = (b − a)/N.
The equation for the Simpson numerical integration rule is
derived as:
f f(x) dx
N-1
Ax [ƒ(x0) + 4 (Σ1,n odd f(xn))
ƒ(x₂)) + f(xx)].
N-2
+ 2 (n=2,n even
Now complete the Python function InterageSimpson (N, a,
b) below to implement this Simpson rule using the above
equation.
The function to be intergrate is ƒ(x) = 2x³ (Already
defined in the function, no need to change).
Chapter 7 Solutions
Differential Equations: Computing and Modeling (5th Edition), Edwards, Penney & Calvis
Ch. 7.1 - Apply the definition in (1) to find directly tile...Ch. 7.1 - Prob. 2PCh. 7.1 - Prob. 3PCh. 7.1 - Prob. 4PCh. 7.1 - Prob. 5PCh. 7.1 - Prob. 6PCh. 7.1 - Prob. 7PCh. 7.1 - Prob. 8PCh. 7.1 - Prob. 9PCh. 7.1 - Prob. 10P
Ch. 7.1 - Prob. 11PCh. 7.1 - Prob. 12PCh. 7.1 - Prob. 13PCh. 7.1 - Prob. 14PCh. 7.1 - Prob. 15PCh. 7.1 - Prob. 16PCh. 7.1 - Prob. 17PCh. 7.1 - Prob. 18PCh. 7.1 - Prob. 19PCh. 7.1 - Prob. 20PCh. 7.1 - Prob. 21PCh. 7.1 - Prob. 22PCh. 7.1 - Prob. 23PCh. 7.1 - Prob. 24PCh. 7.1 - Prob. 25PCh. 7.1 - Prob. 26PCh. 7.1 - Prob. 27PCh. 7.1 - Prob. 28PCh. 7.1 - Prob. 29PCh. 7.1 - Prob. 30PCh. 7.1 - Prob. 31PCh. 7.1 - Prob. 32PCh. 7.1 - Prob. 33PCh. 7.1 - Prob. 34PCh. 7.1 - Prob. 35PCh. 7.1 - Prob. 36PCh. 7.1 - Given a0, let f(t)=1 if 0__1a,f(t)=0 if t__a....Ch. 7.1 - Given that 0ab. Let f(t)=1 if a__tb,f(t)=0 if...Ch. 7.1 - Prob. 39PCh. 7.1 - Prob. 40PCh. 7.1 - Prob. 41PCh. 7.1 - Given constants a and b. define h(t) for t__0 by...Ch. 7.2 - Prob. 1PCh. 7.2 - Prob. 2PCh. 7.2 - Prob. 3PCh. 7.2 - Prob. 4PCh. 7.2 - Prob. 5PCh. 7.2 - Prob. 6PCh. 7.2 - Prob. 7PCh. 7.2 - Prob. 8PCh. 7.2 - Prob. 9PCh. 7.2 - Prob. 10PCh. 7.2 - Prob. 11PCh. 7.2 - Prob. 12PCh. 7.2 - Prob. 13PCh. 7.2 - Prob. 14PCh. 7.2 - Prob. 15PCh. 7.2 - Prob. 16PCh. 7.2 - Prob. 17PCh. 7.2 - Prob. 18PCh. 7.2 - Prob. 19PCh. 7.2 - Prob. 20PCh. 7.2 - Prob. 21PCh. 7.2 - Prob. 22PCh. 7.2 - Prob. 23PCh. 7.2 - Prob. 24PCh. 7.2 - Prob. 25PCh. 7.2 - Prob. 26PCh. 7.2 - Prob. 27PCh. 7.2 - Prob. 28PCh. 7.2 - Prob. 29PCh. 7.2 - Prob. 30PCh. 7.2 - Prob. 31PCh. 7.2 - Prob. 32PCh. 7.2 - Prob. 33PCh. 7.2 - Prob. 34PCh. 7.2 - Prob. 35PCh. 7.2 - Prob. 36PCh. 7.2 - Prob. 37PCh. 7.3 - Prob. 1PCh. 7.3 - Prob. 2PCh. 7.3 - Prob. 3PCh. 7.3 - Prob. 4PCh. 7.3 - Prob. 5PCh. 7.3 - Prob. 6PCh. 7.3 - Prob. 7PCh. 7.3 - Prob. 8PCh. 7.3 - Prob. 9PCh. 7.3 - Prob. 10PCh. 7.3 - Prob. 11PCh. 7.3 - Prob. 12PCh. 7.3 - Prob. 13PCh. 7.3 - Prob. 14PCh. 7.3 - Prob. 15PCh. 7.3 - Prob. 16PCh. 7.3 - Prob. 17PCh. 7.3 - Prob. 18PCh. 7.3 - Prob. 19PCh. 7.3 - Prob. 20PCh. 7.3 - Prob. 21PCh. 7.3 - Prob. 22PCh. 7.3 - Prob. 23PCh. 7.3 - Prob. 24PCh. 7.3 - Prob. 25PCh. 7.3 - Prob. 26PCh. 7.3 - Prob. 27PCh. 7.3 - Prob. 28PCh. 7.3 - Prob. 29PCh. 7.3 - Prob. 30PCh. 7.3 - Prob. 31PCh. 7.3 - Prob. 32PCh. 7.3 - Prob. 33PCh. 7.3 - Prob. 34PCh. 7.3 - Prob. 35PCh. 7.3 - Prob. 36PCh. 7.3 - Prob. 37PCh. 7.3 - Prob. 38PCh. 7.3 - Problems 39 and 40 illustrate Iwo types of...Ch. 7.3 - Problems 39 and 40 illustrate Iwo types of...Ch. 7.4 - Find the convolution f(t)g(t) in Problems 1...Ch. 7.4 - Prob. 2PCh. 7.4 - Prob. 3PCh. 7.4 - Prob. 4PCh. 7.4 - Prob. 5PCh. 7.4 - Prob. 6PCh. 7.4 - Prob. 7PCh. 7.4 - Prob. 8PCh. 7.4 - Prob. 9PCh. 7.4 - Prob. 10PCh. 7.4 - Prob. 11PCh. 7.4 - Prob. 12PCh. 7.4 - Prob. 13PCh. 7.4 - Prob. 14PCh. 7.4 - Prob. 15PCh. 7.4 - Prob. 16PCh. 7.4 - Prob. 17PCh. 7.4 - Prob. 18PCh. 7.4 - Prob. 19PCh. 7.4 - Prob. 20PCh. 7.4 - Prob. 21PCh. 7.4 - Prob. 22PCh. 7.4 - Prob. 23PCh. 7.4 - Prob. 24PCh. 7.4 - Prob. 25PCh. 7.4 - Prob. 26PCh. 7.4 - Prob. 27PCh. 7.4 - Prob. 28PCh. 7.4 - Prob. 29PCh. 7.4 - Prob. 30PCh. 7.4 - Prob. 31PCh. 7.4 - Prob. 32PCh. 7.4 - Prob. 33PCh. 7.4 - Prob. 34PCh. 7.4 - Prob. 35PCh. 7.4 - Prob. 36PCh. 7.4 - Prob. 37PCh. 7.4 - Prob. 38PCh. 7.4 - Prob. 39PCh. 7.4 - Prob. 40PCh. 7.4 - Prob. 41PCh. 7.5 - Prob. 1PCh. 7.5 - Prob. 2PCh. 7.5 - Prob. 3PCh. 7.5 - Prob. 4PCh. 7.5 - Prob. 5PCh. 7.5 - Prob. 6PCh. 7.5 - Prob. 7PCh. 7.5 - Prob. 8PCh. 7.5 - Prob. 9PCh. 7.5 - Prob. 10PCh. 7.5 - Prob. 11PCh. 7.5 - Prob. 12PCh. 7.5 - Prob. 13PCh. 7.5 - Prob. 14PCh. 7.5 - Prob. 15PCh. 7.5 - Prob. 16PCh. 7.5 - Prob. 17PCh. 7.5 - Prob. 18PCh. 7.5 - Prob. 19PCh. 7.5 - Prob. 20PCh. 7.5 - Prob. 21PCh. 7.5 - Prob. 22PCh. 7.5 - Prob. 23PCh. 7.5 - Prob. 24PCh. 7.5 - Prob. 25PCh. 7.5 - Prob. 26PCh. 7.5 - Let g(t) be the staircase function of Fig. 7.5.15....Ch. 7.5 - Suppose that f(i) is a periodic function of period...Ch. 7.5 - Suppose that f(t) is the half-wave rectification...Ch. 7.5 - Let g(t)=u(tk)f(tk), where f(t) is the function of...Ch. 7.5 - Prob. 31PCh. 7.5 - Prob. 32PCh. 7.5 - Prob. 33PCh. 7.5 - Prob. 34PCh. 7.5 - Prob. 35PCh. 7.5 - Prob. 36PCh. 7.5 - Prob. 37PCh. 7.5 - Prob. 38PCh. 7.5 - Prob. 39PCh. 7.5 - Prob. 40PCh. 7.5 - Prob. 41PCh. 7.5 - Prob. 42PCh. 7.6 - Prob. 1PCh. 7.6 - Prob. 2PCh. 7.6 - Prob. 3PCh. 7.6 - Prob. 4PCh. 7.6 - Prob. 5PCh. 7.6 - Prob. 6PCh. 7.6 - Prob. 7PCh. 7.6 - Prob. 8PCh. 7.6 - Prob. 9PCh. 7.6 - Prob. 10PCh. 7.6 - Prob. 11PCh. 7.6 - Prob. 12PCh. 7.6 - Prob. 13PCh. 7.6 - Prob. 14PCh. 7.6 - This problem deals with a mass in on a spring...Ch. 7.6 - Prob. 16PCh. 7.6 - Prob. 17PCh. 7.6 - Prob. 18PCh. 7.6 - Prob. 19PCh. 7.6 - Repeat Problem 19, except suppose that the switch...Ch. 7.6 - Prob. 21PCh. 7.6 - Prob. 22P
Knowledge Booster
Similar questions
- We have learned the mid-point and trapezoidal rule for numercial intergration in the tutorials. Now you are asked to implement the Simpson rule, where we approximate the integration of a non-linear curve using piecewise quadratic functions. Assume f(x) is continuous over [a, b]. Let [a, b] be divided into N subintervals, each of length Ax, with endpoints at P = x0, x1,x2,..., X., XN. Each interval is Ax = (b − a)/N. The equation for the Simpson numerical integration rule is derived as: f f(x)dx ≈ [ƒ(x0) + 4 (EN-1,n odd S(x)) + 2 (Σ2²n even f(x)) + f(XN)]. Now complete the Python function InterageSimpson (N, a, b) below to implement this Simpson rule using the above equation. The function to be intergrate is f(x) = 2x³ (Already defined in the function, no need to change). *Complete the function given the variables N, a,b and return the value as "TotalArea"." "Don't change the predefined content' only fill your code in the region *YOUR CODE"" from math import * def InterageSimpson (N, a,…arrow_forwardConsider the function f(x) = arctan(2(x − 1)) – In |x|. Plot (using PYTHON ) the graph of the function f(x) and describe the intervals of monotonicity of the function f. Speak also about the roots of the equation f(x) = 0. (a) (b) Prove by analytical means (using Calculus), that the equation f(x) = 0 has exactly four real roots P1 < P2 < P3 < P4.arrow_forwardLet X= (-3,-2,-1,0, 1}. Let f: X→ N by f(x) = [7z+11: The range of the function isarrow_forward
- For the function f: Z Z prove or disprove whether f is injective and/or surjective f(x) = 4x –6 %3Darrow_forward8. Suppose f and g are functions from R → Rwith f(x) = [2] and g(x) = [52]. Find (fog) (5)arrow_forwardConsider a function f : S→ T defined by f(n) = n², where the domain is the set of consecutive integers S = {-7,..., -2, -1, 0, 1, 2, ..., 7} and the range is the set of consecutive squares T = {-64,...,-9, -4,-1,0, 1, 4, 9, ..., 64}. Which one of the following choices correct describes f? O one-to-one, but NOT onto Oonto, but NOT one-to-one O one-to-one and onto O neither one-to-one nor onto O none of thesearrow_forward
- If X~ N(3,9), find (a) Pr(2 0) (c) Pr(|X3|> 6).arrow_forwardi. For a convergent real sequence sn and a real number a, show that if sn ≥ a for all but finitely many values of n, then limn→∞ sn ≥ a.ii. For each value of a ∈ ℝ, give an example of a convergent sequence sn with sn > a for all n, but where limn→∞ sn = a.arrow_forwarddon not send plagiarised answer.arrow_forward
- Asequencev(x,)is bounded aboveif kER such that .A Xn 2k V, EN X, Sk V, EN .C >k V ENarrow_forward2. Let C Ç RE be such that Ø E C. Prove that Lc = {(M): M is a TM and L(M) e C} ¢ RE.arrow_forwardFor f(a, b) = (a | b) | b (a) Simplify f(a, b). (b) Find DNF for f(a, b). (c) Is f(a, b) satisfiable?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education
Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education
Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON
Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON
C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education