Hi Jason!
On 22 Aug., 11:15, Jason Grout wrote:
> Simon King wrote:
[...]
> Of course, you'd probably do repr(M) instead, which is more standard
> Python. [...]
repr(M) returns a string, but doesn't print it. So, in order to
display repr(M) inside a function, you'd do
print repr(M)
which is no
Simon King wrote:
> Hi Jason,
>
> On 22 Aug., 04:49, Jason Grout wrote:
>> Robert Bradshaw wrote:
> [...]
>>> One problem with this is that then one can't do "print M" and get what one
>>> expects from a non-terminal line (e.g. inside a function, or anything but
>>> the last line of a notebook c
Hi Jason,
On 22 Aug., 04:49, Jason Grout wrote:
> Robert Bradshaw wrote:
[...]
> > One problem with this is that then one can't do "print M" and get what one
> > expects from a non-terminal line (e.g. inside a function, or anything but
> > the last line of a notebook cell).
>
> Can you elaborate
Robert Bradshaw wrote:
> On Fri, 21 Aug 2009, Simon King wrote:
>
>> On 22 Aug., 00:57, William Stein wrote:
>>> On Fri, Aug 21, 2009 at 3:18 PM, Simon King wrote:
>> [...]
sage: print M.str()
but there might be nicer (and more intuitive!) ways.
>>> I think that is the only way. I c
This is not as nice, but I have this problem a lot, and just do
sage: M.rows()
which at least lets me look at the matrix, if that's all you want.
However, the suggestions above are great for a "real" solution.
- kcrisman
--~--~-~--~~~---~--~~
To post to this group,
On Fri, Aug 21, 2009 at 5:34 PM, Robert Bradshaw <
rober...@math.washington.edu> wrote:
> On Fri, 21 Aug 2009, Simon King wrote:
>
> >
> > On 22 Aug., 00:57, William Stein wrote:
> >> On Fri, Aug 21, 2009 at 3:18 PM, Simon King
> wrote:
> > [...]
> >>> sage: print M.str()
> >>> but there might
On Fri, 21 Aug 2009, Simon King wrote:
>
> On 22 Aug., 00:57, William Stein wrote:
>> On Fri, Aug 21, 2009 at 3:18 PM, Simon King wrote:
> [...]
>>> sage: print M.str()
>>> but there might be nicer (and more intuitive!) ways.
>>
>> I think that is the only way. I can't think of any nicer way.
On 22 Aug., 00:57, William Stein wrote:
> On Fri, Aug 21, 2009 at 3:18 PM, Simon King wrote:
[...]
> > sage: print M.str()
> > but there might be nicer (and more intuitive!) ways.
>
> I think that is the only way. I can't think of any nicer way. Any idea
> what it *should* be?
sage: M
29 x 2
On Fri, Aug 21, 2009 at 3:18 PM, Simon King wrote:
>
> On 22 Aug., 00:02, amps wrote:
> > I have a program that outputs a matrix for certain values of n. for
> > n=5 it works fine but for n=6 it just outputs
> >
> > 29 x 29 dense matrix over Integer Ring
> >
> > how can I force sage to output t
On 22 Aug., 00:02, amps wrote:
> I have a program that outputs a matrix for certain values of n. for
> n=5 it works fine but for n=6 it just outputs
>
> 29 x 29 dense matrix over Integer Ring
>
> how can I force sage to output the actual matrix?
Perhaps
sage: M = random_matrix(ZZ,29,29)
sag
10 matches
Mail list logo