'■ C+ +8uiłder 6 - Project!
I File £dit $earch View Project Run Component To ols ffindow tjdp j j |<None>Jli . **j “> | j o G& * O (9 L# £ (] # Standard j Additional| Win32| System | internet j Diafeat | Win 3.11 Samoie* | Adiv«K i
IT % A J3T g CaJ P<
$
flf romberg.cpp
rombergcpp
void mam()
/iS&.
int n = 21; int i :
double a = 0.0; double b = M_PI__2; double *r{22]; double eps | 0.000000001;
for (7 = 0; i <= n; 1++) rli] = new double[n+l]f* printf('The function 1s ffx> romberg(f, a, b. j§ eps, r
j r°mberg(d0Uble f(double 1 H 1 double 1 J
1nt 1=1. i. k; double h, sum;
prińtf("r(@j i IH9HB
do 1 J *-5-l3lf\n’t rf0][@iy.
h *= 0.5;
>Utn = 0o-
!