示例#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