Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

HELP WITH STEPS D AND E Problem 2 . For a the governing equation is : d y d t = a + b y

HELP WITH STEPS D AND E
Problem 2. For a the governing equation is :
dydt=a+byy2
Where a is 1 and b is 2.y(0)=1
a) OK so set this up using Eulers method on Excel. Try a step size of 1 and run it out to t=20.
b) You will have a table of t and y and y'. Looking at "y", determine numerically and analytically, the derivative of y at t=3 using forward difference and center differences. (this is based on your table entries for y) Compare this derivative to what you show for y' in the Euler table. (should be similar)
c) Extra ...add another column to use modified Euler method.
d) Write a MATLAB livescript program which asks the user for a and b, and the initial value of y at t=0, and which fills an array "myy" with y at 0,1,2,3,dots20.(should be the same values you got in excel .. but don't copy from excel!!) Just use straight Euler for this... not modified.
e) Have your MATLAB script plot the function y vs time and y' vs time.
image text in transcribed

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

Managing Your Information How To Design And Create A Textual Database On Your Microcomputer

Authors: Tenopir, Carol, Lundeen, Gerald

1st Edition

1555700233, 9781555700232

More Books

Students also viewed these Databases questions