EBK NUMERICAL METHODS FOR ENGINEERS
EBK NUMERICAL METHODS FOR ENGINEERS
7th Edition
ISBN: 9780100254145
Author: Chapra
Publisher: YUZU
bartleby

Videos

Textbook Question
Book Icon
Chapter 18, Problem 22P

A useful application of Lagrange interpolation is called a table look-up. As the name implies, this involves “looking-up” an intermediate value from a table. To develop such an algorithm, the table of x and f ( x ) values are first stored in a pair of one-dimensional arrays. These values are then passed to a function along with the x value you wish to evaluate. The function then performs two tasks. First, it loops down through the table until it finds the interval within which the unknown lies. Then it applies a technique like Lagrange interpolation to determine the proper f ( x ) value. Develop such a function using a cubic Lagrange polynomial to perform the interpolation. For intermediate intervals, this is a nice choice because the unknown will be located in the interval in the middle of the four points necessary to generate the cubic. For the first and last intervals, use a quadratic Lagrange polynomial. Also have your code detect when the user requests a value outside the range of x's. For such cases, the function should display an error message. Test your program for f ( x ) = ln x using data from x = 1 , 2 , ... , 10 .

Blurred answer
Students have asked these similar questions
PROBLEM 1: A 12-lb rod ABC is impacted by a 2-lb object DE as shown. The object embeds into the end of the rod at point C, determine immediately after the impact (a) the angular velocity of the rod ABC, (b) the angular acceleration of the rod ABC, A 2 B Unit: ft (c) the components of the reaction at B. 12 Assume that the object and the rod move as a single body after the impact. Vo = 35 ft/s C E D 6
Please answer both questions clearly thanks
PROBLEM 2: A baseball catcher includes a 6-kg rod with a small net of negligible mass at point B. A spring of unstretched length 0.3 m is attached to the midpoint of bar AB at one end and to stationary point D at the other. A stopper at point E keeps the catcher in the vertical position before the pitch. Knowing the catcher just barely rotates when it catches a fastball of mass 0.18 kg, determine the required spring constant of the spring. Given = 1.5 m. Bonus: Develop a MATLAB program to solve for this problem. v₁ = 40 m/s Unit: m 1 B L E A D www wwwwwww -L-

Chapter 18 Solutions

EBK NUMERICAL METHODS FOR ENGINEERS

Knowledge Booster
Background pattern image
Mechanical Engineering
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, mechanical-engineering and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Algebra & Trigonometry with Analytic Geometry
Algebra
ISBN:9781133382119
Author:Swokowski
Publisher:Cengage
Text book image
Glencoe Algebra 1, Student Edition, 9780079039897...
Algebra
ISBN:9780079039897
Author:Carter
Publisher:McGraw Hill
Text book image
College Algebra
Algebra
ISBN:9781938168383
Author:Jay Abramson
Publisher:OpenStax
Text book image
College Algebra
Algebra
ISBN:9781337282291
Author:Ron Larson
Publisher:Cengage Learning
Text book image
Algebra: Structure And Method, Book 1
Algebra
ISBN:9780395977224
Author:Richard G. Brown, Mary P. Dolciani, Robert H. Sorgenfrey, William L. Cole
Publisher:McDougal Littell
Text book image
College Algebra (MindTap Course List)
Algebra
ISBN:9781305652231
Author:R. David Gustafson, Jeff Hughes
Publisher:Cengage Learning
Algebraic Complexity with Less Relations; Author: The University of Chicago;https://www.youtube.com/watch?v=ZOKM1JPz650;License: Standard Youtube License
Strassen's Matrix Multiplication - Divide and Conquer - Analysis of Algorithm; Author: Ekeeda;https://www.youtube.com/watch?v=UnpySHwAJsQ;License: Standard YouTube License, CC-BY
Trigonometric Equations with Complex Numbers | Complex Analysis #6; Author: TheMathCoach;https://www.youtube.com/watch?v=zdD8Dab1T2Y;License: Standard YouTube License, CC-BY