#14965: FloatingPoint exception when multiplying matrix over QQ by vector over 
SR
-------------------------+-------------------------------------------------
    Reporter:  dkrenn    |            Owner:
        Type:  defect    |           Status:  new
    Priority:  major     |        Milestone:
   Component:  linear    |         Keywords:  matrix, vector,
  algebra                |  mutliplication, floatingpoint exception
   Merged in:            |          Authors:
   Reviewers:            |  Report Upstream:  N/A
 Work issues:            |           Branch:
Dependencies:            |         Stopgaps:
-------------------------+-------------------------------------------------
 The input
 {{{
 Z=1/3
 def matrix_entry(s,r):
     result = 0
     result += Z^(s-r)
     return result
 A = matrix([[matrix_entry(s,r) for r in range(1,22)] for s in
 range(1,22)])
 v = vector([(2/3)^s+x*(2/3+4/9*(2/3)^30)^s for s in range(1,22)])
 A*v
 }}}
 gives
 {{{
 Traceback (click to the left of this block for traceback)
 ...
 RuntimeError: Floating point exception
 }}}
 Since the matrix has entries in {{{QQ}}} and the vector entries in the
 symbolic ring, there should not be any floating point operations involved.

 The example starts to work if you take smaller matrices or other entries.

--
Ticket URL: <http://trac.sagemath.org/ticket/14965>
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 http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to