yara

8 Reputation

2 Badges

18 years, 36 days

MaplePrimes Activity


These are questions asked by yara

hi; I'm written program of composite midpoint in this general form: int(f(x),x=a..b)=2*h*(sum(f(x[2i]); h=(b-a)/(2m+2) the function is: f(x)=1/(2+x^4); a=0; b=1; and all the given inside the program and I wretten the program but i have problem , Iwant compare between the approximate vales and the exact value this is the program: (doing in maple9.5)>> > restart; > f:=x->1/(2+x^4): a:=0: b:=1: > EI:=int(f(x),x=a..b): > EI:=evalf(EI); > for k from 1 to 3 do > n:=2^k*10: > h:=(b-a)/(n+2): > m:=n/2: s:=0: end do; > for i from 1 by 2 to n do > x:=a+(i-1)*h: > s:=s+f(x): > I(k):=2*h*s:
Page 1 of 1