#5546: [with patch, needs work] jacobian fails for pynac expressions
-----------------------+----------------------------------------------------
Reporter: burcin | Owner: burcin
Type: defect | Status: assigned
Priority: major | Milestone: sage-3.4.2
Component: symbolics | Keywords:
-----------------------+----------------------------------------------------
Changes (by ncalexan):
* cc: robertwb (added)
Comment:
With these two patches applied, you can get some wild things:
{{{
sage: var('x,y,z',ns=1)
(x, y, z)
sage: M = matrix(2,2,[x,y,z,x])
sage: M.base_ring()
New Symbolic Ring
sage: v = vector([x,y])
sage: v.base_ring()
New Symbolic Ring
sage: M * v
Exception exceptions.TypeError: 'mutable matrices are unhashable' in
'sage.modules.free_module_element.FreeModuleElement._cmp_same_ambient_c'
ignored
<ERROR: mutable matrices are unhashable>
(([x y]
[z x])*x, ([x y]
[z x])*y)
sage: v * M
(x^2 + y*z, 2*x*y)
sage: M * v
<ERROR: mutable matrices are unhashable>
(([x y]
[z x])*x, ([x y]
[z x])*y)
sage: v * M * v
2*x*y^2 + (x^2 + y*z)*x
sage: v * (M * v)
/Users/ncalexan/.sage/temp/dhcp_v007_000.mobile.uci.edu/36399/_Users_ncalexan__sage_init_sage_0.py:1:
RuntimeWarning: tp_compare didn't return -1 or -2 for exception
# -*- coding: utf-8 -*-
([x y] + ([x y]
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/5546#comment:2>
Sage <http://sagemath.org/>
Sage - Open Source Mathematical Software: Building the Car Instead of
Reinventing the Wheel
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---