Disusun oleh :
RIZKY RAMADHAN
21507334056
D4 TEKNIK ELEKTRONIKA
JURUSAN PENDIDIKAN TEKNIK ELEKTRONIKA DAN INFORMATIKA
FAKULTAS TEKNIK
UNIVERSITAS NEGERI YOGYAKARTA
2022
I. Flowchart
#include <iostream>
#include <iomanip>
#include <math.h>
cout << "n" <<setw(15) << "x" << setw(15)<< "y" <<setw(16) << "z=y'" <<
endl;
for(i=0; i <=n; i++)
{
y = y0 + h * z0;
z = z0 + h * (1-(2*x0*y0)-(3*z0));
y0=y;
z0=z;
x0 = x0+h;
}
return 0;
}
2.2 Listing Program Differensial Tingkat 2 Metode Runge Kutta 2
#include<iostream>
#include<iomanip>
#include<math.h>
cout << "n" <<setw(15) << "x" << setw(15)<< "k1" <<setw(16) << "k2"
<<setw(16) <<"l1" <<setw(16) << "l2" << setw(16) << "y" << setw(16)
<<"z=y'" <<endl;
y0=y;
z0=z;
x0 = x0+h;
return 0;
}
#include <iostream>
#include <iomanip>
#include <math.h>
y0=y;
z0=z;
x0 = x0+h;
}
return 0;
}
#include<iostream>
#include<iomanip>
#include<math.h>
y0=y;
z0=z;
x0 = x0+h;
}
return 0;
}