Advertisements
#include<iostream>
#include<math.h>
#include<conio.h>
using namespace std;
float Fungsi(float x);
float FungsiTurunan(float x);
main()
{
int n=0;
float x[100];
float e = 0;
cout<<"\t\t\t\tMETODE NEWTON RAPHSON\n";
cout<<"\t\t\t\t=====================\n\n";
cout<<"\t\t\t\tFAJAR NUGRAHA WAHYU\n";
cout<<"\t\t\t\t 11140910000013\n\n";
cout<<"\t\t\t\t 2x^2 + 2x - 3\n";
cout<<"\t\t\t\t==============\n\n";
cout<<"\n";
cout<<"x(n+1) : x(n)-(f(xn)/f'(xn)) \n\n";
cout<<"Masukkan nilai x Awal : "; cin>>x[0];
cout<<"==================================================================\n";
cout<<"! n ! \t xn ! \tf(xn) !\t f’(xn) !\tf(xn)/f’(xn) !\tx(n+1) !\n";
cout<<"==================================================================\n";
do
{
x[n+1] = x[n] - (Fungsi(x[n])/FungsiTurunan(x[n]));
cout<<n<<"\t"<<x[n]<<"\t"<<Fungsi(x[n])<<"\t"<<FungsiTurunan(x[n])<<"\t"<<Fungsi(x[n])/FungsiTurunan(x[n])<<"\t"<<x[n+1]<<"\t\n";
n++;
}while((Fungsi(x[n]))>e);
cout<<n<<"\t"<<x[n]<<"\t"<<Fungsi(x[n])<<"\t"<<FungsiTurunan(x[n])<<"\t"<<Fungsi(x[n])/FungsiTurunan(x[n])<<"\t"<<x[n+1]<<"\t\n";
cout<<"==================================================================\n\n";
cout<<"Jadi, Hasil yang memenuhi dari persamaan tersebut x = "<<x[n];
getch();
}
float Fungsi(float x)
{
return 2*pow(x,2)+pow(x,2)-3;
}
float FungsiTurunan(float x)
{
return 4*x+2*x;
}

YAKIN MAU DOWNLOAD? KLIK DOWNLOAD
Artikel Terkait
Catatan
- [Review Series] Defending Jacob (2020) | Chris Evans' Latest Mystery Series
- Basah - Basahan di IM3 Ooredoo Squad Gathering 2017
- NET. Good People wadah penuh positif
- CARA Membahagiakan Orang Tua
- GOOD TIMES
- TANAH ITU BERNAMA KAMPUNG BARU ASIH
- TINGGAL DI KAMPUNG ORANG
- SEJUTA MAKNA DI KAMPUNG BARU ASIH
- Epilog SATU DESA SERIBU MAKNA
- Contoh Ringkasan Eksekutif KKN UIN Jakarta
- Contoh LEMBAR PENGESAHAN Laporan KKN UIN Jakarta
- LEMBAR TIM PENYUSUN LAPORAN KKN UIN JAKARTA
- LAPORAN KKN UIN JAKARTA MINGGU KELIMA
- LAPORAN INDIVIDU KKN UIN JAKARTA MINGGU KEEMPAT
- Laporan KKN UIN Jakarta Minggu Kedua Fajar
- LAPORAN KKN UIN JAKARTA MINGGU KETIGA
- TATA TERTIB MAKRAB TEKNIK INFORMATIKA
- Contoh surat peminjaman tempat KKN
- Contoh Surat Undangan Pembukaan KKN
- Laporan KKN UIN Jakarta Minggu Kedua
- LAPORAN KKN UIN JAKARTA MINGGU PERTAMA
- FORM PENDAFTARAN KEPENGURUSAN HIMTI
- Metode Pengembangan Sistem
- MATERI STACK
- Contoh Proposal Office Visit
Advertisements
Title : SOURCE CODE METODE NEWTON RAPSHON C++
Description : #include<iostream> #include<math.h> #include<conio.h> using namespace std; float Fungsi(float x); float FungsiTurun...
Description : #include<iostream> #include<math.h> #include<conio.h> using namespace std; float Fungsi(float x); float FungsiTurun...
0 Response to "SOURCE CODE METODE NEWTON RAPSHON C++"
Post a Comment