Changes between Version 3 and Version 5 of Ticket #10111


Ignore:
Timestamp:
02/15/12 20:46:44 (9 years ago)
Author:
fwclarke
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10111

    • Property Status changed from new to positive_review
  • Ticket #10111 – Description

    v3 v5  
    1 The {{{random_prime()}}} function in Sage can take one, two or three arguments. But all the examples shown in the documentation or {{{random_prime}}} use only one argument. The more complex cases are not documented and not tested.
     1The `random_prime()` function in Sage can take one, two or three arguments. But all the examples shown in the documentation or `random_prime` use only one argument. The more complex cases are not documented and not tested.
    22
    3 See also
    4 http://groups.google.com/group/sage-devel/browse_thread/thread/6e8d6f28c915830d?hl=en
     3See also  http://groups.google.com/group/sage-devel/browse_thread/thread/6e8d6f28c915830d?hl=en
    54
    6 These are the examples given. 
     5These are the examples given.
    76
    87{{{
     
    1211        2
    1312}}}
    14 
    15 Although some with good Python knowledge may argue the behavior with 2 or 3 arguments is documented properly, I personally think it could be clearer.
     13Although some with good Python knowledge may argue the behavior with 2 or 3 arguments is documented properly, I personally think it could be clearer.
    1614
    1715For example, I'm told:
     16
    1817{{{
    1918random_prime(123,False)
    2019}}}
    21 
    22 would normally be written as
     20would normally be written as
    2321
    2422{{{
    2523random_prime(123, proof=False)
    2624}}}
     25It would be good with someone with decent Python knowledge to write some examples of using this function with 2 or 3 arguments.
    2726
    28 It would be good with someone with decent Python knowledge to write some examples of using this function with 2 or 3 arguments.
    29 
    30 See also #10112, where it is shown that the function hangs for certain erroneous inputs.
     27See also #10112, where it is shown that the function hangs for certain erroneous inputs.
    3128
    3229It should also be noted that the error message "''n must be greater than lbound ''" is incorrect, and should be changed to "''n must be at least lbound''"
     30
     31Fixed by #10112, please close as duplicate.