예제 #1
0
 def bisect_fn(s, t):
     rout.start()
     ##                rerr.start()
     res = minpack.bisection(f, x0[0], x0[1], args=(t,) + extrafargs, xtol=xtolval, maxiter=maxnumiter)
     rout.stop()
     ##                warns = rout.stop()
     ##                rerr.stop()
     return res
예제 #2
0
 def bisect_fn(s, t):
     with RedirectStdout(_logfile):
         res = minpack.bisection(f,
                                 x0[0],
                                 x0[1],
                                 args=(t, ) + extrafargs,
                                 xtol=xtolval,
                                 maxiter=maxnumiter)
         return res
예제 #3
0
 def bisect_fn(s, t):
     rout.start()
     ##                rerr.start()
     res = minpack.bisection(f,
                             x0[0],
                             x0[1],
                             args=(t, ) + extrafargs,
                             xtol=xtolval,
                             maxiter=maxnumiter)
     rout.stop()
     ##                warns = rout.stop()
     ##                rerr.stop()
     return res
예제 #4
0
파일: utils.py 프로젝트: LeiDai/pydstool
 def bisect_fn(s, t):
     with RedirectStdout(_logfile):
         res = minpack.bisection(f, x0[0], x0[1], args=(t,)+extrafargs,
                             xtol=xtolval, maxiter=maxnumiter)
         return res