Open navigation menu
Close suggestions
Search
Search
en
Change Language
Upload
Sign in
Sign in
Download free for days
0 ratings
0% found this document useful (0 votes)
36 views
3 pages
Runge Kutta Method
Program to implement the Runge Kutta method of numerical analysis in C programming language.
Uploaded by
Khushal
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Download
Save
Save Runge Kutta method For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
0 ratings
0% found this document useful (0 votes)
36 views
3 pages
Runge Kutta Method
Program to implement the Runge Kutta method of numerical analysis in C programming language.
Uploaded by
Khushal
AI-enhanced title
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content,
claim it here
.
Available Formats
Download as PDF or read online on Scribd
Carousel Previous
Carousel Next
Download
Save
Save Runge Kutta method For Later
Share
0%
0% found this document useful, undefined
0%
, undefined
Print
Embed
Report
Download
Save Runge Kutta method For Later
You are on page 1
/ 3
Search
Fullscreen
B Example 10.15. Apply Runge-Kutta fourth order method to find an approximate value of y when x = 0.2 given that dyldx =x + y and y = 1 when x = 0. (Delhi, B. Tech., 2013 Sol. Here x, = 0,9 = 1,h = 0.2, fly, ¥o) = 1 hy = hefley, Yo) = 0.2 x1 = 0.2000 ahf (+ +h, Yo +h) = 0.2 x fl0.1, 1.1) = 0.2400 hg = hf (+ +3h % +3hs) = 0.2 x A.1, 1.12) = 0.2440 and hey = hflary + hy yo + hg) = 0.2 x 0.2, 1.244) = 0.2888 Pe Zth, + Qh, + Dhy + hy) = z ©, 0.4800 + 0.4880 + 0.2888) « ; x (1.4568) = 0.2428. Hence the required approximate value of y is 1.2RUNGE-KUTTA METHOD (§ 10.7) lL) FLOW CHART cS Start 5) era pa | Define function f(x, y) Get values of x0, yO, h, xn k1 = h*f(x, y) 2 = h*f(x + h/2, y +k1/2) k3 = h*f(x + b/2, y+ 2/2) k4 =h*f(x +h, y + k8) k= (kl + (k2 + k3)*2 + (k4)*6 x=yth y=ytkNotes. x0 is starting value of x ie., x9 xn is the value of x for which y is to be determined (2) PROGRAM /* Runge Kutta Method */ #include
float £(float x,float y) { return x+y*: } main() { float x0,y0,h,xn,x,y,k1,k2,k3,k4,k; printf ("Enter the values of x0,y0,” “h,xn\n") ; scanf (“tf $f $f %£”,&x0,&y0,&h, &xn) ; x = x0; y = yO; while (1) { if (x == xn) break; kl = hf (x,y); k2 = h*f (x+h/2,y+k1/2) ; k3 = h*f (x+h/2,y+k2/2) ; | k4 = hrf (xth,y+k3) ; k = (k1+(k2+k3)*2+k4) /6; x += hj y += kj printf("When x = %8.4£” “y = %8.4f\n",x,y); i als
You might also like
The Runge-Kutta Method
PDF
No ratings yet
The Runge-Kutta Method
8 pages
NM Unit Iv Partiii Runge Kutta Method
PDF
No ratings yet
NM Unit Iv Partiii Runge Kutta Method
10 pages
Runge Kutta Method
PDF
100% (2)
Runge Kutta Method
29 pages
Runge-Kutta Method: Simpson's Rule
PDF
No ratings yet
Runge-Kutta Method: Simpson's Rule
3 pages
R-K Method
PDF
No ratings yet
R-K Method
16 pages
Computational Lab in Physics: Solving Differential Equations II
PDF
No ratings yet
Computational Lab in Physics: Solving Differential Equations II
10 pages
Initial Value Problems For ODEs
PDF
No ratings yet
Initial Value Problems For ODEs
38 pages
C Program To Implement Runge Kutta Method1
PDF
No ratings yet
C Program To Implement Runge Kutta Method1
2 pages
Runge-Kutta Presentation
PDF
No ratings yet
Runge-Kutta Presentation
26 pages
EXPERIMENT10
PDF
No ratings yet
EXPERIMENT10
3 pages
RK 4 (New 1)
PDF
No ratings yet
RK 4 (New 1)
2 pages
Runge Kutta Method
PDF
100% (1)
Runge Kutta Method
33 pages
Assignment 6.3: Z 1, Z 3, Z 3 y (X) X + X
PDF
No ratings yet
Assignment 6.3: Z 1, Z 3, Z 3 y (X) X + X
13 pages
Runge-Kutta Method
PDF
No ratings yet
Runge-Kutta Method
4 pages
4th-Order Runge-Kutta Method
PDF
No ratings yet
4th-Order Runge-Kutta Method
10 pages
Assignment 2
PDF
No ratings yet
Assignment 2
6 pages
Lect 3 Nonlin ODE
PDF
No ratings yet
Lect 3 Nonlin ODE
13 pages
Lanm PPT
PDF
No ratings yet
Lanm PPT
7 pages
Bisec
PDF
No ratings yet
Bisec
7 pages
Second Order Runge-Kutta Method
PDF
No ratings yet
Second Order Runge-Kutta Method
14 pages
2019 04 30 OctaveNB
PDF
No ratings yet
2019 04 30 OctaveNB
6 pages
On A General Form of Rk4 Method
PDF
No ratings yet
On A General Form of Rk4 Method
10 pages
Runge Kutta Method. 1
PDF
No ratings yet
Runge Kutta Method. 1
20 pages
Range Kutta Method
PDF
No ratings yet
Range Kutta Method
14 pages
Adobe Scan 06 Oct 2023
PDF
No ratings yet
Adobe Scan 06 Oct 2023
11 pages
Comp Dep s3 c2 Numanalysis 4
PDF
No ratings yet
Comp Dep s3 c2 Numanalysis 4
9 pages
Numerical Analysis: MATLAB Practical (Autumn 2020) B.E. III Semester Thapar Institute of Engineering & Technology Patiala
PDF
No ratings yet
Numerical Analysis: MATLAB Practical (Autumn 2020) B.E. III Semester Thapar Institute of Engineering & Technology Patiala
6 pages
Rungkutta
PDF
No ratings yet
Rungkutta
1 page
Lecture 5 - RK Methods
PDF
No ratings yet
Lecture 5 - RK Methods
27 pages
Initial Value Problem Presentation-1
PDF
No ratings yet
Initial Value Problem Presentation-1
29 pages
19MA211 SNM Record
PDF
No ratings yet
19MA211 SNM Record
13 pages
Runge-Kutta Method (May 2020) : Santiago Rojas Alfonso COD 69637 Jhon Alejandro Cardona Giraldo COD 70390
PDF
No ratings yet
Runge-Kutta Method (May 2020) : Santiago Rojas Alfonso COD 69637 Jhon Alejandro Cardona Giraldo COD 70390
2 pages
EEP312 Chapter 7 Numerical Solutions of Differential Equations
PDF
No ratings yet
EEP312 Chapter 7 Numerical Solutions of Differential Equations
20 pages
Asgnment Numec Q2
PDF
No ratings yet
Asgnment Numec Q2
18 pages
Runge Kutta
PDF
No ratings yet
Runge Kutta
13 pages
Nge Kutta
PDF
No ratings yet
Nge Kutta
10 pages
Clearly The Slope of The Curve Through P Is (Fig.) Integrating Both Sides of (1) From To We Have .
PDF
No ratings yet
Clearly The Slope of The Curve Through P Is (Fig.) Integrating Both Sides of (1) From To We Have .
7 pages
Ordinary Differential Equations
PDF
No ratings yet
Ordinary Differential Equations
20 pages
CO2 Runge Kutta Method
PDF
No ratings yet
CO2 Runge Kutta Method
8 pages
Numerical Analysis
PDF
No ratings yet
Numerical Analysis
13 pages
Department of Chemical Engineering
PDF
No ratings yet
Department of Chemical Engineering
8 pages
Chapter 4 Dfggdgddgdfgdfddgfdefzeffreferfsrfe: Numerical Solution of Initial-Value Problems 4.3 Runge-Kutta Method
PDF
No ratings yet
Chapter 4 Dfggdgddgdfgdfddgfdefzeffreferfsrfe: Numerical Solution of Initial-Value Problems 4.3 Runge-Kutta Method
8 pages
Runge-Kutta Method by NLIBUNES
PDF
No ratings yet
Runge-Kutta Method by NLIBUNES
38 pages
Ch4 3
PDF
No ratings yet
Ch4 3
8 pages
Mission NC
PDF
No ratings yet
Mission NC
15 pages
R-K Method MATLAB Code
PDF
No ratings yet
R-K Method MATLAB Code
2 pages
Ch4 3
PDF
No ratings yet
Ch4 3
8 pages
Ch4 3
PDF
No ratings yet
Ch4 3
8 pages
Chapter 4 Ffffffeerrrezzerzrzerzdfggdgddgdfgdfddgfdefzeffr Efessffdssdrfsrfe
PDF
No ratings yet
Chapter 4 Ffffffeerrrezzerzrzerzdfggdgddgdfgdfddgfdefzeffr Efessffdssdrfsrfe
8 pages
Chapter 4 Eerrrezzerzrzerzdfggdgddgdfgdfddgfdefzeffrefer Fsrfe
PDF
No ratings yet
Chapter 4 Eerrrezzerzrzerzdfggdgddgdfgdfddgfdefzeffrefer Fsrfe
8 pages
Wah Engineering: College
PDF
No ratings yet
Wah Engineering: College
15 pages
Ch4 3
PDF
No ratings yet
Ch4 3
8 pages
Numerical Solution of Initial-Value Problems 4.3 Runge-Kutta Method
PDF
No ratings yet
Numerical Solution of Initial-Value Problems 4.3 Runge-Kutta Method
9 pages
RK 4
PDF
No ratings yet
RK 4
1 page
Question10 R-K Method 4th Order
PDF
No ratings yet
Question10 R-K Method 4th Order
2 pages
Numerical Solution of ODE
PDF
No ratings yet
Numerical Solution of ODE
30 pages
Adobe Scan 20-Feb-2024
PDF
No ratings yet
Adobe Scan 20-Feb-2024
6 pages
12 Runga-Kutta Methods
PDF
No ratings yet
12 Runga-Kutta Methods
2 pages
RK 4 Method
PDF
No ratings yet
RK 4 Method
3 pages