Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void kuadratur3titik(double atas,double bawah)
- {
- double a = bawah, b = atas;
- double luasasli,total,error;
- puts("========================================");
- puts("METODE INTEGRAL KUADRATUR GAUSS 3 TITIK");
- puts("========================================");
- total = (0.8888*gu(0))+(0.5555*gu(-(sqrt(0.6))))+(0.5555*gu(sqrt(0.6)));
- printf("\n");
- puts("===================================================");
- luasasli = feksak(b) - feksak(a);
- error = fabs( fabs(total) - fabs(luasasli) );
- puts("");
- printf("Luas dengan Metode Integrasi Gauss 3 Titik = %lf\n", total);
- printf("Luasan eksak = %lf\n", luasasli);
- printf("Error = %lg\n", error);
- puts("");
- puts("===================================================");
- }
Advertisement
Add Comment
Please, Sign In to add comment