1. Using a computer program, find the positive root of the equation x = sin x...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Using a computer program, find the positive root of the equation x³ = sin x using bisection method with a tolerance of 10-8. Submit your source code and program output. State your numerical answer and the number of iterations used. 2. In a diffraction and interference experiment, light of wavelength λ goes through a single slit of width d. The diffracted light intensity I at angle is given by I = Io 2 (sina) where a = (πd/λ) sin and I is a constant. (a) Plot a graph of I/Io against a which includes 3 maxima on each side of the y-axis. They are the first, second, and third order maxima. (b) From your graph, roughly estimate the values of a; > 0 (i=1,2 and 3) at which the first, second and third order maxima occur. (c) To evaluate a, accurately, the roots of a nonlinear equation F(a) calculated. Find F(a). = 0 should be (d) Hence, write a computer program for finding a root of your nonlinear equation using the Newton-Raphson method up to a tolerance of 10-8. Run your program 3 times with appropriate initial guesses to locate the 3 maxima. In each case, write down your answer, initial guess, and the number of iterations used. Submit only the version of your program for finding the first order maximum. (e) What are the values of sin for the 3 maxima? (10) (20) 1. Using a computer program, find the positive root of the equation x³ = sin x using bisection method with a tolerance of 10-8. Submit your source code and program output. State your numerical answer and the number of iterations used. 2. In a diffraction and interference experiment, light of wavelength λ goes through a single slit of width d. The diffracted light intensity I at angle is given by I = Io 2 (sina) where a = (7d/A) sin and I is a constant. (a) Plot a graph of I/Io against a which includes 3 maxima on each side of the y-axis. They are the first, second, and third order maxima. (b) From your graph, roughly estimate the values of a; > 0 (i=1,2 and 3) at which the first, second and third order maxima occur. (c) To evaluate a, accurately, the roots of a nonlinear equation F(a) calculated. Find F(a). = 0 should be (d) Hence, write a computer program for finding a root of your nonlinear equation using the Newton-Raphson method up to a tolerance of 10-8. Run your program 3 times with appropriate initial guesses to locate the 3 maxima. In each case, write down your answer, initial guess, and the number of iterations used. Submit only the version of your program for finding the first order maximum. (e) What are the values of sin for the 3 maxima? (10) (20) 1. Using a computer program, find the positive root of the equation x³ = sin x using bisection method with a tolerance of 10-8. Submit your source code and program output. State your numerical answer and the number of iterations used. 2. In a diffraction and interference experiment, light of wavelength λ goes through a single slit of width d. The diffracted light intensity I at angle is given by I = Io 2 (sina) where a = (πd/λ) sin and I is a constant. (a) Plot a graph of I/Io against a which includes 3 maxima on each side of the y-axis. They are the first, second, and third order maxima. (b) From your graph, roughly estimate the values of a; > 0 (i=1,2 and 3) at which the first, second and third order maxima occur. (c) To evaluate a, accurately, the roots of a nonlinear equation F(a) calculated. Find F(a). = 0 should be (d) Hence, write a computer program for finding a root of your nonlinear equation using the Newton-Raphson method up to a tolerance of 10-8. Run your program 3 times with appropriate initial guesses to locate the 3 maxima. In each case, write down your answer, initial guess, and the number of iterations used. Submit only the version of your program for finding the first order maximum. (e) What are the values of sin for the 3 maxima? (10) (20) 1. Using a computer program, find the positive root of the equation x³ = sin x using bisection method with a tolerance of 10-8. Submit your source code and program output. State your numerical answer and the number of iterations used. 2. In a diffraction and interference experiment, light of wavelength λ goes through a single slit of width d. The diffracted light intensity I at angle is given by I = Io 2 (sina) where a = (7d/A) sin and I is a constant. (a) Plot a graph of I/Io against a which includes 3 maxima on each side of the y-axis. They are the first, second, and third order maxima. (b) From your graph, roughly estimate the values of a; > 0 (i=1,2 and 3) at which the first, second and third order maxima occur. (c) To evaluate a, accurately, the roots of a nonlinear equation F(a) calculated. Find F(a). = 0 should be (d) Hence, write a computer program for finding a root of your nonlinear equation using the Newton-Raphson method up to a tolerance of 10-8. Run your program 3 times with appropriate initial guesses to locate the 3 maxima. In each case, write down your answer, initial guess, and the number of iterations used. Submit only the version of your program for finding the first order maximum. (e) What are the values of sin for the 3 maxima? (10) (20)
Expert Answer:
Answer rating: 100% (QA)
1 Bisection Method python def fx return x 3 sinx def bisectionmethoda b tol iterations 0 while b a 2 ... View the full answer
Related Book For
Numerical Methods With Chemical Engineering Applications
ISBN: 9781107135116
1st Edition
Authors: Kevin D. Dorfman, Prodromos Daoutidis
Posted Date:
Students also viewed these programming questions
-
An issue of bonds with par of $1,000 matures in 8 years and pays 9% p.a. interest semi-annually. The market price of the bonds is $955 and your required rate of return is 8%. (a) Calculate the bonds...
-
The intensity of light with wavelength traveling through a diffraction grating with N slits at an angle is given by l() = N2 sin2k/k2, where k = ( Nd sin (/ and is the distance between adjacent...
-
Correlate in differences between atmospheric pressure distillation and under atmospheric distillation
-
Sunita inherits $45,000 from a distant relative. She decides to invest her inheritance in a diversified, dividend-paying mutual fund. At the time of her initial investment, she purchases 1,500 shares...
-
On September 21, 2010, The Lopez Co. issues $1,000,000 of bonds having a coupon rate of 6%. To help the sale, detachable stock warrants are issued at the rate of ten warrants for each $1,000 bond...
-
The file P02_10.xlsx contains midterm and final exam scores for 96 students in a corporate finance course. Each row contains the two exam scores for a given student, so you might expect them to be...
-
Fill in the Blank. If \(S(\overline{\omega)}\) has significant values over a wide range of frequencies, the process is called \(\mathrm{a}(\mathrm{n})\) _____________ process.
-
Ernies Engineering Consulting reports the following direct labor information for clerical staff: Month: April Standard...
-
Calculating the E Field 4. In the figure, there are two parallel insulating rings with aligned central axes. The rings have charges 91 and 92 as shown, and both have radius of R. The separation...
-
The Bellow Trust has the following activities during Year 2. Dividend Income $100,000 Tax-Exempt Interest Income $15,000 Recognized Long-Term Capital Gain, allocated by trust agreement to income...
-
1. Describe the use of computer simulation modeling in operations decision making. 2. Describe methods of measuring capacity, planning capacity and calculating capacity utilization. Explain the...
-
Produce a one- to three-page position arguing for or against the statement, "It is better to make a business decision with bad data than with no data." Behind each point of view is the question: (a)...
-
Based on this video , utilize the Five Forces Model to analyze the industry that you work in. Which of the five forces is the strongest and why? Finally, define Competitive Advantage using your own...
-
To complete the discussion, you will need to craft an initial post that utilizes at least one referenced source (cited and listed as a reference) Begin with an explanation of the three types of...
-
Integrity is a very vital thing to possess in all areas of life and once it is compromised it can take forever to restore depending on the situation. That is why I always do my best to maintain...
-
Identify two leaders - one male and one female from any countries or corporations based in Asia and Africa. Please pay attention to whatever selection you make because you will need to have a lot of...
-
Which of the following is the correct order for Systems Development Life Cycle (SDLC)? Multiple Choice Planning->Reviewing->Design->Implementation->Maintenance...
-
If a process has a six-sigma capability, what is the process capability index? a. 1 b. 2 c. 6 d. 12
-
Show that Eq. (8.2.27) reduces to Eq. (8.2.20). f[x, xj, xk] = f[xi, xj] - f[xj, xk] Xi Xk (8.2.27)
-
Solve the following ordinary differential equation for the function y(x) subject to y(0) = 0 and y(1) = 1. y"+y=(1-) sin x
-
Solve the same problem as Example 3.13 with the equations in the opposite order. Data from Example 3.13 Solve the system of Eqs. (3.7.6) and (3.7.7) using Newtons method with an initial guess x (0) 1...
-
Obtain a photograph/image of a situation in which the fact that in a static fluid the pressure increases with depth is important. Print this photo and write a brief paragraph that describes the...
-
There are many fluids that exhibit non-Newtonian behavior. For a given fluid the distinction between Newtonian and non-Newtonian behavior is usually based on measurements of shear stress and rate of...
-
The deepest known spot in the oceans is the Challenger Deep in the Mariana Trench of the Pacific Ocean and is approximately \(11,000 \mathrm{~m}\) below the surface. Assume that the salt water...
Study smarter with the SolutionInn App