Evaluate the exponential when x is negative

Assignment Help MATLAB Programming
Reference no: EM13927388

Consider the Taylor expansion for the exponential

ex = 1 + x + x2/2! + x3/3! +...... = limN→∞ S(x, N)

where S(x, N) is the partial sum with N +1 terms. (a) Write a program that plots the absolute fractional error of the sum, |S(x,N)- ex |ex, versus N (up to N = 60) for a given value of x. Test your program for x = 10, 2, -2, and -10. From the plots, explain why this is not a good way to evaluate 9 when x < 0449] (b) Modify your program so that it uses the identity ex =1/e-x = 1/S (-x, ∞) to evaluate the exponential when x is negative. Explain why this approach works better.

Reference no: EM13927388

Questions Cloud

Mutually exclusive and independent events : According to a recent poll published in USA TODAY, roughly 54% of U.S. men and 33% of U.S. women believe in extraterrestial aliens. Of U.S. adults, roughly 48% are men and 52% are women.
How would you define power : How would you define power? How would you define influence? What are some distinctions between power and influence in an organizational setting? How may power and influence positively affect an organization? How may power and influence negatively ..
Mariko current dietary pattern : Mariko, age 2, prefers a daily diet of rice or noodles that have been drenched in soy sauce. She will take a few bites of tofu when her mother insists, but refuses meats, fish, and most vegetable. What nutrients is she missing? What health concern..
What would account for the difference in their debt ratios : Then calculate the debt ratio of a service-oriented company, such as Cognizant Technology Solutions. Based on what you learned about leverage in this chapter, what would account for the difference in their debt ratios?
Evaluate the exponential when x is negative : Test your program for x = 10, 2, -2, and -10. From the plots, explain why this is not a good way to evaluate 9 when x
Solve an integer programming model : Formulate and solve an integer programming model for this problem to assist the company in determining which plants should remain open and which should be closed and the number of vehicles that should be shipped from each plan to each warehouse to..
What hd is doing to overcome these weaknesses : Describe what you consider to be two or three of the weaknesses that are likely to have the greatest impact, and what HD is doing (or should be doing) to overcome these weaknesses?
Define leverage as it is used in finance : Define leverage as it is used in finance. Define and give examples of the Fixed costs and Variable costs. Define the Operating leverage and Financial leverage.
Layer of the osi model : 1. At Layer 3 of the OSI Model, data is encapsulated in 2. A tool used to analyze traffic is

Reviews

Write a Review

MATLAB Programming Questions & Answers

  How to use wxpython instead of matplotlib

How to use wxpython instead of matplotlib and

  It turns out that since you''ve become experts

It turns out that since you've become experts on rating clothing, Acme Clothing Company has hired you to rate their clothes. Clothes are now represented as structures instead of vectors with the fields (all of which are numbers between 0 and 5): C..

  Compare with the true value

compare with the true value of 6.737947 x 10 -3  . Use 20 terms to evaluate each series and compute true and approximate relative errors as terms are added.

  Write a matlab function that takes a matrix

Write a MATLAB function that takes a matrix, a row number and a column number. Beginning with the row number passed to the function, scan down the column passed to the function and return the row number that contains the largest absolute value in ..

  Anatomy of a machine

Need a Machine Learning application written in matlab to be able to predict, based on certain selected features of wine, which variants of wine are likely to score above a 5 out of 10 quality score.

  Characterizing population of about countries

Select 10 features characterizing the population of about 100 countries. load it into Matlab. Normalize the data between 0 and 1. (min, max and minmax are some useful Matlab commands)

  Linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM.

  Matalb solution hello i have some questions that i need

hello ltbrgti have some questions that i need them to be solved ltbrgtq1 9.the cost of manufacturing n units where n

  Design a controller which regulates flow

Design a controller which regulates flow and compensate pressure to my desire value in simscape.

  Calculate an approximation to the energy consumed

Calculate an approximation to the energy consumed over the period and calculate an approximation to the energy consumed over the period t = a to t = b.

  Biorhythm- matlab problem

All three cycles started at zero when you were born. How long does it take until all three simultaneously return to that initial condition? How old were you, or will you be, on that date? Plot your biorhythm near that date. You should ?nd the lcm ..

  Define the ideology of the pid block diagrams

I have this on an article that i can send to you and would want a soft copy of the saved designed in matlab and an analysis and interpretation of the result as a mini report. i would like this be done as soon as possible. The ideology of the PID b..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd