Beruflich Dokumente
Kultur Dokumente
Output:
b.
Please enter your equation Give an equation in x: (4*x-3)^3
1: Trapezoidal Method
2: Simpson 1/3
3: Simpson 3/8
4: Richardson Extrapolation
5: Romberg Integration
Mode selection: 1
h =
Int_sum_1 =
6152
ea =
199.6833976833976833976833976834
c.
a. for no. of intervals = 2
Enter number of intervals for integration: 2
h =
Int_sum_1 =
3080
ea =
49.420849420849420849420849420849
h =
Int_sum_1 =
2312
ea =
12.355212355212355212355212355212
d.
a. Simpson’s 1/3 rule
Enter lower range of integration: -3
h =
Int_sum_1 =
4.101292320000001e+03
ea =
98.453613899613917133085201332583
h =
Int_sum_1 =
4614
ea =
124.26254826254826254826254826255
2. Output:
3. Output:
y =
(2*x + 3/x)^2
1: Trapezoidal Method
2: Simpson 1/3
3: Simpson 3/8
4: Richardson Extrapolation
5: Romberg Integration
Mode selection: 5
h =
0.062500000000000
Order of integration: 4
I_val =
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
ea =
I_val =
26.312500000000000 25.837091836734697 0 0
25.955943877551022 0 0 0
25.864187652937026 0 0 0
25.841060031142970 0 0 0
ea =
0.018400219586222038570255676859233
I_val =
26.312500000000000 25.837091836734697 0 0
25.955943877551022 -8.612363945578233 0 0
25.864187652937026 0 0 0
25.841060031142970 0 0 0
ea =
4.0138001646896661611663148505613
I_val =
26.312500000000000 25.837091836734697 0 0
25.955943877551022 -8.612363945578233 0 0
25.864187652937026 0 0 0
25.841060031142970 0 0 0
ea =
Inf
I_val =
ea =
0.00081130316755665700650251848102812
I_val =
ea =
16.0
I_val =
ea =
0.00057249145797696515802072125822519
4. Output
a. 2 points
Enter lower range of integration: 1
Enter upper range of integration: 2
dx =
0.500000000000000
val =
c0 c1 x0 x1 I
___ ___ ________ ________ ________________
b. 3 points
dx =
0.500000000000000
val =
x0 x1 x2 I
________ ___ ________ ________________
c. 4 points
En ter lower range of integration: 1
dx =
0.500000000000000
val =
x0 x1 x2 x3 I