This document contains the results of calculating integrals using different numerical methods and calculating derivatives using different divided difference methods. It evaluates integrals from 0 to 1 with increasing number of intervals (n=1, 2, 4) using trapezoidal, Simpson's, modified trapezoidal, and Gauss quadrature methods. It also calculates first and second derivatives at x=0.1 and x=0.5 using forward, backward, and central divided difference methods with n=10 and n=100 points.
This document contains the results of calculating integrals using different numerical methods and calculating derivatives using different divided difference methods. It evaluates integrals from 0 to 1 with increasing number of intervals (n=1, 2, 4) using trapezoidal, Simpson's, modified trapezoidal, and Gauss quadrature methods. It also calculates first and second derivatives at x=0.1 and x=0.5 using forward, backward, and central divided difference methods with n=10 and n=100 points.
This document contains the results of calculating integrals using different numerical methods and calculating derivatives using different divided difference methods. It evaluates integrals from 0 to 1 with increasing number of intervals (n=1, 2, 4) using trapezoidal, Simpson's, modified trapezoidal, and Gauss quadrature methods. It also calculates first and second derivatives at x=0.1 and x=0.5 using forward, backward, and central divided difference methods with n=10 and n=100 points.
enter the no N so that we have N+1 points 1 upper limit 1 lower limit 0
value by trapezoidal is 0.420735 integral by analytical method is .223244 value by simpson is 0.280490 value by modified traezoidal is is 0.235465 value by gauss quadrature method is is 0.119856
Integration values for n=2 enter the no N so that we have N+1 points 2 upper limit 1 lower limit 0
value by trapezoidal is 0.270296 integral by analytical method is .223244 value by simpson is 0.220149 value by modified traezoidal is is 0.223978 value by gauss quadrature method is is 0.225316
Integration values for n=4 enter the no N so that we have N+1 points 4 upper limit 1 lower limit 0
value by trapezoidal is 0.234869 integral by analytical method is .223244 value by simpson is 0.223060 value by modified traezoidal is is 0.223290 value by gauss quadrature method is is 0.223244
Differentiation values by backward, forward and central divided difference methods
for ist order & for n=10,x=.1,values are as fdiff=0.069484, bdiff=0.009983, cdiff=0.039734
for ist order & for n=100,x=.1,values are as fdiff=0.032998, bdiff=0.027032, cdiff=0.030015
for ist order & for n=10,x=.5,values are as fdiff=0.834149, bdiff=0.575494, cdiff=0.704822
for ist order & for n=100,x=.5,values are as fdiff=0.711852, bdiff=0.685911, cdiff=0.698881
for 2nd order & for n=10,x=.1,values are as fdiff=1.170161, bdiff=0.000000, cdiff=0.595010
for 2nd order & for n=100,x=.1,values are as fdiff=0.655551, bdiff=0.537557, cdiff=0.596654
for 2nd order & for n=10,x=.5,values are as fdiff=2.898047, bdiff=2.183933, cdiff=2.586546
for 2nd order & for n=100,x=.5,values are as fdiff=2.629701, bdiff=2.557552, cdiff=2.594084