#15487: better error message when doing symbolic things with matrices
-----------------------------+------------------------
       Reporter:  kcrisman   |        Owner:
           Type:  defect     |       Status:  new
       Priority:  major      |    Milestone:  sage-6.4
      Component:  symbolics  |   Resolution:
       Keywords:             |    Merged in:
        Authors:             |    Reviewers:
Report Upstream:  N/A        |  Work issues:
         Branch:             |       Commit:
   Dependencies:             |     Stopgaps:
-----------------------------+------------------------
Changes (by kcrisman):

 * component:  linear algebra => symbolics


Old description:

> [https://groups.google.com/forum/#!msg/sage-
> support/lpqzCOja6kg/lWVdmInFa8gJ This sage-support post] points out that
> our error message isn't very helpful when trying to use matrices in
> symbolic expressions.
> {{{
> sage: P=x^2
> sage: P(x=4)
> 16
> sage: M=matrix([(1, -3, -1),(0, 1, 1),(-1, 2, 1)])
> sage: P(x=M)
> <boom that doesn't tell you do use polynomial rings>
> }}}
> Let's improve this.  If we can even get this to work properly (no boom)
> that would be even better.

New description:

 [https://groups.google.com/forum/#!msg/sage-
 support/lpqzCOja6kg/lWVdmInFa8gJ This sage-support post] points out that
 our error message isn't very helpful when trying to use matrices in
 symbolic expressions.
 {{{
 sage: P=x^2
 sage: P(x=4)
 16
 sage: M=matrix([(1, -3, -1),(0, 1, 1),(-1, 2, 1)])
 sage: P(x=M)
 <boom that doesn't tell you do use polynomial rings>
 }}}
 Let's improve this.  If we can even get this to work properly (no boom)
 that would be even better.

 See also [https://groups.google.com/forum/#!topic/sage-edu/0hPo7pl-G5I
 this sage-edu thread] and [http://stackoverflow.com/questions/37303271
 /how-to-define-the-variable-as-a-matrix-in-sage/ this SO.com question].
 There's really no reason not to fix this if we can.  It seems to really be
 a coercion question.

--

--
Ticket URL: <http://trac.sagemath.org/ticket/15487#comment:4>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to