Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a script and pseudo code for this please Help matlab Problem 2. The Taylor series expansion of the exponential function e* is given by

image text in transcribed
Write a script and pseudo code for this please Help matlab
Problem 2. The Taylor series expansion of the exponential function e* is given by n! 70 Write an algorithm (pscudocode) that will calculate the exponential function using this expansion. This is an infini te sum, but your function should stop the summation when the addition of a successive term makes a negligible change in e. That is, output the approximate value of e* obtained when the addition of a successive term causes less than a user defined change (tolerance) in e For example, the user wants to stop the summation when (sumPrevious-sumNew) / sumPrevious 0000001 (one part in a million) where 0,00000 is the usr definsd telsrans Write a MATLAB sripts (my exp_script2) that implements the pseudocode. Your script should ask a user to input two numbers (x and tolerance). You must check for nonsensical input values (both inputs should be real numbers; tolerance should be positive) For the factorial, you should use MATLAB's built-in factorial function. Whether you need to calculate n! or not depends on your algorithm. If your algorithm is similar to what you see in Problem I (above), then you do not need to calculate n Your script should output the approximation ore*. Also, it should compare the approximation to MATLAB internal function's output (exp (x) ). Do you get the same values? Close enough? Calculate and output the difference. Submit two filss my exp pseudocode pdf (or my oxp pseudocode jpg) and my exp acript2

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Database Foundations Technology Fundamentals For IT Success

Authors: Bob Bryla

1st Edition

0782143725, 9780782143720

More Books

Students also viewed these Databases questions

Question

Explain what "beta versions" of computer programs are.

Answered: 1 week ago

Question

Explain how to build high-performance service delivery teams.

Answered: 1 week ago

Question

Understand what a service-oriented culture is.

Answered: 1 week ago