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 A.5, Problem 2P
Program Plan Intro
Program Description: Purpose of the problem is to solve initial value problem
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
Realize the following approximation of the sin(x) function..
sin x ~
00
L
i=0
(-1)⁰
(2i + 1)!
-x2i+1 = x
x3
x5 x7
+
3! 5! 7!
The approximation is based on the Maclaurin series expansion, and it
becomes an equality (i.e. not only an approximation) as the summation
continues to infinity. Your program will check if the approximation error
falls below 1e-15, and stops if so. Otherwise, it will continue to a
maximum of 100 summations. Your program should ask the user about
the angle (in radians) which they want to find the sin() of. Notice that
the user will only input an angle in radians and in the range [0-pi]. Use
a while loop to answer the question.
Use the following definition for the approximation error:
Error = abs(true value - approximation) / true value
Hint: you need two loops, where one goes through the summation,
and the other is dedicated to calculating the factorials.
Hint: The angle must be expressed in radians and must be in the
range [0-pi]. Use such numbers when testing…
Consider the function f(x) = 1 3x+1 . We approximate f(x) by the Lagrange interpolating polynomial P₂ (x) at the points xo = 1, x₁ = 1.5 and.x₂ = 2. A bound of the theoretical error of this approximation at x = 1.8 is:
Using MATLAB, develop a computer program for the finite difference solution with general
θ scheme for the 1D consolidation of a uniform layer of soil. Compare the results for θ=0, 0.5, 2/3 and 1.0 for α=0.49 and α=0.51 against the analytical solution of Terzaghi’s equation for T=0.5.
Apply the program to both cases of double draining layer and single draining layer.
Chapter A Solutions
Differential Equations: Computing and Modeling (5th Edition), Edwards, Penney & Calvis
Knowledge Booster
Similar questions
- You solve a non-singular system of 1,000 linear equations with 1,000 unknowns. Your code uses the Gauss-Jordan algorithm with partial pivoting using double precision numbers and arithmetics. Why would the 2-norm of the residual of your solution not be zero?arrow_forwardNonearrow_forwardIf you indicate the exact real root of the nonlinear formula f(x )=x³+2x-5 to four decimal points, calculate each approximation 0, 1, 2, 3, 4 using the secant method in the interval [1,2]. All results are marked up to four decisces. thank youarrow_forward
- A circle in the XY-coordinate system is specified by the center coordinates (x, y) and radius (r). Read the values for 2 circles- x1, y1, r1 for C1 and x2, y2, r2 for C2. (i) Determine whether the 2 circles intersect. To solve the problem it suffices to check if the distance between the 2 centers is lesser than the sum of radii of the 2 circles. (ii) Find the smallest circle that encloses the two circles and return its center coordinates and radius. programming language - carrow_forwardplease handwrite each with the proper steps if possible and do not use chat gpt, thank you much appreciatedarrow_forwardplease explain each steparrow_forward
- A discharge factor is a ratio which compares the mass flow rate at the end of a channel or nozzle to an ideal channel or nozzle. The discharge factor for flow through an open channel of parabolic cross-section is: K = 1.2 [V16x +1+ In(V16x² +1+4x)]³ 4x where x is the ratio of the maximum water depth to breadth of the channel at the top of the water. Determine the discharge factors for x in the range 0.45 to 0.90 in steps of 0.05. Script e C Reset I MATLAB Docume 1 %Give values for x: 2 3 %Solve for K: 4arrow_forwardSolve by hand function bellow using Euler method. Repeat 5 times. (5 iterations) f (x) = x°-7.x+4arrow_forwardYou work as a software engineer in a company that develops software for providing approximate numerical solutions to complex mathematical problems. Your manager asked you to develop two software products for (i) finding the roots of complex functions and (ii) performing complex integrations. Task 4: i) Compute the integral of f(x)= 3x from a = 0 to b = 9 with 3 sub-intervals using the following integral approximation methods: (i) Simpson, and (ii) Mid-ordinate rules. %3Darrow_forward
- QUESTION An observation indicates that the frog population Q(t) in a small pond is 25 initially and satisfies the logistic equation Q(t)' = 0.0225Q(t) – 0.0003Q(t)?, (with t in months.) a. Apply Modified Euler's method together with any computer program to approximate the solution for 10 years. Use the step size ofh = 1 and then with h = 0.5 b. Find out the percentage of the limiting population of 75 frogs has been attained after 5 years and after 10 years c. Summarize your findings in (b)arrow_forwardThe results of an experimental study (x variable, y function) are given in the table below. (Five digits will be taken after the comma.) a-Find First, Second, and Third Order Linear Interpolation Polynomials. b- Find y(2)=? for First, Second, and Third Order Linear Interpolation Polynomials i 1 3 3 4 2,5 6,5 7arrow_forwardAn oscillating current in an electric circuit is described by i(t) = 9e cos(2rt) where t is in seconds. Use False Position Method to determine the value of t such that i=3.5. Plot the graph of the function to develop your initial guess. Terminate your computation when the approximate relative error falls below ɛs=10°. Give the results in a table.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- C++ for Engineers and ScientistsComputer ScienceISBN:9781133187844Author:Bronson, Gary J.Publisher:Course Technology Ptr
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr