[sage-support] Re: Bug: running scripts broken

2007-09-04 Thread Jonathan Bober

My memory could be wrong, but I feel that this exact problem has
occurred before. (The problem of running scripts on the command line not
working -- not necessarily the exact same underlying cause for the
problem.)

This kind of basic functionality should probably be tested somewhere
automatically. Maybe a doctect with a line like

sage: os.system('.\sage something_or_other.sage')

might work. Or maybe this would need to be somehow tested outside the
doctest framework. I don't know. Just a thought.

On Tue, 2007-09-04 at 23:09 -0700, William Stein wrote:
> On 9/4/07, Markus Fraczek <[EMAIL PROTECTED]> wrote:
> >
> > Hi,
> >
> > after upgrading to 2.8.3.3 running scripts on command line (./sage 
> > example.sage)
> > doesn't work anymore
> >
> 
> Thanks.  I will post a 2.8.3.4 version that fixes this problem and
> remove 2.8.3.3.   You can wait for that (an hour), or just pull
> in a fix for this one problem by doing:
>sage:  hg_scripts.pull()
> 
> William
> 
> 
> > Best,
> > Marek
> >
> > [EMAIL PROTECTED] ~/temp/sage-2.7.3 $ ./sage
> > --
> > | SAGE Version 2.8.3.3, Release Date: 2007-09-04 |
> > | Type notebook() for the GUI, and license() for information.|
> > --
> >
> > sage: quit
> > Exiting SAGE (CPU time 0m0.00s, Wall time 0m1.61s).
> > [EMAIL PROTECTED] ~/temp/sage-2.7.3 $ ./sage example.sage
> > /home/marek/temp/sage-2.7.3/local/bin/sage-sage: line 686: syntax error near
> > unexpected token `<<<'
> > /home/marek/temp/sage-2.7.3/local/bin/sage-sage: line 686: `<<<
> > /tmp/sage-sage~base.IcHt1Y'
> >
> >
> >
> >
> > >
> >
> 
> 


--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Bug: running scripts broken

2007-09-04 Thread William Stein

On 9/4/07, Markus Fraczek <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> after upgrading to 2.8.3.3 running scripts on command line (./sage 
> example.sage)
> doesn't work anymore
>

Thanks.  I will post a 2.8.3.4 version that fixes this problem and
remove 2.8.3.3.   You can wait for that (an hour), or just pull
in a fix for this one problem by doing:
   sage:  hg_scripts.pull()

William


> Best,
> Marek
>
> [EMAIL PROTECTED] ~/temp/sage-2.7.3 $ ./sage
> --
> | SAGE Version 2.8.3.3, Release Date: 2007-09-04 |
> | Type notebook() for the GUI, and license() for information.|
> --
>
> sage: quit
> Exiting SAGE (CPU time 0m0.00s, Wall time 0m1.61s).
> [EMAIL PROTECTED] ~/temp/sage-2.7.3 $ ./sage example.sage
> /home/marek/temp/sage-2.7.3/local/bin/sage-sage: line 686: syntax error near
> unexpected token `<<<'
> /home/marek/temp/sage-2.7.3/local/bin/sage-sage: line 686: `<<<
> /tmp/sage-sage~base.IcHt1Y'
>
>
>
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Bug: running scripts broken

2007-09-04 Thread Markus Fraczek

Hi,

after upgrading to 2.8.3.3 running scripts on command line (./sage example.sage)
doesn't work anymore

Best,
Marek

[EMAIL PROTECTED] ~/temp/sage-2.7.3 $ ./sage
--
| SAGE Version 2.8.3.3, Release Date: 2007-09-04 |
| Type notebook() for the GUI, and license() for information.|
--

sage: quit
Exiting SAGE (CPU time 0m0.00s, Wall time 0m1.61s).
[EMAIL PROTECTED] ~/temp/sage-2.7.3 $ ./sage example.sage 
/home/marek/temp/sage-2.7.3/local/bin/sage-sage: line 686: syntax error near
unexpected token `<<<'
/home/marek/temp/sage-2.7.3/local/bin/sage-sage: line 686: `<<<
/tmp/sage-sage~base.IcHt1Y'




--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Hyper newbie needs a pointer ...

2007-09-04 Thread Ted Kosan

Gary wrote:

> I see that sage is very rich, and I have a lot to learn, but one thing
> has got be stuck right off the bat.
>...
>I've spent a couple of hours
> over a few days trying to just write text and execute python ...
> without success.
>...
> (BTW ... how does one execute the commands in the examples?  Put the
> cursor where? and press execute?  Usually clicking execute results in
> a little wheel-icon that spins and spins and I eventually get a time-
> out error.  I cannot find basic instructions on how to do things like
> that.)
>
> Can someone give me a "hello, world" description of how to do this:
>...
> PS,  You might consider starting your tutorial with something like
> this rather than a discussion of rings of rational numbers.And
> instructions on how to operate the tutorial.

I think we may have what you are looking for.  Here is the current
version of a "Sage Programming For Newbies" book that is under
development:

http://sage.math.washington.edu/home/tkosan

It is not quite finished yet, but it should contain enough information
to get you started.

You can also join the sage-newbie list ( the link is in the book ) to
ask questions about the book and provide feedback on it :-)

Ted

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Hyper newbie needs a pointer ...

2007-09-04 Thread William Stein

On 9/4/07, gary <[EMAIL PROTECTED]> wrote:
> I'm drawn to the notebook interface.  I've  been guessing that it's
> somewhat like a Mathematica notebook.  If so, great ... I'm looking
> for a notebook kind of thing to use with scipy (etc.).   I write some
> text, execute some python, draw a graph, write more text, etc.
> Is sage notebook supposed to be like that?

It is like that.

>  If so ... I cannot figure
> out how to use it.   If not, then it's not the tool I'm looking for.
> (And you can skip the rest of this post.) I've spent a couple of hours
> over a few days trying to just write text and execute python ...
> without success.
>
> I've downloaded the thing, can run it  (Ubuntu 7.04 btw), point
> firefox at it, and read the tutorials.
> (BTW ... how does one execute the commands in the examples?  Put the
> cursor where? and press execute?  Usually clicking execute results in
> a little wheel-icon that spins and spins and I eventually get a time-
> out error.  I cannot find basic instructions on how to do things like
> that.)

Put the cursor on an input cell and press shift-enter, exactly like
in Mathematica.  If this doesn't work (after say 10 seconds), then
there is a serious problem with your install.



> Can someone give me a "hello, world" description of how to do this:
>
> 
> This is a sage note book.  Here's how to set a variable
>
> >>>  a=1
>
> Now we'll print the variable
>
> >>> print a
> 1
>
> There!  It works!
> 
>
> Thanks,
> gary.
>
> PS,  You might consider starting your tutorial with something like
> this rather than a discussion of rings of rational numbers.And
> instructions on how to operate the tutorial.
>
>
> >
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Hyper newbie needs a pointer ...

2007-09-04 Thread David Joyner

This is a great question for the email list sage-newbie
http://www.sagemath.org/lists.html
It turns out there is a draft of a document which does
what you want. You can ask there for the url of the latest
draft.

++

On 9/4/07, gary <[EMAIL PROTECTED]> wrote:
>
> I see that sage is very rich, and I have a lot to learn, but one thing
> has got be stuck right off the bat.
>
> I'm drawn to the notebook interface.  I've  been guessing that it's
> somewhat like a Mathematica notebook.  If so, great ... I'm looking
> for a notebook kind of thing to use with scipy (etc.).   I write some
> text, execute some python, draw a graph, write more text, etc.
>
> Is sage notebook supposed to be like that?  If so ... I cannot figure
> out how to use it.   If not, then it's not the tool I'm looking for.
> (And you can skip the rest of this post.) I've spent a couple of hours
> over a few days trying to just write text and execute python ...
> without success.
>
> I've downloaded the thing, can run it  (Ubuntu 7.04 btw), point
> firefox at it, and read the tutorials.
> (BTW ... how does one execute the commands in the examples?  Put the
> cursor where? and press execute?  Usually clicking execute results in
> a little wheel-icon that spins and spins and I eventually get a time-
> out error.  I cannot find basic instructions on how to do things like
> that.)
>
> Can someone give me a "hello, world" description of how to do this:
>
> 
> This is a sage note book.  Here's how to set a variable
>
> >>>  a=1
>
> Now we'll print the variable
>
> >>> print a
> 1
>
> There!  It works!
> 
>
> Thanks,
> gary.
>
> PS,  You might consider starting your tutorial with something like
> this rather than a discussion of rings of rational numbers.And
> instructions on how to operate the tutorial.
>
>
> >
>

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Hyper newbie needs a pointer ...

2007-09-04 Thread gary

I see that sage is very rich, and I have a lot to learn, but one thing
has got be stuck right off the bat.

I'm drawn to the notebook interface.  I've  been guessing that it's
somewhat like a Mathematica notebook.  If so, great ... I'm looking
for a notebook kind of thing to use with scipy (etc.).   I write some
text, execute some python, draw a graph, write more text, etc.

Is sage notebook supposed to be like that?  If so ... I cannot figure
out how to use it.   If not, then it's not the tool I'm looking for.
(And you can skip the rest of this post.) I've spent a couple of hours
over a few days trying to just write text and execute python ...
without success.

I've downloaded the thing, can run it  (Ubuntu 7.04 btw), point
firefox at it, and read the tutorials.
(BTW ... how does one execute the commands in the examples?  Put the
cursor where? and press execute?  Usually clicking execute results in
a little wheel-icon that spins and spins and I eventually get a time-
out error.  I cannot find basic instructions on how to do things like
that.)

Can someone give me a "hello, world" description of how to do this:


This is a sage note book.  Here's how to set a variable

>>>  a=1

Now we'll print the variable

>>> print a
1

There!  It works!


Thanks,
gary.

PS,  You might consider starting your tutorial with something like
this rather than a discussion of rings of rational numbers.And
instructions on how to operate the tutorial.


--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] SAGE-2.8.3.3 released!

2007-09-04 Thread William Stein

Hi,

I have released sage-2.8.3.3.  This is mostly a relatively minor bug
fix release on
the way to 2.8.4.  I won't be posting binaries.  "sage -upgrade"
should be relatively
painless fromm 2.8.3.

Some of the contributors and contributions are listed below.

High level changelog:
  * Craig Citro -- fixes to build process (involving c_lib)
  * Craig Citro -- modular forms bugfix (for projection map); added
some number fields functionality
  * Pablo De Napoli (refereed by Martin Albrecht) -- added minpoly for
finite field elements.
  * Robert Bradshaw (and William Stein) -- created a separate java3d spkg
  * Mike Hansen -- Bug fixes
  * Michael Abshoff -- bug fixes
  * William Stein -- bug fixes and lots more doctests.


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://www.williamstein.org

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Changing basis in finite fields

2007-09-04 Thread William Stein

On 9/4/07, David Joyner <[EMAIL PROTECTED]> wrote:
> > I have to define two functions below in order to
> > do this.  If people think something like this would be generally
> > useful, then it could be made "built in" to SAGE:
>
>
> I think it would be nice to have in_terms_of_normal_basis
> (of course you need to change "2" to "p" in general).
> However, I don't understand what to_V does that built-in
> coersion doesn't already do:
>
>
> sage: k. = GF(2^5)
> sage: V = k.vector_space()
> sage: z = (1+a)^17; z
> a^3 + a + 1
> sage: V(z)
> (1, 1, 0, 1, 0)
>
>
> This seems to be the same output you gave for to_V(z),
> or am I missing something?

Hey, good point!

Just change to_V(z) to "V(z)" everywhere.  Here's a new worksheet:

ahmad -- sage-support
system:sage

{{{id=0|
k. = GF(2^5)
}}}

{{{id=1|
k
///
Finite Field in a of size 2^5
}}}

{{{id=2|
V = k.vector_space()
}}}

{{{id=3|
z = (1+a)^17; z
///
a^3 + a + 1
}}}

{{{id=6|
B2 = [(a+1)^(2^i) for i in range(k.degree())]
}}}

{{{id=7|
W = [V(b) for b in B2]
}}}

{{{id=8|
V.span(W).dimension()
///
5
}}}

{{{id=9|
W0 = V.span_of_basis(W)
}}}

{{{id=10|
def in_terms_of_normal_basis(z):
   return W0.coordinates(z)
}}}

{{{id=11|
in_terms_of_normal_basis(a+1)
///
[1, 0, 0, 0, 0]
}}}

{{{id=12|
in_terms_of_normal_basis(1 + a + a^2 + a^3)
///
[1, 0, 0, 1, 0]
}}}

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Changing basis in finite fields

2007-09-04 Thread David Joyner

On 9/3/07, William Stein <[EMAIL PROTECTED]> wrote:
>
> On 9/3/07, Ahmad <[EMAIL PROTECTED]> wrote:
> > I'm new to sage and I don't know even if I'm supposed to post such
> > questions to this group or not. If it is a correct place:
> >
> > Could you please tell me how can I change the basis in finite field
> > representation. As much as know sage represent the finite field
> > extension in:
> >
> > [1, t, t^2, .., t^{n-1}]
> >
> > for t being the root of irreducible polynomial used to extend the
> > field. I need to represent my field in normal basis (I have chosen my
> > irreducible polynomial such that [t, t^2, t^4 .., t^{2^{n-1}}] forms a
> > basis for the extension).
> >
> > If it is not a correct place to ask such questions, please guide me to
> > the correct place.
> >
> > Thank you very much for your attention and devotion of time!
>
> Here is an example session in which I create a finite field,
> find a normal basis, then explicitly represent elements in
> terms of it (by pushing everything over to vector spaces).
>
> I have to define two functions below in order to
> do this.  If people think something like this would be generally
> useful, then it could be made "built in" to SAGE:


I think it would be nice to have in_terms_of_normal_basis
(of course you need to change "2" to "p" in general).
However, I don't understand what to_V does that built-in
coersion doesn't already do:


sage: k. = GF(2^5)
sage: V = k.vector_space()
sage: z = (1+a)^17; z
a^3 + a + 1
sage: V(z)
(1, 1, 0, 1, 0)


This seems to be the same output you gave for to_V(z),
or am I missing something?



>
> sage: k. = GF(2^5)
> sage: k
> Finite Field in a of size 2^5
> sage: V = k.vector_space()
> sage: z = (1+a)^17; z
> a^3 + a + 1
> sage: def to_V(w):
> ...   return V(w.polynomial().padded_list(V.dimension()))
> sage: to_V(z)
> (1, 1, 0, 1, 0)
> sage: B2 = [(a+1)^(2^i) for i in range(k.degree())]
> sage: W = [to_V(b) for b in B2]
> sage: V.span(W).dimension()
> 5
> sage: W0 = V.span_of_basis(W)
> sage: def in_terms_of_normal_basis(z):
> ...   return W0.coordinates(to_V(z))
> sage: in_terms_of_normal_basis(a+1)
> [1, 0, 0, 0, 0]
> sage: in_terms_of_normal_basis(1 + a + a^2 + a^3)
> [1, 0, 0, 1, 0]
>
> 
>
> Or, in SAGE notebook text format:
>
> ahmad -- sage-support
> system:sage
>
> {{{id=0|
> k. = GF(2^5)
> }}}
>
> {{{id=1|
> k
> ///
> Finite Field in a of size 2^5
> }}}
>
> {{{id=2|
> V = k.vector_space()
> }}}
>
> {{{id=3|
> z = (1+a)^17; z
> ///
> a^3 + a + 1
> }}}
>
> {{{id=4|
> def to_V(w):
> return V(w.polynomial().padded_list(V.dimension()))
> }}}
>
> {{{id=5|
> to_V(z)
> ///
> (1, 1, 0, 1, 0)
> }}}
>
> {{{id=6|
> B2 = [(a+1)^(2^i) for i in range(k.degree())]
> }}}
>
> {{{id=7|
> W = [to_V(b) for b in B2]
> }}}
>
> {{{id=8|
> V.span(W).dimension()
> ///
> 5
> }}}
>
> {{{id=9|
> W0 = V.span_of_basis(W)
> }}}
>
> {{{id=10|
> def in_terms_of_normal_basis(z):
> return W0.coordinates(to_V(z))
> }}}
>
> {{{id=11|
> in_terms_of_normal_basis(a+1)
> ///
> [1, 0, 0, 0, 0]
> }}}
>
> {{{id=12|
> in_terms_of_normal_basis(1 + a + a^2 + a^3)
> ///
> [1, 0, 0, 1, 0]
> }}}
> \
>
> >
>

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Changing basis in finite fields

2007-09-04 Thread William Stein

On 9/4/07, Ahmad <[EMAIL PROTECTED]> wrote:
>
> Thank you very much! These were surprisingly fast replies!

At sagemath.com we aim to please. :-)

> I tried to
> run william's code, but appearently my version of sage does not
> understand padded_list property:
> z.polynomial().padded_list(5)

Yes, that's a function we added fairly recently.

> sage: z.polynomial().padded_list(5)
> ---
> Traceback (most recent call
> last)
>
> /home/amadi/Programmes/Sage/sage-2.6.linux32bit-i686-Linux/ console> in ()
>
> : 'Polynomial_dense_mod_p' object
> has no attribute 'padded_list'
>
>
>  I'm writing it while I'm downloading Sage again.

William

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Changing basis in finite fields

2007-09-04 Thread Ahmad

Thank you very much! These were surprisingly fast replies! I tried to
run william's code, but appearently my version of sage does not
understand padded_list property:
z.polynomial().padded_list(5)

sage: z.polynomial().padded_list(5)
---
Traceback (most recent call
last)

/home/amadi/Programmes/Sage/sage-2.6.linux32bit-i686-Linux/ in ()

: 'Polynomial_dense_mod_p' object
has no attribute 'padded_list'


 I'm writing it while I'm downloading Sage again.

On Sep 3, 4:29 pm, "William Stein" <[EMAIL PROTECTED]> wrote:
> On 9/3/07, Ahmad <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm new to sage and I don't know even if I'm supposed to post such
> > questions to this group or not. If it is a correct place:
>
> > Could you please tell me how can I change the basis in finite field
> > representation. As much as know sage represent the finite field
> > extension in:
>
> > [1, t, t^2, .., t^{n-1}]
>
> > for t being the root of irreducible polynomial used to extend the
> > field. I need to represent my field in normal basis (I have chosen my
> > irreducible polynomial such that [t, t^2, t^4 .., t^{2^{n-1}}] forms a
> > basis for the extension).
>
> > If it is not a correct place to ask such questions, please guide me to
> > the correct place.
>
> > Thank you very much for your attention and devotion of time!
>
> Here is an example session in which I create a finite field,
> find a normal basis, then explicitly represent elements in
> terms of it (by pushing everything over to vector spaces).
>
> I have to define two functions below in order to
> do this.  If people think something like this would be generally
> useful, then it could be made "built in" to SAGE:
>
> sage: k. = GF(2^5)
> sage: k
> Finite Field in a of size 2^5
> sage: V = k.vector_space()
> sage: z = (1+a)^17; z
> a^3 + a + 1
> sage: def to_V(w):
> ...   return V(w.polynomial().padded_list(V.dimension()))
> sage: to_V(z)
> (1, 1, 0, 1, 0)
> sage: B2 = [(a+1)^(2^i) for i in range(k.degree())]
> sage: W = [to_V(b) for b in B2]
> sage: V.span(W).dimension()
> 5
> sage: W0 = V.span_of_basis(W)
> sage: def in_terms_of_normal_basis(z):
> ...   return W0.coordinates(to_V(z))
> sage: in_terms_of_normal_basis(a+1)
> [1, 0, 0, 0, 0]
> sage: in_terms_of_normal_basis(1 + a + a^2 + a^3)
> [1, 0, 0, 1, 0]
>
> 
>
> Or, in SAGE notebook text format:
>
> ahmad -- sage-support
> system:sage
>
> {{{id=0|
> k. = GF(2^5)
>
> }}}
>
> {{{id=1|
> k
> ///
> Finite Field in a of size 2^5
>
> }}}
>
> {{{id=2|
> V = k.vector_space()
>
> }}}
>
> {{{id=3|
> z = (1+a)^17; z
> ///
> a^3 + a + 1
>
> }}}
>
> {{{id=4|
> def to_V(w):
> return V(w.polynomial().padded_list(V.dimension()))
>
> }}}
>
> {{{id=5|
> to_V(z)
> ///
> (1, 1, 0, 1, 0)
>
> }}}
>
> {{{id=6|
> B2 = [(a+1)^(2^i) for i in range(k.degree())]
>
> }}}
>
> {{{id=7|
> W = [to_V(b) for b in B2]
>
> }}}
>
> {{{id=8|
> V.span(W).dimension()
> ///
> 5
>
> }}}
>
> {{{id=9|
> W0 = V.span_of_basis(W)
>
> }}}
>
> {{{id=10|
> def in_terms_of_normal_basis(z):
> return W0.coordinates(to_V(z))
>
> }}}
>
> {{{id=11|
> in_terms_of_normal_basis(a+1)
> ///
> [1, 0, 0, 0, 0]
>
> }}}
>
> {{{id=12|
> in_terms_of_normal_basis(1 + a + a^2 + a^3)
> ///
> [1, 0, 0, 1, 0]}}}
>
> \


--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Bug: big complex numbers

2007-09-04 Thread mabshoff



On Sep 4, 5:10 pm, Markus Fraczek <[EMAIL PROTECTED]> wrote:
> Hi,
>
> it seems there is a bug in the implementation of complex numbers. Defining a
> number with imaginary part bigger or equal 1E8 gets an exception error.
>
> Best,
> Marek
>


Hello Marek, (or is it Markus?)

thanks for the report, it is a bug and a ticket has been opened (see
http://sagetrac.org/sage_trac/ticket/587). It is tagged to be fixed
for 2.8.4. which should be out in about a week.

Let us know if you find any other issue,

Michael


--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Notebook servers down?

2007-09-04 Thread kcrisman

Oh, are they just subservers of sage.math?  I wasn't aware of that - I
know that one is often overburdened.  Perhaps I should try again
tomorrow.

On Sep 4, 12:20 pm, "Timothy Clemans" <[EMAIL PROTECTED]>
wrote:
> Sage.math should be back up today.
>
> On 9/4/07, kcrisman <[EMAIL PROTECTED]> wrote:
>
>
>
> > I cannot link to either sagenb.com or .org right now, and if possible
> > I'd like confirmation that they are down. I assume that I just missed
> > a post somewhere along the line about this, presumably having to do
> > with the new notebook server setup, but in case this is in fact a
> > problem on my local network I would appreciate any kind soul
> > confirming this for me.
>
> > If anyone has info on when they would be back up, I could use that as
> > well.


--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Re: Notebook servers down?

2007-09-04 Thread Timothy Clemans

Sage.math should be back up today.

On 9/4/07, kcrisman <[EMAIL PROTECTED]> wrote:
>
> I cannot link to either sagenb.com or .org right now, and if possible
> I'd like confirmation that they are down. I assume that I just missed
> a post somewhere along the line about this, presumably having to do
> with the new notebook server setup, but in case this is in fact a
> problem on my local network I would appreciate any kind soul
> confirming this for me.
>
> If anyone has info on when they would be back up, I could use that as
> well.
>
>
> >
>

--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Notebook servers down?

2007-09-04 Thread kcrisman

I cannot link to either sagenb.com or .org right now, and if possible
I'd like confirmation that they are down. I assume that I just missed
a post somewhere along the line about this, presumably having to do
with the new notebook server setup, but in case this is in fact a
problem on my local network I would appreciate any kind soul
confirming this for me.

If anyone has info on when they would be back up, I could use that as
well.


--~--~-~--~~~---~--~~
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/
-~--~~~~--~~--~--~---



[sage-support] Bug: big complex numbers

2007-09-04 Thread Markus Fraczek

Hi,

it seems there is a bug in the implementation of complex numbers. Defining a
number with imaginary part bigger or equal 1E8 gets an exception error.

Best,
Marek

--
| SAGE Version 2.8.3, Release Date: 2007-08-31   |
| Type notebook() for the GUI, and license() for information.|
--

sage: x=1E8*I
sage: x
---
 Traceback (most recent call last)

/home/marek/temp/sage-2.8.3/ in ()

/home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/IPython/Prompts.py
in __call__(self, arg)
521 
522 # and now call a possibly user-defined print mechanism
--> 523 manipulated_val = self.display(arg)
524 
525 # user display hooks can change the variable to be stored
in

/home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/IPython/Prompts.py
in _display(self, arg)
545 """
546 
--> 547 return self.shell.hooks.result_display(arg)
548 
549 # Assign the default display method:

/home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/IPython/hooks.py
in __call__(self, *args, **kw)
132 #print "prio",prio,"cmd",cmd #dbg
133 try:
--> 134 ret = cmd(*args, **kw)
135 return ret
136 except ipapi.TryNext, exc:

/home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/IPython/hooks.py
in result_display(self, arg)
160 
161 if self.rc.pprint:
--> 162 out = pformat(arg)
163 if '\n' in out:
164 # So that multi-line strings line up with the left column
of

/home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in pformat(self,
object)
109 def pformat(self, object):
110 sio = _StringIO()
--> 111 self._format(object, sio, 0, 0, {}, 0)
112 return sio.getvalue()
113 

/home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in _format(self,
object, stream, indent, allowance, context, level)
127 self._readable = False
128 return
--> 129 rep = self._repr(object, context, level - 1)
130 typ = _type(object)
131 sepLines = _len(rep) > (self._width - 1 - indent - allowance)

/home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in _repr(self,
object, context, level)
193 def _repr(self, object, context, level):
194 repr, readable, recursive = self.format(object,
context.copy(),
--> 195 self._depth, level)
196 if not readable:
197 self._readable = False

/home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in format(self,
object, context, maxlevels, level)
205 and whether the object represents a recursive construct.
206 """
--> 207 return _safe_repr(object, context, maxlevels, level)
208 
209 

/home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in
_safe_repr(object, context, maxlevels, level)
290 return format % _commajoin(components), readable, recursive
291 
--> 292 rep = repr(object)
293 return rep, (rep and not rep.startswith('<')), False
294 

/home/marek/temp/sage-2.8.3/sage_object.pyx in
sage_object.SageObject.__repr__()

/home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/sage/calculus/calculus.py
in _repr_(self, simplify)
   2863 return self._simp._repr_(simplify=False)
   2864 else:
-> 2865 return self.simplify()._repr_(simplify=False)
   2866 
   2867 ops = self._operands

/home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/sage/calculus/calculus.py
in simplify(self)
   2018 return self._simp
   2019 except AttributeError:
-> 2020 S =
evaled_symbolic_expression_from_maxima_string(self._maxima_init_())
   2021 S._simp = S
   2022 self._simp = S

/home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/sage/calculus/calculus.py
in evaled_symbolic_expression_from_maxima_string(x)
   4972 
   4973 def evaled_symbolic_expression_from_maxima_string(x):
-> 4974 return symbolic_expression_from_maxima_string(maxima.eval(x))
   4975 
   4976 

/home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/sage/calculus/calculus.py
in symbolic_expression_from_maxima_string(x, equals_sub, maxima)
   4946 while True:
   4947 try:
-> 4948 w = sage_eval(s, syms)
   4949 except NameError, msg:
   4950 if msg == last_msg:

/home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/sage/misc/sage_eval.py
in sage_eval(source, locals)
108 p = preparse(source)
   

[sage-support] Re: Bug: big complex numbers

2007-09-04 Thread William Stein

Markus,

Thanks for this bug report, which I've made
   http://trac.sagemath.org/sage_trac/ticket/587
This will be great fodder for our bug squash even this Thursday
at 10am!

 -- William

On 9/4/07, Markus Fraczek <[EMAIL PROTECTED]> wrote:
> Hi,
>
> it seems there is a bug in the implementation of complex numbers. Defining a
> number with imaginary part bigger or equal 1E8 gets an exception error.
>
> Best,
> Marek
>
> --
> | SAGE Version 2.8.3, Release Date: 2007-08-31   |
> | Type notebook() for the GUI, and license() for information.|
> --
>
> sage: x=1E8*I
> sage: x
> ---
>  Traceback (most recent call last)
>
> /home/marek/temp/sage-2.8.3/ in ()
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/IPython/Prompts.py
> in __call__(self, arg)
> 521
> 522 # and now call a possibly user-defined print mechanism
> --> 523 manipulated_val = self.display(arg)
> 524
> 525 # user display hooks can change the variable to be stored
> in
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/IPython/Prompts.py
> in _display(self, arg)
> 545 """
> 546
> --> 547 return self.shell.hooks.result_display(arg)
> 548
> 549 # Assign the default display method:
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/IPython/hooks.py
> in __call__(self, *args, **kw)
> 132 #print "prio",prio,"cmd",cmd #dbg
> 133 try:
> --> 134 ret = cmd(*args, **kw)
> 135 return ret
> 136 except ipapi.TryNext, exc:
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/IPython/hooks.py
> in result_display(self, arg)
> 160
> 161 if self.rc.pprint:
> --> 162 out = pformat(arg)
> 163 if '\n' in out:
> 164 # So that multi-line strings line up with the left column
> of
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in pformat(self,
> object)
> 109 def pformat(self, object):
> 110 sio = _StringIO()
> --> 111 self._format(object, sio, 0, 0, {}, 0)
> 112 return sio.getvalue()
> 113
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in _format(self,
> object, stream, indent, allowance, context, level)
> 127 self._readable = False
> 128 return
> --> 129 rep = self._repr(object, context, level - 1)
> 130 typ = _type(object)
> 131 sepLines = _len(rep) > (self._width - 1 - indent - allowance)
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in _repr(self,
> object, context, level)
> 193 def _repr(self, object, context, level):
> 194 repr, readable, recursive = self.format(object,
> context.copy(),
> --> 195 self._depth, level)
> 196 if not readable:
> 197 self._readable = False
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in format(self,
> object, context, maxlevels, level)
> 205 and whether the object represents a recursive construct.
> 206 """
> --> 207 return _safe_repr(object, context, maxlevels, level)
> 208
> 209
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/pprint.py in
> _safe_repr(object, context, maxlevels, level)
> 290 return format % _commajoin(components), readable, recursive
> 291
> --> 292 rep = repr(object)
> 293 return rep, (rep and not rep.startswith('<')), False
> 294
>
> /home/marek/temp/sage-2.8.3/sage_object.pyx in
> sage_object.SageObject.__repr__()
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/sage/calculus/calculus.py
> in _repr_(self, simplify)
>2863 return self._simp._repr_(simplify=False)
>2864 else:
> -> 2865 return self.simplify()._repr_(simplify=False)
>2866
>2867 ops = self._operands
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/sage/calculus/calculus.py
> in simplify(self)
>2018 return self._simp
>2019 except AttributeError:
> -> 2020 S =
> evaled_symbolic_expression_from_maxima_string(self._maxima_init_())
>2021 S._simp = S
>2022 self._simp = S
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/site-packages/sage/calculus/calculus.py
> in evaled_symbolic_expression_from_maxima_string(x)
>4972
>4973 def evaled_symbolic_expression_from_maxima_string(x):
> -> 4974 return symbolic_expression_from_maxima_string(maxima.eval(x))
>4975
>4976
>
> /home/marek/temp/sage-2.8.3/local/lib/python2.5/si