MATLAB: An Introduction with Applications
MATLAB: An Introduction with Applications
6th Edition
ISBN: 9781119256830
Author: Amos Gilat
Publisher: John Wiley & Sons Inc
bartleby

Concept explainers

bartleby

Videos

Textbook Question
Book Icon
Chapter 6, Problem 32P

One numerical method for calculating the cubic root of a number, P 3 is Halley’s method. The solution process starts by choosing a value x1as a first estimate of the solution. Using this value, a second, more accurate value x2is calculated with x 2 = x 1 ( x 1 3 + 2 P ) / ( 2 x 1 3 + P ) , which is then used for calculating a third, still more accurate value x3,and so on. The general equation for calculating the value of xi+1 is from the value of x1is x i + 1 = x i ( x i 3 + 2 P ) / ( 2 x i 3 + P ) . Write a MATLAB program that calculates the cubic root of a number. In the program use x1= P for the first estimate of the solution. Then, by using the general equation in a loop, calculate new, more accurate values. Stop the looping when the estimated relative error defined by E = x i + 1 x i x i is smaller than 0.00001. Use the program to calculate:

(a) 800 3 (b) 59071 3 (c) 31.55 3

Blurred answer
Students have asked these similar questions
14 A survey is conducted to determine whether would prefer to work at home, if given the 20 office employees of a certain company chance. The overall results are shown in the first bar graph, and the results broken down by gender are presented in the second. a. Interpret the results of each graph. b. Discuss the added value in including gen- der in the second bar graph. (The second bar graph in this problem is called a side by side bar graph and is often used to show results broken down by two or more variables.) c. Compare the side by side bar graph with the two pie charts that you made for Question 6. Which of the two methods is best for comparing two groups, in your opinion? A Would you prefer to work at home? (n=20) 60 50 40 Percent 20 30 20 30 10 0 No Yes Prefer to work at home? (10 males, 10 females) 80 Percent 60 00 40 40 20- No Yes No Yes Female Male
Frequency 12 Suppose that a random sample of 270 gradu- ating seniors are asked what their immediate priorities are, including whether buying a house is a priority. The results are shown in the following bar graph. a. The bar graph is misleading; explain why. b. Make a new bar graph that more fairly presents the results. Is Buying a House a Priority? 300 250 200 150 100 50 0 Yes No Undecided
Frequency 11 A polling organization wants to find out what voters think of Issue X. It chooses a random sample of voters and asks them for their opinions of Issue X: yes, no, or no opinion. I organize the results in the following bar graph. a. Make a frequency table of these results (including the total number). brocb. Evaluate the bar graph as to whether it biz s b fairly represents the results. of beau no STORE TO OW! vd wob spind 550 540 500 vd 480 420 360 300 250 240 Yes No Undecided Opinion on Issue X

Chapter 6 Solutions

MATLAB: An Introduction with Applications

Ch. 6 - The Pascal triangle can be displayed as elements...Ch. 6 - Fibonacci numbers are the numbers in a sequence in...Ch. 6 - The reciprocal Fibonacci constant ?is defined by...Ch. 6 - The value of p can be estimated from:...Ch. 6 - The value of p can be estimated from the...Ch. 6 - Write a program that (a) generates a vector with...Ch. 6 - A vector is given by x= [9 -1.5 13.4 13.3 -2.1 4.6...Ch. 6 - The Pythagorean theorem states that a2+ b2= c2....Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - A safe prime is a prime number that can be written...Ch. 6 - Sexy primes are two prime numbers that the...Ch. 6 - A Mersenne prime is a prime number that is equal...Ch. 6 - A perfect number is a positive integer that is...Ch. 6 - A list of exam scores (S) (in percent out of 100%...Ch. 6 - The Taylor series expansion for axis:...Ch. 6 - Write a MATLAB program in a script file that finds...Ch. 6 - The following are formulas for calculating the...Ch. 6 - Body mass index (BMI) is a measure of obesity. In...Ch. 6 - Write a program in a script file that calculates...Ch. 6 - Write a program that determines the change given...Ch. 6 - The concentration of a drug in the body CPcan be...Ch. 6 - One numerical method for calculating the cubic...Ch. 6 - Write a program in a script file that converts a...Ch. 6 - In a one-dimensional random walk, the position x...Ch. 6 - The Sierpinski triangle can be implemented in...Ch. 6 - The roots of a cubic equation a3x3+a2x2+a1x+a0=0...Ch. 6 - The overall grade in a course is determined from...Ch. 6 - A Keith number is a number (integer) that appears...Ch. 6 - The following MATLAB commands create a sine-shaped...
Knowledge Booster
Background pattern image
Statistics
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, statistics 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
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
Text book image
Elementary Algebra
Algebra
ISBN:9780998625713
Author:Lynn Marecek, MaryAnne Anthony-Smith
Publisher:OpenStax - Rice University
The Shape of Data: Distributions: Crash Course Statistics #7; Author: CrashCourse;https://www.youtube.com/watch?v=bPFNxD3Yg6U;License: Standard YouTube License, CC-BY
Shape, Center, and Spread - Module 20.2 (Part 1); Author: Mrmathblog;https://www.youtube.com/watch?v=COaid7O_Gag;License: Standard YouTube License, CC-BY
Shape, Center and Spread; Author: Emily Murdock;https://www.youtube.com/watch?v=_YyW0DSCzpM;License: Standard Youtube License