On 7/19/07, David Stahl (PAVCO) <[EMAIL PROTECTED]> wrote:
> Hi William,
>
> I am sorry to be a bother but I have spent hours trying to figure out how to
> manipulate individual elements of a matrix.  All I am trying to do is
> subtract an integer from an element of an integer matrix.  Would you please
> give send me an example or a reference?  Thank you.


sage: m = matrix(ZZ,2, range(4))
sage: m[0,0] = m[0,0] - 3
sage: m
[-3  1]
[ 2  3]

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to