#9481: random_element fails for power series over real field, has inaccurate
docstring
-----------------------------------+----------------------------------------
Reporter: niles | Owner: malb
Type: defect | Status: new
Priority: minor | Milestone: sage-4.5
Component: commutative algebra | Keywords: power series, random element
Author: niles | Upstream: N/A
Reviewer: | Merged:
Work_issues: |
-----------------------------------+----------------------------------------
The random_element method of univariate power series does not pass
arguments to the underlying polynomial ring accurately, and the
description of its second argument is inaccurate.
c.f. this [http://groups.google.com/group/sage-
devel/browse_thread/thread/2e4af4234e6bb33f thread] from sage-devel
{{{
sage: SQ = PowerSeriesRing(QQ,'v')
sage: SR = PowerSeriesRing(RR,'v')
sage: SQ.random_element(5,100) # docstring promises coefficients are
uniformly distributed between -100 and 100
-7/3 + 5/8*v + 37/60*v^2 + 33/8*v^3 + 77/89*v^4 + O(v^5)
sage: SR.random_element(5) # broken
Traceback (most recent call last):
...
TypeError: unsupported operand type(s) for -: 'int' and 'NoneType'
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9481>
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.