#10784: primes can have better functionallity.
-----------------------------+----------------------------------------------
   Reporter:  mderickx       |       Owner:  was     
       Type:  enhancement    |      Status:  new     
   Priority:  major          |   Milestone:  sage-4.7
  Component:  number theory  |    Keywords:          
     Author:                 |    Upstream:  N/A     
   Reviewer:                 |      Merged:          
Work_issues:                 |  
-----------------------------+----------------------------------------------

Comment(by dsm):

 Patch attached to allow support for infinity as upper bound and proof
 option (with same semantics as next_prime's proof option: it's simply
 passed through to next_prime).

 First idea was to avoid casting to ZZ entirely, which would allow
 primes(2, 100/3), but that can lead to some mysterious error messages.
 Current approach simply special-cases infinity as an upper bound --
 allowing -infinity as a lower bound isn't that useful, because unlike the
 case of an infinite upper bound, that can be easily worked around from
 outside the function, and so problems with the bounds are caught at first
 iteration, which seems better.

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/10784#comment:2>
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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.

Reply via email to