#20127: test_relation: uncaught NoConvergence
-------------------------------------+-------------------------------------
       Reporter:  behackl            |        Owner:
           Type:  defect             |       Status:  new
       Priority:  major              |    Milestone:  sage-7.1
      Component:  symbolics          |   Resolution:
       Keywords:                     |    Merged in:
        Authors:  Benjamin Hackl     |    Reviewers:
Report Upstream:  N/A                |  Work issues:
         Branch:                     |       Commit:
  u/behackl/symbolic/test_relation/noconvergence|  
4ddf10c1c65acabc21bae40d80b51735cf26be24
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by dkrenn):

 Replying to [comment:5 behackl]:
 > Could you try it with the following expression? This is the original one
 which brought me to this error. If it works (which is rarely; maybe one
 out of 20 times on my laptop here), it takes several seconds.
 > {{{
 > sage: bool(gamma(2 + k*pi*I/log(2)) * zetaderiv(1,
 1+k*pi*I/log(2))/log(2)^10 == 0)
 > }}}

 {{{
 from datetime import datetime
 var('k')

 for _ in range(10):
     tic = datetime.now()
     try:
         result = bool(gamma(2 + k*pi*I/log(2)) * zetaderiv(1,
 1+k*pi*I/log(2))/log(2)^10 == 0)
     except Exception as e:
         print datetime.now()-tic, 'exception:', e
     else:
         print datetime.now()-tic, 'successful:', result
 }}}
 returns
 {{{
 0:00:11.445669 exception: zeta: too much cancellation
 0:00:08.250215 exception: zeta: too much cancellation
 0:00:03.706793 exception: zeta: too much cancellation
 0:00:02.428823 successful: False
 0:00:00.757367 successful: False
 0:00:16.853168 exception: zeta: too much cancellation
 0:00:00.228982 successful: False
 0:00:03.824248 successful: False
 0:00:37.852729 exception: zeta: too much cancellation
 0:00:15.264686 exception: zeta: too much cancellation
 }}}
 Seems like I am lucky to get that much exceptions ;)

--
Ticket URL: <http://trac.sagemath.org/ticket/20127#comment:8>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to