Write a c++ program that can solve a second order differential equation.

User Generated

unfrro5959

Computer Science

Description

Write a c++ program that can solve a second order differential equation.

Y"+4y'+4y=0. Y(0)=0 and y(1)=3

The program must use the shooting method. in combination with any one of the fourth order runge-kutta methods.the program must prompt the user to provide a first guess of the slop of the at solution at X=0

You can select any step size you consider reasonable;proff of sulatiin will be decided on how well the calculated results match the analytical sulation at x=1 

as part of the presentation of sesults you must prepare an excal plot of the calculated value and the 'exact' valuse. The analytixcal soluation is y=3xe^(-2x+2)


User generated content is uploaded by users for the purposes of learning and should be used following Studypool's honor code & terms of service.

Explanation & Answer


Anonymous
Great study resource, helped me a lot.

Studypool
4.7
Trustpilot
4.5
Sitejabber
4.4

Related Tags