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

  Finite difference method

Use the finite difference method to calculate the temperature at the point specified since it is easier.

  Determine the necessary shell temperature

In a shell-and-tube heat exchanger, one fluid passes through a central tube while another fluid flows through an outer shell in the opposite direction. The purpose is to heat the fluid passing through the central tube.

  Find the integral of a function at an arbitrary location

Write a Matlab function to perform numerical integration of a set of evenly spaced data points using the trapezoidal rule

  Compute the speed of single-stage planetary gear train

Write a MATLAB function [speed] = planetary (N, emesh, first, last, arm) that computes the speed of a given link in a single-stage planetary gear train.

  Calculate and plot the error in the numerical derivative

Write a program to calculate and plot the error in the numerical estimate of the derivative.

  Create the graph using matlab functions

Create the graph, which contains a piecewise function where a line exists in the first interval, a parabola in the second interval, and the sine function in the third interval.

  Develop a simulation program

Develop a simulation program

  Create a vector in matlab

Create a three dimensional diagram of function.

  Open a named pipe and to read data from the pipe

Open a named pipe and to read data from the pipe in matlab

  Write the commands that will create the matrix

Write the commands that will create the matrix.

  Lagrange interpolating polynomial of degree

Lagrange interpolating polynomial of degree

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