Rumus gauss menggunakan C++
#include
#include
#include
main()
{
float xbaru,deltax,xawal,epsilon;
int iterasi;
xawal = 2;
xbaru = (-(pow(xawal,3))/9.0) + ((6.0/9.0)*(pow(xawal,2))) + (4.0/9.0);
printf ("Nilai X Baru = %f",xbaru);
deltax = xbaru-xawal;
printf("\nNilai Delta X = %f",deltax);
epsilon = 0.00001;
iterasi = 0;
(..................................................................)
Untuk Yang lengkapnya silakan Download Di Sini
jika ingin contoh soal yg lain silakan Download Di Sini (Soal ada di atas)
#include
#include
main()
{
float xbaru,deltax,xawal,epsilon;
int iterasi;
xawal = 2;
xbaru = (-(pow(xawal,3))/9.0) + ((6.0/9.0)*(pow(xawal,2))) + (4.0/9.0);
printf ("Nilai X Baru = %f",xbaru);
deltax = xbaru-xawal;
printf("\nNilai Delta X = %f",deltax);
epsilon = 0.00001;
iterasi = 0;
(..................................................................)
Untuk Yang lengkapnya silakan Download Di Sini
Comments
Post a Comment