#4735: Make e^A for A a generic matrix work
-------------------------------+--------------------------------------------
       Reporter:  jason        |         Owner:  burcin  
           Type:  enhancement  |        Status:  new     
       Priority:  minor        |     Milestone:  sage-5.0
      Component:  calculus     |    Resolution:          
       Keywords:               |   Work issues:          
Report Upstream:  N/A          |     Reviewers:          
        Authors:               |     Merged in:          
   Dependencies:               |      Stopgaps:          
-------------------------------+--------------------------------------------

Comment (by kcrisman):

 I'm changing the title to address the actual problem reported.

 Can you think of a solution to the problem that this doesn't work, though?
 {{{
 sage: A = matrix(SR, [[1,2],[3,4]])
 sage: exp(A)
 [-1/22*((sqrt(33) - 11)*e^sqrt(33) - sqrt(33) - 11)*e^(-1/2*sqrt(33) +
 5/2)              2/33*(sqrt(33)*e^sqrt(33) - sqrt(33))*e^(-1/2*sqrt(33) +
 5/2)]
 [             1/11*(sqrt(33)*e^sqrt(33) - sqrt(33))*e^(-1/2*sqrt(33) +
 5/2)  1/22*((sqrt(33) + 11)*e^sqrt(33) - sqrt(33) + 11)*e^(-1/2*sqrt(33) +
 5/2)]
 sage: A.exp()
 [-1/22*((sqrt(33) - 11)*e^sqrt(33) - sqrt(33) - 11)*e^(-1/2*sqrt(33) +
 5/2)              2/33*(sqrt(33)*e^sqrt(33) - sqrt(33))*e^(-1/2*sqrt(33) +
 5/2)]
 [             1/11*(sqrt(33)*e^sqrt(33) - sqrt(33))*e^(-1/2*sqrt(33) +
 5/2)  1/22*((sqrt(33) + 11)*e^sqrt(33) - sqrt(33) + 11)*e^(-1/2*sqrt(33) +
 5/2)]
 sage: e^A
 ---------------------------------------------------------------------------
 TypeError: mutable matrices are unhashable
 }}}
 I get the same problem with entries in `RR`, and the original post noted
 `RDF` is also a problem.

 I wonder if this is more calculus or more linear algebra... maybe a
 different component?

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4735#comment:6>
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