The value of arccos(x) can be approximated using the following equation (2n)! arccos(z)=- 04 (n!) (2n...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
The value of arccos(x) can be approximated using the following equation (2n)! arccos(z)=- 04 (n!) (2n +1) 00 2+1 2 a) Write MATLAB function that uses the equation above to find the value of arccos(x) with a number of decimal places that is equal to R (for example if R=4 the result error should be less than 0.0001). b) Write MATLAB script that uses the function you created to plot the value of R in the x axis and the approximated value arccos(z) in the y axis. Use R value that ranges from 2 to 12, put a proper labels for both x, y axis, show the grid and use red dotted line with circle marker in the plot. Solution: The value of arccos(x) can be approximated using the following equation (2n)! arccos(z)=- 04 (n!) (2n +1) 00 2+1 2 a) Write MATLAB function that uses the equation above to find the value of arccos(x) with a number of decimal places that is equal to R (for example if R=4 the result error should be less than 0.0001). b) Write MATLAB script that uses the function you created to plot the value of R in the x axis and the approximated value arccos(z) in the y axis. Use R value that ranges from 2 to 12, put a proper labels for both x, y axis, show the grid and use red dotted line with circle marker in the plot. Solution:
Expert Answer:
Related Book For
Essentials of Business Analytics
ISBN: 978-1305627734
2nd edition
Authors: Jeffrey D. Camm, James J. Cochran, Michael J. Fry, Jeffrey W. Ohlmann, David R. Anderson
Posted Date:
Students also viewed these programming questions
-
CANMNMM January of this year. (a) Each item will be held in a record. Describe all the data structures that must refer to these records to implement the required functionality. Describe all the...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
Once down to about 15, the worlds only wild flock of whooping cranes now numbers a record 237 birds in its Texas Coastal Bend wintering ground (www.SunHerald.com). The average whooping crane egg...
-
Ujjal Corporation, a publicly traded company, is authorized to issue an unlimited number of no par value $5 noncumulative preferred shares and an unlimited number of no par value common shares. On...
-
Heat transfer to a 1.5-kg block of ice at 10C melts it to liquid at 10C in a kitchen. How much work does the water gives out?
-
A truck carrying chickens is too heavy for a bridge that it needs to cross. The empty truck is within the weight limits; with the chickens it is overweight. It is suggested that if one could get the...
-
Each of the following situations has an internal control weakness: a. Soft Wizzard Applications sells accounting software. Recently, development of a new program stopped while the programmers...
-
In the context of heat exchangers, how does the design and optimization of finned surfaces influence overall heat transfer performance, particularly in high-temperature applications like gas turbine...
-
People tend to perceive things: A. in the same way, and they assume everyone perceives things in the same way. B. in the same way, but they assume that everyone perceives things differently. C. in...
-
1- The corporate alterative minimum tax rate is increased by 100% percentage of any unused alternative minimum tax credit for a taxable year beginning O a. 2019 O b. 2022 O c. 2017 O d. 2021
-
A social efficiency approach to schooling argues that our economic well-being depends on our ability to prepare the youth to carry out useful economic roles with competence.
-
Marginal product of labor shows the law of diminishing marginal returns. this implies that after MPL hits the zero, total product starts to be negative, where what we called negative diminishing...
-
Write a function: class Solution { public int solution (int[] A, int K, int L); } that, given an array A consisting of N integers denoting the number of apples on each apple tree in the row, and...
-
Imagine that prices evolve according to a function. Furthermore, assume that expectations are partially backward-looking, i.e., we have. Imagine that the cost of information gathering and processing...
-
This is a monte Carlo question and needs to be solved algebraically or via EViews or both ways. Heteroskedasticity: Suppose our true model is yi = o+1*x1i+ 2*x2i+ e(exp(x2i))^0.5 , i = 1, 2, ..., N,...
-
Fill in each blank so that the resulting statement is true. A solution to a system of linear equations in two variables is an ordered pair that__________ .
-
The Port Authority sells a wide variety of cables and adapters for electronic equipment online. Last year the mean value of orders placed with the Port Authority was $47.28, and management wants to...
-
Suppose that the return for a particular large-cap stock fund is normally distributed with a mean of 14.4% and standard deviation of 4.4%. a. What is the probability that the large-cap stock fund has...
-
In Problem 22, if P(s1) = 0.25, P(s2) = 0.50, and P(s3) = 0.25, find a recommended decision for each of the three decision makers. In Problem 22, The indifference probabilities are as follows: a....
-
Figure 4 shows a scatterplot for the variables life expectancy and infant mortality in 16 countries. What type of correlation does it show? Does this correlation make sense? Does it imply causality?...
-
Figure 5 shows a scatterplot for the variables number of farms and mean farm size in the United States. Each dot represents data from a single year between 1950 and 2000; on this diagram, the earlier...
-
The scatterplots in Figure 6 show two weeks of data comparing the actual high temperature for the day with the same-day forecast (part a) and the three-day forecast (part b). Estimate the correlation...
Study smarter with the SolutionInn App