I am running the following Python example from the book "Learning
Python", from Mark Lutz and David Ascher, but Sage is returning a
TypeError after presenting the correct response. Can anyone explain me
why? I've found this very strange.
sage: class Commuter:
: def __init__(self, val):
...
I'm using R matrices to use an R program and then do things with it in
Sage. For some reason Sage doesn't get the "right" answer for
matrices above a certain size.
The first one is right (it gives the space that is in the returned
string) while the second one makes no sense; ZZ='' is what actuall
When I use sage from the command line I get the following error message:
sage: integral(x,x)
'import site' failed; use -v for traceback
Traceback (most recent call last):
File "/home/oscar/sage-4.5.2/local/bin/sage-cleaner", line 21, in
import os, shutil, sys, time, socket
File "/home/
I just tried this and when the field is bigger or equal to 2^16 I got
following error:
2^15: Fine!
K. = GF(2^15, 'a')
V = K.vector_space()
z = (a+1)^13
V(z)
(1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1, 1, 0)
2^16: Error!
K. = GF(2^16, 'a')
V = K.vector_space()
z = (a+1)^13
V(z)
Exception (cli