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...
-
Suppose that the neutron multiplication factor is 1.0004. If the average time between successive fissions in a chain of reactions is 1.0 ms, by what factor will the reaction rate increase in 1.0 s?
-
A steel casting weighing 2 kg has an initial temperature of 500oC; 40 kg of water initially at 25oC is contained in a perfectly insulated steel tank weighing 5 kg. The casting is immersed in the...
-
Michael Daigle, Attorney, P.C., began the year with total assets of \($122,000\), liabilities of \($71,000\), and stockholders equity of \($51,000\). During the year the business earned rev enue of...
-
Lanza Research Inc. manufactures high-quality hair care products in California. Copyrighted labels are attached to all products and packaging. In the United States, Lanza sells exclusively to...
-
briefly describe and research & provide 2 real world examples of how organizations can leverage their marketing strategies to overcome the Managing To The Quarter syndrome. Your paper should include...
-
Several years after reengineering its production process, Dettling Corporation hired a new controller, Alana Metzgar. She developed an ABC system very similar to the one used by Dettling's chief...
-
(1) The potential temperature of a parcel of fluid at pressure p is the temperature that the parcel would attain if adiabatically brought to a standard reference pressure po, usually 1,000 hPa. The...
-
What do you believe are the barriers to successful communication in the world of work and what would you recommend overcoming them?
-
Patterson Development sometimes sells property on an installment basis. In those cases, Patterson reports income in its income statement in the year of the sale but reports installment income by the...
-
The president was the principal promoter and president of a corporation. He paid for the shares he had subscribed for. The corporation became insolvent and made an assignment for the benefit of its...
-
Question Content Area Net Present Value Carsen Sorensen, controller of Thayn Company, just received the following data associated with production of a new product: Expected annual revenues: $740,000...
-
8. An airplane is flying N75E with an airspeed of 550 mph and a 45 mph wind blowing S75E. What is the actual speed, in mph and direction, written as a bearing, of the plane? Round to the nearest 1...
-
Establish the equation for power extracted from ocean waves in terms of wavelength amplitude period, ocean water density etc.
-
What can scientists learn by comparing the fossilized skeletons of extinct primates with the bones of modern species?
-
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...
-
In reviewing subsequent events, the auditor reviewed a number of sales transactions that raised serious concerns in relation to the recorded value of stocks. The auditor believes that stock should be...
-
The auditor concludes that there is a material inconsistency in the other information in an annual report to shareholders containing audited financial statements. If the auditor concludes that the...
-
You have accepted an appointment to audit the financial statements of Hippo Ltd for the year ended 31 December 20X1. The financial statements of the company for the year ended 31 December 20X0 were...
Study smarter with the SolutionInn App