Re: [sage-support] Error while finding a solution of the non linear equation by bisection method using loop in SageCellServer

2022-08-29 Thread Varun Kumar
: 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*

[sage-support] Error while finding a solution of the non linear equation by bisection method using loop in SageCellServer

2022-08-28 Thread Varun Kumar
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

Re: [sage-support] Convergence of infinite series

2022-03-29 Thread Varun Kumar
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

[sage-support] Convergence of infinite series

2022-03-29 Thread Varun Kumar
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..

[sage-support] Bug

2022-03-04 Thread Varun Kumar
(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