C++ for Engineers and Scientists
C++ for Engineers and Scientists
4th Edition
ISBN: 9781133187844
Author: Bronson, Gary J.
Publisher: Course Technology Ptr
bartleby

Videos

Textbook Question
Book Icon
Chapter 5.7, Problem 6E

(Numerical analysis) Here’s a challenging problem for those who know a little calculus. The Newton-Raphson method can be used to find the roots of any equation y ( x )   =   0. In this method, the ( i   +   1 ) s t   a p p r o x i m a t i o n ,   x i + 1 ,   t o   a   r o o t   o f   y ( x )   =   0 is given in terms of the ith approximation, xi, by the following formula, where y’ denotes the derivative of y(x) with respect to x:

x i + 1 = x i y ( x i ) / y ' ( x i )

For example, if y ( x )   =   3 x 2   +   2 x     2 ,   t h e n   y ( x )   =   6 x   +   2 , and the roots are found by making a reasonable guess for a first approximation x1 and iterating by using this equation:

x i + 1 = x i ( 3 x i 2 + 2 x i 2 ) / ( 6 x i + 2 )

a. Using the Newton-Raphson method, find the two roots of the equation 3 x 2   +   2 x     2   =   0. (Hint: There’s one positive root and one negative root.)

b. Extend the program written for Exercise 6a so that it finds the roots of any function y ( x )   =   0 , when the function for y(x) and the derivative of y(x) are placed in the code.

Blurred answer
Students have asked these similar questions
Question The refractive index of Sodium Chloride is 1.54. Make a function by which user can Find the critical angle of diamond by taking Air as a rare medium (Refractive index of Air is 1). Note: (User Take different incident Angles as a Input)
In matlab code Find the velocity of mars, earth, venus. In the descent phase of an extraterrestrial space mission, a spacecraft free falls through the planet's atmosphere. As it falls, it will reach a constant or terminal velocity when the air resistance force balances the gravitational attraction force. The terminal velocity is given by V₁ = where m is the spacecraft's mass [m], g is the acceleration due to gravity on the planet, p is the atmosphere's density [kg/m³], Cp is the spacecraft's drag coefficient, and A is the spacecraft's cross-sectional area [m²]. a) Write a function named terminalVelocity which calculates the terminal velocity an object. The function should . 2mg pCDA input m, g, p, CD, and A output the terminal velocity b) Write a program named q03.m which calculates the terminal velocity of a spacecraft at 10 km above the surface of various planets. The spacecraft's properties are m = 240 [kg], A= 15 [m²], and Cp = 0.5. The program should use the gravity and terminal…
Simplify the following expressions in normal form, if one exists: (λq. q q)(λs. s s a)

Chapter 5 Solutions

C++ for Engineers and Scientists

Knowledge Booster
Background pattern image
Computer Science
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
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
C++ for Engineers and Scientists
Computer Science
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Course Technology Ptr
Boolean Algebra - Digital Logic and Logic Families - Industrial Electronics; Author: Ekeeda;https://www.youtube.com/watch?v=u7XnJos-_Hs;License: Standard YouTube License, CC-BY
Boolean Algebra 1 – The Laws of Boolean Algebra; Author: Computer Science;https://www.youtube.com/watch?v=EPJf4owqwdA;License: Standard Youtube License