Consider the error function erf: (0,0) +R . 2 erf(x) = Valle -alat 2 tat. e We wish to evaluate erf(1) via a composite m
Posted: Thu May 12, 2022 8:39 am
Consider the error function erf: (0,0) +R . 2 erf(x) = Valle -alat 2 tat. e We wish to evaluate erf(1) via a composite method based on the 5-point Newton-Cotes quadrature. Let Th = {Tk, k = 1,2, ...,N} denote a subdivision of the unit interval into subintervals Tk of equal length. By writing a loop in Matlab, or otherwise, find the number of subintervals N required to find an approximation to erf(1) which is exact in double precision (i.e., the value obtained by the composite method should match that produced by Matlab using long format). Enter this value below.