Write a MATLAB program to determine the value of sin x for values of x such...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a MATLAB program to determine the value of sin x for values of x such that 0 <x < TT, using the sine series (Equation (1.13)). Find the answer to within a relative accuracy of 0.001 of the exact value of sin x, the criterion for convergence being abs ( (sum - sin (x) ) /sin (x)) < 0.0001, where sum is the summation of terms in the sin x series. Plot the number of terms that must be included in the sum to achieve this relative accuracy for each value of x. Redetermine the value of sin x using the sine series for five values of x such that 0 < x < T; however, this time use the following tolerance specification: absolute value of (last term/summation of terms)<0.0001 as the convergence criterion. Plot the number of terms that must be included in the sum to achieve this tolerance for each value of x. How well does the tolerance specification for the second criterion match the first criterion of convergence? sin x = x - 3! x7 5! (1.13) - 7! Write a MATLAB program to determine the value of sin x for values of x such that 0 <x < TT, using the sine series (Equation (1.13)). Find the answer to within a relative accuracy of 0.001 of the exact value of sin x, the criterion for convergence being abs ( (sum - sin (x) ) /sin (x)) < 0.0001, where sum is the summation of terms in the sin x series. Plot the number of terms that must be included in the sum to achieve this relative accuracy for each value of x. Redetermine the value of sin x using the sine series for five values of x such that 0 < x < T; however, this time use the following tolerance specification: absolute value of (last term/summation of terms)<0.0001 as the convergence criterion. Plot the number of terms that must be included in the sum to achieve this tolerance for each value of x. How well does the tolerance specification for the second criterion match the first criterion of convergence? sin x = x - 3! x7 5! (1.13) - 7!
Expert Answer:
Answer rating: 100% (QA)
clc clear x inputtype value of angle in degrees x xpi180 convverting ... View the full answer
Related Book For
Principles of Communications Systems, Modulation and Noise
ISBN: 978-8126556793
7th edition
Authors: Rodger E. Ziemer, William H. Tranter
Posted Date:
Students also viewed these programming questions
-
Write a MATLAB program that will produce plots like those shown in Figure 5.2 assuming a random binary data sequence. Include as an option a Butter worth channel filter whose number of poles and...
-
Write a MATLAB program tointegrate /2 cos(cos.x) dr
-
Write a MATLAB program that will produce plots like those shown in Figure 5.10. The Butter worth channel filter poles and 3-dB frequency should be inputs as well as the roll-off factor,...
-
Find the frequency domain current I0 as shown. j1 Io 2
-
On January 1, 2018, White Water issues $600,000 of 7% bonds, due in 10 years, with interest payable semiannually on June 30 and December 31 each year. Required: Assuming the market interest rate on...
-
Samara Tate couldnt have been happier. As she looked back on the past two years, she realized just how much how her hard work had paid off. First, she had been hired as a waitress at the exclusive...
-
Tyler Companys ASC 932-235 disclosures included the following information: REQUIRED: Using the information for Tyler Company in problems 13, 14, and 15 and in this problem: a. Compute the value of...
-
Premier Consultings two consultants, Avery and Baker, can be scheduled to work for clients up to a maximum of 160 hours each over the next four weeks. A third consultant, Campbell, has some...
-
Explain why there are the same number of tables in the relational model as compared to the number of entities in the logical model.
-
A typical tube-style incandescent light bulb lasts for 1,000 hours and is available to consumers for $3.00 per bulb. A manufacturer has produced a tube-style halogen light bulb that gives the same...
-
Read the case study "The Body Shop International PLC 2001: An introduction to financial modeling and, Prepare a case study analysis include: 1) Identify the key financial problems for which...
-
Explain the link between a countrys growth rate, its investment spending as a percent of GDP, and its domestic savings.
-
A pharmacist received a prescription from a physician employed at the county hospital. The prescription was written on a prescription form that contained the DEA registration number of the hospital,...
-
Currently, GARDA (fct) is an FDA approved medication that is not a controlled substance. GARDA has been known to be abused for years, and the attorney general would like to have the medication...
-
Your state has recently passed a medical marijuana law, which will allow specific patients to register and obtain marijuana legally. The state will require the marijuana to be grown in a...
-
Butrazid (fct) is a controlled substance placed in schedule II by the federal government. One state has been having abuse and diversion problems with Butrazid, especially among teenagers. The drug...
-
Discuss the importance of environmental laws to the protections and care of the environment. ?
-
Write a program that initializes an array. It inputs a value from the user and searches the number in the array.
-
A circle is divided into 21 equal parts. A pointer is spun until it stops on one of the parts, which are numbered from 1 through 21. Describe the sample space and, assuming equally likely outcomes,...
-
A power spectral density given by S Y (f) = f 2 / f 4 + 100 is desired. A white-noise source of two-sided power spectral density 1 W/Hz is available. What is the frequency response function of the...
-
The input signal to a matched filter is given by The noise is white with signal-sided power spectral density N 0 = 10 -1 W/Hz. What is the peak signal-squared-to-mean-square-noise ratio at its...
-
(a) Determine the critical values for a right-tailed test of a standard population deviation with 15 degrees of freedom at \(\alpha=0.1\) level of significance. (b) Determine the critical values for...
-
A simple random sample of size \(n=20\) is drawn from a population that is normally distributed. The sample variance is found to be 49.3. Determine whether the population variance is less than 95 at...
-
When using \(N=50\) observations to estimate the model \(y_{i}=\beta_{1}+\beta_{2} x_{i}+\beta_{3} z_{i}+e_{i}\), you obtain \(S S E=2132.65\) and \(s_{y}=9.8355\). a. Find \(R^{2}\). b. Find the...
Study smarter with the SolutionInn App