Write a matlab script called estimate_e

Assignment Help MATLAB Programming
Reference no: EM13690923

Problem: The number e can be estimated as an infinite series:

e = 1 +( 1/1) +(1/1?2)+(1/1?2?3)......

Write a MATLAB script called estimate_e where a while loop is used to obtain an estimate of e. Use appropriate logic to terminate the while loop when the relative change between estimates (tol) is less than 1×10-6.

Then, make a plot of the residual between your estimate and the more accurate value from Matlab's built-in function (which can be obtained by calling exp(1)) versus the iteration number. Use the function semilogy to plot your results. Repeat for tol = 1×10-9

Question: How does your actual accuracy compare to the relative tolerance you chose?

Can you provide the answer as soon as possible and use basic MATLAB concepts to make this program?

Reference no: EM13690923

Questions Cloud

Calculates how much a little league baseball team spent : Prepare a program that calculates how much a little league baseball team spent last year to purchase new baseballs.
Categorize the efficiency in terms of the variable : Show in milliseconds the amount of time this construct would require to execute if n were 1000 - Consider the following nested loop construct
Implement function types that takes no input : Implement function types that takes no input, declares 3 variables of type char, 3 of type short, 3 of type int, and 3 of type double.
How to draw a figure of an http get packet : How to draw a figure of an HTTP GET packet that shows the position and size in bytes of the TCP, IP and Ethernet protocol headers.
Write a matlab script called estimate_e : How does your actual accuracy compare to the relative tolerance you chose - Can you provide the answer as soon as possible and use basic MATLAB concepts to make this program?
How deep can the procedure calls go before registers : How deep can the procedure calls go before registers must be saved in memory? (That is, what is the maximum number of "active" procedure calls that can be made before we need to save any registers in memory?)
Implement a program using function for a defined task : Implement a program using function for a defined task. Initial data is read from a file and added from keyboard. Program has to output resulting and initial data.
Define the sums of every even column of 2d array : Define the sums of every even column of 2D array in C language - Prepare this program in c language. Show all your work.
How to use wxpython instead of matplotlib : How to use wxpython instead of matplotlib and

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Filtering – biomedical application

Prepare a filter that removes noise produced by electronic medical equipment.

  Determine the volume of the pyramid

Determine the volume of the pyramid. When the user enters every value, they will then be prompted also for either 'i' for inches, or 'c' for centimeters.

  The length of hose is 275 feet and the system is to be

a system for delivering lawn fertilizer in liquid form. the nozzle on the end of the hose requires 20 psig of pressure

  Generate a table of conversions from kw to hp

Determine the cost of a 4-year education, assuming that the current cost for 1 year at a state school is $5000 - Generate a table of conversions from kW to hp

  Using dimensional analysis nondimensionalize the period t

the period of a pendulum t is assumed correctly or incorrectly to depend on the mass m the length of the pendulum l the

  Finite difference method

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

  Script that will prompt the user for the reynolds number

Write a script that will prompt the user for the Reynolds number of a flow and will print the region the flow is in.

  Create matlab function to plot the rotation of a wheel

Create Matlab function to plot the rotation of a wheel without sleeping. Plot the trajectory of any point on the wheel.

  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.

  Ece 12

oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo

  Prompts the user to enter grades in a loop

Define a function that takes two input parameters, a vector of test scores and a scalar passing grade. The function returns the fraction of passing grades as a number in the range

  An efficient human identification using gait analysis

An Efficient Human Identification Using Gait Analysis, Apply specific approach for Pattern Recognition,Implement this approach in MATLAB,Compare and discuss the results with others.

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