Loading...

sage-devel@googlegroups.com

[Prev] Thread [Next]  |  [Prev] Date [Next]

[sage-devel] Re: Short script dumps me at the command line Dima Pasechnik Thu Feb 16 21:00:06 2012

In gmane.comp.mathematics.sage.devel, you wrote:
> the following short script dumps me at the command line in Sage 4.8:
>
> M=matrix(2,2,[27, -11, 15, 1])
> G,mu = M.gram_schmidt()
> M2 = matrix(2,3,[27,-11,21,15,1,9])
> G2,mu2 = M2.gram_schmidt()
> float(G2[1].norm() - G[1].norm())  > 0

last line has an unprintable character (after '))').
If I save it (from a news-reader slrn pointed at the corresponding
gmane.org newsgroup)
this line looks as

float(G2[1].norm() - G[1].norm()) =A0> 0

If I save the file from the editor's reply, edit it and load into sSage,
it produces a syntax error

  File "<string>", line 6
     float(G2[_sage_const_1 ].norm() - G[_sage_const_1 ].norm())  >
_sage_const_0
                                                                 ^
SyntaxError: invalid syntax

but it could well be that this character got mangled on its way...

Best,
Dima

-- 
To post to this group, send an email to [EMAIL PROTECTED]
To unsubscribe from this group, send an email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org