Approximate the solution to the above initial value problem

Assignment Help MATLAB Programming
Reference no: EM13574241

dy/dt = te3t - 2y, 0 ≤ t ≤ 1, y(0) = 0

Approximate the solution to the above initial value problem using

(a) Modified-Euler Method

(b) Midpoint Method

(c) Heun's Method

(d) 4-stage Runge-Kutta Method

with a time step of h = 0.1. For each method, tabulate the approximate solution and the error at each time step using the exact solution to this problem

y(t) = 1/5 te3t -1/25 e3t +1/25e-2t

Plot the approximate solutions and the exact function for comparison. In another graph, plot the error distributions. Note that you may need to give a separate plot for the error of 4-stage Runge-Kutta scheme to see the trend in a larger scale.

Reference no: EM13574241

Questions Cloud

Jim was excited as he drove into the car park at floating : jim was excited as he drove into the car park at floating investments limited. the senior management meeting was
With a time step of h 01 in each case use starting values : dydt yt- yt2 1 le t le 2 y1 1approximate the solution to the above initial value problem usinga 2-step
Suppose that you buy 100 shares then immediately sell the : abc stock has a bid price of 40.95 and an ask price of 41.05. assume there is a 20 brokerage commission. suppose that
Suppose the following rates are averages for banks in your : suppose the following rates are averages for banks in your area interest checking accounts pay 1 savings accounts pay 2
Approximate the solution to the above initial value problem : dydt te3t - 2y 0 le t le 1 y0 0approximate the solution to the above initial value problem usinga modified-euler
What was the average annual rate of return on long-term : what was the average annual rate of return on long-term government bonds 30-year treasury bonds during the period 1984
What factors should be considered in determining whether : the financial accounting standards board issued accounting guidance to clarify accounting methods and procedures with
If your homeowners insurance premium is 1000 and your : if your homeowners insurance premium is 1000 and your deductible is 2000 what could be considered the strike price of
Approximate the solution to the above initial value problem : 1. dydt te3t - 2y 0 le t le 1 y0 0approximate the solution to the above initial value problem usinga modified-euler

Reviews

Write a Review

MATLAB Programming Questions & Answers

  Matlab m-script that will generate a damped sinusoid

1.) Write a MATLAB m-script that will generate a damped sinusoid (frequency = 440 Hz) with a time constant of 0.25 sec. Set the time axis for 0 to 6 time constants.

  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.

  Plot the lines using the inputted vector of x values and x

Write a function named solveSystem that has three inputs: two vectors consisting of coefficients [a b c] of two line equations of the form ax + by = c and a vector of x values.

  Plot an outcome of the proportion of successes

Simulate 2000 coin flip experiments with a biased coin with "success" probability (chance of 1) p = 1=5. Plot an outcome of the proportion of successes with respect to the number of coin flips. Supply your code.

  Write matlab scripts

Write MATLAB scripts for to accept two numbers from the user; Display all prime numbers between these two numbers.

  Plot with three different shading scheme (one plot per each

create two vectors X and Y of values from (-pi) to pr with a spacing of pi/10. Define the vector Z as: Z=(sin(sqrt(x^2+y^2)))/sqrt(x^2+y^2)

  Stepper motor driven xy table

Stepper Motor Driven XY Table - Use Matlab and Labjack to acquire digital inputs from limit switches and use Matlab to analyze acquired data

  Calculate and display the altitude and velocity of rocket

Write a program that will solve the problem specified above( for the rocket). However, lit user of your program is to insert the starting height, and the time the rocket travels.

  Write mass balance equations for the remaining reactors

Write mass balance equations for the remaining 4 reactors. Put the known values in the 5 equations and convert each equation into a form where left hand side contains all the variables and the right hand side the constant term.

  Compute the economy sized svd

Compute the economy sized SVD of the reshaped A matrix.

  Vb and matlab to calculate the cumulative days

Create a function TotalDaysMonth(intYear, intMonth, strIndOrCum) in both VB and Matlab to calculate the cumulative days or number of days in a given month, depending on inputs, by employing array vector in VB or a vector matrix in Matlab.

  An image histogram for a color image

goal is to build an image histogram for a color image based on its 6-bit color code.

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