Question

Consider the ODE fx,y)2- Take initial conditions xo0, yo(0) 11, x10.2 and y - y(0.2) 22 solve for y(99) with a step size of 0

0 0
Add a comment Improve this question Transcribed image text
Answer #1

This problem can be easily computed with the help of programming .

i'm using c++ code for computing this

here is the code which can be used for finding the solution

#include<iostream>
using namespace std;
double calFunc(double x,double y)
{
double res=x*x - (1/y);
return res;
}
int main()
{
double x0=0, y0=11,x1=0.2, y1=22;
double finalY=0;
double h=0.2;
for(int i=2;i<=99;i++)
{
finalY=y1+ h* (5*calFunc(x1,y1)/12+2*calFunc(x0,y0)/3 );
x0=x1;
y0=y1;
x1+=0.2;
y1=finalY;
cout<<"\ny"<<i<<": "<<finalY;
}
  
}

and the output associated is :

Windows PowerShel y2: 21.9874 y3: 21.9962 y4: 22.0377 y5 22.1292 y6: 22.2881 y7: 22.5316 y8: 22.8773 y9: 23.3424 y10: 23.9443

Windows PowerShell У51: 380.446 у 52: 402. 448 У53: 425.333 У54: 449.117 У55: 473.818 У56: 499.453 У57: 526.039 y58: 553. 594

as we can see that y99 is 2731.29 which will be 2731 when rounded off to nearest integer.

I hope this will help you so please give positive ratings :)))

Add a comment
Know the answer?
Add Answer to:
Consider the ODE fx,y)2- Take initial conditions xo0, yo(0) 11, x10.2 and y - y(0.2) 22 solve for y(99) with a step siz...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT