Section 1 consists of basic concepts, and can be done either with a numerical co
ID: 2087447 • Letter: S
Question
Section 1 consists of basic concepts, and can be done either with a numerical code or by hand (where "by hand" means with a normal calculato). For sections 2-4, the goal is to solve the following problems using the numerical schemes outlined during class. For each problem, you should submit the code from your program as well as the output. Note that you are not allowed to use any built-in Matlab programs .e. ODE4S) for this project (unless you want to use them to check your own code). Also I don't expect to see the same code from two different people! Bonus: 13) Solve the following ODE for the value of y atx 2 using any of the three methods above with ar -0.1. Hint Ifyou having issues, you may want to solve the ODE exactly.Explanation / Answer
follow this code- (methods ar not mentioned so can't able to use step of x) hope this will help you
syms y(x)
ode = diff(y,x) == x*y^2 %function define
cond = y(0) == 1;
ySol(x) = dsolve(ode,cond) % give solved expression
x=2; % goal to find y at x=2
subs(ySol(x)); %substitue x in y
ans
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.