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
Concept explainers
Question
Chapter 7.1, Problem 36P
Program Plan Intro
Program Description: Purpose of the problem is to show that the given function
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
solve:
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
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.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_forwardUse the method of variation of parameters to determine the general solution of the given differential equation. -플<<플 y'" + y' = tant, -arrow_forwardLet g(x) denote a piecewise linear function defined by (0,1), (2, 4), (4, 3), (6, 5), (7, 2), (9, 4). To represent g(x) as a linear form, the number binary variables is and the number of continuous variables isarrow_forwardWhat is the other canonical form of the giver equation? F(x.y.z) = E m (0,1,2,3,4,5,6,7)arrow_forwardFor the function f: Z Z prove or disprove whether f is injective and/or surjective f(x) = 4x –6 %3Darrow_forwardGenerate a real life world problem about quotient of functions on operation. Then solve it.arrow_forwardUse the Laplace transform method to solve the following PDE with boundary and initial conditions. Since this is on semi-infinite interval x > 0, use exponential functions, not hyperbolic functions, for the solution of the ordinary differential for U(x, s). Use software or a table to find the inverse Laplace transform. Ut = Uxx, X > 0, t > 0 u(0, t) = uo, t > 0 u(x, t) → u1 as x → ∞ u(x,0) = u1, x > 0 1.arrow_forwardShow that the integral 3 S dx (x − 1) ³/3 converges.arrow_forwardProve or Disprove: For all real valued functions f, if f(n) is O(2¹), then f(2m) is 0(2m).arrow_forward8. Suppose f and g are functions from R → Rwith f(x) = [2] and g(x) = [52]. Find (fog) (5)arrow_forward1. Assume that a function f is in polynomial time and can be computed in time 0(n) and that g is in polynomial time and can be computed in time 0(n°). Prove that f composed with g, that is f(g(x)), can be computed in time 0(n5).arrow_forwardf(n) = 2", g(n) = 2.01". v.arrow_forwardarrow_back_iosSEE MORE QUESTIONSarrow_forward_ios
Recommended textbooks for you
- Operations Research : Applications and AlgorithmsComputer ScienceISBN:9780534380588Author:Wayne L. WinstonPublisher:Brooks Cole
Operations Research : Applications and Algorithms
Computer Science
ISBN:9780534380588
Author:Wayne L. Winston
Publisher:Brooks Cole