id summary reporter owner description type status priority milestone component resolution keywords cc merged author reviewer upstream work_issues branch commit dependencies stopgaps
11725 Generate random elements of the algebraic field rbeezer AlexGhitza "Random elements of QQbar default to the method implemented for the integers. This patch creates algebraic numbers via roots of random polynomials with integer coefficients.
Implementation notes:
1. Degree 2 is the default so that some complex numbers are generated.
1. Might create constant polynomials, so a monic term (of random degree) may be added.
1. Could be some efficiencies to be gained by not creating all the roots and choosing just one, but this should be a good start.
1. Real goal was random vectors over `QQbar`. A doctest demonstrates how control of the integer coefficients can be passed from `random_vector()` to the `QQbar.random_element()` to `ZZ.random_element()`.
----
'''Apply'''
1. [attachment:trac_11725-random-algebraic-numbers3.patch]
1. [attachment:trac_11725-fix_doctest_error.reviewer.patch]
to the Sage library.
" enhancement closed minor sage-4.7.2 algebra fixed random, QQbar, sd32 spice sage-4.7.2.alpha3 Rob Beezer Simon Spicer, Leif Leonhardy N/A