Taylor series The sinh function can be evaluated by the following infinite X3 X5 sinhx =...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Taylor series The sinh function can be evaluated by the following infinite X3 X5 sinhx = x + 3! 5! (a) Write a function that needs as an input the value of x and the acceptable true percent error from the user and then it calculates sinh(x) using the above series until the acceptable error is satisfied. Make sure that the function does the following: i. ii. stores the true percent relative error for each number of terms taken from the series in an array. plots the true percent relative error as a function of the number terms. Make sure to label the x- axis, the y-axis and to add a legend. The plot has to be logarithmic on both x and y axes (i.c. log- log plot which can be done by using loglog instead of plot) iii. times itself using tic; toc: (b) Run the function for the case x = 1 and with acceptable error of 10-13 %. Report the final plot, and the time of the calculation (using tic toc). (c) From your log-log plot in part (b), how many terms are enough to reach percent relative error less than 10% %. Taylor series The sinh function can be evaluated by the following infinite X3 X5 sinhx = x + 3! 5! (a) Write a function that needs as an input the value of x and the acceptable true percent error from the user and then it calculates sinh(x) using the above series until the acceptable error is satisfied. Make sure that the function does the following: i. ii. stores the true percent relative error for each number of terms taken from the series in an array. plots the true percent relative error as a function of the number terms. Make sure to label the x- axis, the y-axis and to add a legend. The plot has to be logarithmic on both x and y axes (i.c. log- log plot which can be done by using loglog instead of plot) iii. times itself using tic; toc: (b) Run the function for the case x = 1 and with acceptable error of 10-13 %. Report the final plot, and the time of the calculation (using tic toc). (c) From your log-log plot in part (b), how many terms are enough to reach percent relative error less than 10% %.
Expert Answer:
Answer rating: 100% (QA)
Answer Matlab function file function sinhxsinehypxet tic ... View the full answer
Related Book For
Numerical Methods For Engineers
ISBN: 9780071244299
5th Edition
Authors: Steven C. Chapra, Raymond P. Canale
Posted Date:
Students also viewed these accounting questions
-
The cosine function can be evaluated by the following infinite series: Write an algorithm to implement this formula so that it computes and prints out the values of cos x as each term in the series...
-
Explain why lim x2 (3x 2 + 8x) can be evaluated by substituting x = 2.
-
What kinds of product features can be evaluated by electrical resistivity methods?
-
On 1/1/22, lmani and Ahmad formed AI Partnership, a limited partnership. lmani will be the general partner and Ahmad will be a limited partner. He will not participate in management of the...
-
How does the physical distribution function create utility?
-
The functions g and h are given by g(x)=x+2 and h(x) = x (b) Find the values of x for which hg(x) = 3x+x-1
-
For each of the following situations, calculate the \(t\)-statistic \((t)\) : a. \(\mathrm{X}^{-}=4.00 ; \mu=5 ; s=3.00 ; N=36\) b. \(\mathrm{X}^{-}=1.50 ; \mu=1.25 ; s=.75 ; N=25\) c....
-
Savage Motors sells and leases commercial automobiles, vans, and trucks to customers in southern California. Most of the company's administrative staff works in the main office. The company has been...
-
In Walker's multiple-step income statement, gross profit? Walker, Inc. has the following information is available: Cost of goods sold $150300 Dividend revenue 3600 Income tax expense 3200 Operating...
-
The Powell Corporation has the following account balances (in millions}: Required Prepare a statement of comprehensive income and a supporting schedule of cost of goods manufactured for the year...
-
There is a tree in the box. What is the depth of the tree? Multiple Choice 14 2 11 / \ / \ 1 3 10 30 7 40
-
5) A very thick slab has a uniform concentratio of solute A of C0-1x10^-2 mol /m^3 suddenly,the front face of the slab is exposed to a fluid having a concentration of solute A of C1= 0.10 mol/m^3 a)...
-
A shaft carries four rotating masses A, B, C and D which are completely balanced. The masses B, C and D are 50 kg, 80 kg and 70 kg respectively. The masses C and D make angles of 90 and 195...
-
Estimate the yield stress of the iron crystal, when the iron crystal includes random dislocation network whose density is p=1.0 x 108cm/cm. The average length of the dislocation / is approximately...
-
9.33 Determine the change in mass moment of inertia of an object that could be modeled as a point mass m when its distance from a center of rotation is doubled.
-
Derek will deposit $1,635.00 per year into an account starting today and ending in year 20.00. The account that earns 8.00%. How much will be in the account 20.0 years from today?
-
4. Firm A has only debt and equity in its capital. Its debt consists of a 10-million- dollar bond with coupon rate 6% paid semi-annually. The bond has a market price of $1100 and 10-year maturity....
-
What key concerns must functional tactics address in marketing? Finance? POM? Personnel?
-
The vertical stress z under the corner of a rectangular area subjected to a uniform load of intensity q is given by the solution of Boussinesqs equation: Because this equation is inconvenient to...
-
Fit a power model to the data from Prob. 17.26, but use natural logarithms to perform the transformations.
-
Solve for the value of x that maximize (x) in Prob. 13.2 using the golden-section search. Employ initial guesses of x1 = 0 and xu = 2 and perform three iterations.
-
Show that if two given networks are described by \(Y_{i}=\sum_{j=1}^{M} T_{i j} X_{j}\) and \(Y_{i}^{\prime}=\) \(\sum_{j=1}^{M} T_{i j}^{\prime} X_{j}^{\prime}\), then these networks are...
-
Some FIR filters present a rational transfer function: (a) Show that the transfer function \[H(z)=\frac{\left(r^{-1} z ight)^{-(M+1)}-1}{r e^{\mathrm{j} 2 \pi /(M+1)} z^{-1}-1}\] corresponds to an...
-
Plot the pole-zero constellation as well as the magnitude response of the transfer function of Exercise 4.20 for \(M=6,7,8\) and comment on the results. Exercise 4.20 Some FIR filters present a...
Study smarter with the SolutionInn App