On Mar 14, 2011, at 21:24 , Ben123 wrote: > Thanks for your response. I now do the following: > > MS=MatrixSpace(ComplexField(),2,2) > A=MS(0) > A[1,1]=5 > > I was hoping I wouldn't need to make that many changes to the python > code, but this would seem to indicate Sage and Python aren't 1-to-1.
They definitely are not the same. Among other things, Sage has a preparser that converts "sage" syntax into python syntax. > Unless I'm doing something very wrong, this question can be considered > answered. I don't believe you are doing anything wrong, but the Pros will have to verify that. Justin -- Justin C. Walker, Curmudgeon-At-Large, Director Institute for the Enhancement of the Director's Income -------- The path of least resistance: it's not just for electricity any more. -------- -- 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-support URL: http://www.sagemath.org
