#4713: [with patch, needs work] make an apply_map function for vectors
----------------------------+-----------------------------------------------
Reporter: jason | Owner: jason
Type: defect | Status: assigned
Priority: major | Milestone: sage-3.2.2
Component: linear algebra | Resolution:
Keywords: |
----------------------------+-----------------------------------------------
Changes (by was):
* summary: [with patch, needs review] make an apply_map function for
vectors => [with patch, needs work] make an
apply_map function for vectors
Comment:
You could also do this in the first example:
{{{
sage: m = vector(ZZ, 9, range(9))
sage: k.<a> = GF(9)
sage: m.apply_map(k)
(0, 1, 2, 0, 1, 2, 0, 1, 2)
}}}
I think it would be nice to have a really simple first example, that
requires much less knowledge of "abstract algebra". Maybe the first
example could be for engineers or something?
{{{
sage: m = vector([1,x,sin(x+1)])
sage: m.apply_map(x^2)
(1, x^2, sin(x + 1)^2)
sage: m.apply_map(sin)
(sin(1), sin(x), sin(sin(x + 1)))
}}}
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/4713#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
-~----------~----~----~----~------~----~------~--~---