GTdan
- 39
- 0
1. The function defined by f(x)=\sin(\pi*x)has zeros at every integer x. Show that when -1<a<0 and 2<b<3, the Bisection method converges to
a. 0, if a+b<2
b. 2, if a+b>2
c. 1, if a+b=2
2. Bisection Method
An interval [a_{n+1},b_{n+1}]containing an approximation to a root of f(x)=0 is constructed from an interval [a_{n},b_{n}] containing the root by first letting
p_{n}=a_{n}+\frac{(b_{n}-a_{n})}{2}
Then set
a_{n+1}=a_{n} and b_{n+1}=p_{n} if f(a_{n})*f(p_{n})<0
and
a_{n+1}=p_{n} and b_{n+1}=b_{n} otherwise.
3. I attempted to randomly choose numbers for a and b to satisfy the relations a+b<2 , -1<a<0, and 2<b<3. I picked a=-0.5 and b=2.5 and went through many iterations of the Bisection method to see if p[n] converged to zero. It didn't. I'm not sure if I am approaching the problem correctly. Can someone give me a good head start with this?
a. 0, if a+b<2
b. 2, if a+b>2
c. 1, if a+b=2
2. Bisection Method
An interval [a_{n+1},b_{n+1}]containing an approximation to a root of f(x)=0 is constructed from an interval [a_{n},b_{n}] containing the root by first letting
p_{n}=a_{n}+\frac{(b_{n}-a_{n})}{2}
Then set
a_{n+1}=a_{n} and b_{n+1}=p_{n} if f(a_{n})*f(p_{n})<0
and
a_{n+1}=p_{n} and b_{n+1}=b_{n} otherwise.
3. I attempted to randomly choose numbers for a and b to satisfy the relations a+b<2 , -1<a<0, and 2<b<3. I picked a=-0.5 and b=2.5 and went through many iterations of the Bisection method to see if p[n] converged to zero. It didn't. I'm not sure if I am approaching the problem correctly. Can someone give me a good head start with this?
Last edited: