: print("No solution found after "+str(maxiter)+" iterations")
>
> : *return* *None*
>
> :
>
> sage: *def* *f*(x):
>
> : *return* x^*3*-*9**x+*1*
>
> :
>
> sage: x0 = mybisection(f,*2*,*3*,*10*^-*12*
def Bisection(f, a, b, errorBound):
xm = (a+b)/2
while( f(x)!=0 and (b-a) >= errorBound):
if(f(a)*f(xm)<0):
b = xm
else:
a = xm
xm = (a+b)/2
return xm
def f(x):
return x^3-9*x+1
bisection(f,2,3,0.001)
print("ro
Thank You David
On Tue, Mar 29, 2022 at 3:23 PM David Joyner wrote:
> On Tue, Mar 29, 2022 at 5:33 AM Varun Kumar
> wrote:
> >
> > Someone help me to study the convergence of infinite series by plotting
> the partial sum.
> >
>
> One example is at the end
Someone help me to study the convergence of infinite series by plotting the
partial sum.
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-support+unsubscr..
(core dumped) sage -python "$@"
Regards,
Varun Kumar
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to sage-support+unsubscr...@googl