Math 467/667: Homework 1 Solutions - University of Nevada, Reno

3 3 1 1 n=3 ap=- ex=-4 4 11 1 n=4 ap=-- ex=-54 5 In[4]:= Print["The order is ", n] The order is 4 In[5]:= Therefore the method is order 4. (iii) Z 1 0 f(τ)dτ = 2 3f 1 4 − 1 3f 1 2 + 1 6f 3 4 The Mathematica script 1 qmethod = Function[f, 2/3*f[1/4] - 1/3*f[1/2] + 2/3*f[3/4]] 2 intexact = Function[f, Integrate[f[tau], {tau, 0, 1}]] 3 For[n ... ................
................