0% found this document useful (0 votes)
95 views1 page

Runge-Kutta Method MATLAB Guide

The document provides instructions for two problems to solve using the Runge-Kutta method to find approximate values of y given differential equations and initial conditions. The first problem is to find y when x=1.2 using a step size of 0.2 given the differential equation dy/dx = xy and initial condition y(1)=1. The second problem is to find y when x=0.2 in two steps using a step size of 0.1 given the differential equation dy/dx = -y - xy^2 and initial condition y(0)=1.

Uploaded by

Aniketh Mohandas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views1 page

Runge-Kutta Method MATLAB Guide

The document provides instructions for two problems to solve using the Runge-Kutta method to find approximate values of y given differential equations and initial conditions. The first problem is to find y when x=1.2 using a step size of 0.2 given the differential equation dy/dx = xy and initial condition y(1)=1. The second problem is to find y when x=0.2 in two steps using a step size of 0.1 given the differential equation dy/dx = -y - xy^2 and initial condition y(0)=1.

Uploaded by

Aniketh Mohandas
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MATLAB Practical No.

04
Runge-kutta method

Name: - Date: -

Roll No. and Division: - Grade/Marks: -

****************************************************************
Q.1) Write a program and an output of following

I) Using Runge-kutta method find approximate value of y when x=1.2 taking h=0.2 given
𝑑𝑦
= 𝑥𝑦 and y (1) = 1.
𝑑𝑥

2) Using Runge-kutta method find approximate value of y when x=0.2 in two steps taking
𝑑𝑦
h=0.1 given 𝑑𝑥 = −𝑦 − 𝑥𝑦 2 and y (0) = 1.

You might also like