[sage-support] Re: Bug converting real numbers to integers?

2008-03-06 Thread Carl Witty
On Mar 6, 2:48 pm, Nikos Apostolakis <[EMAIL PROTECTED]> wrote: > > I can confirm this. I think numbers are rounded up when they are > > printed, which leads to confusion: > > {{{ > > sage: num = RealField(12).random_element(1,9.99)*100 > > sage: num > > 406. > > }}} > > > But num is actually ~40

[sage-support] Re: Reserved words

2008-03-06 Thread Jason Grout
Carl Witty wrote: > On Mar 6, 12:53 pm, Jason Grout <[EMAIL PROTECTED]> wrote: >> As another option, though, how about >> having the S or Sage namespace include all of the global namespace (at >> least the default global namespace), so that S.pi (or Sage.pi) would >> always refer to the sage syste

[sage-support] Re: Bug converting real numbers to integers?

2008-03-06 Thread Nikos Apostolakis
"didier deshommes" <[EMAIL PROTECTED]> writes: > On Thu, Mar 6, 2008 at 5:48 PM, Nikos Apostolakis <[EMAIL PROTECTED]> wrote: >> >> Anyway to get what I expected to get I can do something like >> >> sage: Integer(sage_eval(str(num))*100) >> 318 >> >> but it seems like an ugly hack. Is there

[sage-support] Re: Mixed 32/64 bit .o files under Linux PowerPC

2008-03-06 Thread Sameer
Hi, So, I rebuilt clisp and then maxima built properly. Regarding the sage error, I tried to build gmp-4.2.1 using a gcc wrapper where I eat up the -m64 argument. This wrapper internally calls /usr/bin/gcc. This way, when I invoke: % gcc -m64 -c foo.c it builds a 32 bit object. When I installed

[sage-support] Re: clearing the denominator of a rational polynomial

2008-03-06 Thread Carl Witty
On Mar 6, 11:20 am, David <[EMAIL PROTECTED]> wrote: > I am trying to use the reduce() command on a rational pollynomial. I > first clear the denominator by multiplying by the denominator but when > I use reduce() I get an error. When I print out the polynomial it is > no longer rational but SAG

[sage-support] Re: Reserved words

2008-03-06 Thread William Stein
On Thu, Mar 6, 2008 at 4:15 PM, Carl Witty <[EMAIL PROTECTED]> wrote: > > On Mar 6, 3:46 pm, David Harvey <[EMAIL PROTECTED]> wrote: > > I think the real problem here is that Sage by default has so many > > identifiers in the global namespace. I don't really like having so > > many names there

[sage-support] Re: MAC PC configuration problem.

2008-03-06 Thread William Stein
On Thu, Mar 6, 2008 at 4:19 PM, Yi Qiang <[EMAIL PROTECTED]> wrote: > The problem is that the notebook is never launched to bound to a specific > interface. Could you please file a trac# against this? > > The specific issue is that in twistedconf.tac, we start the server like so: Ah ha! This us

[sage-support] Re: MAC PC configuration problem.

2008-03-06 Thread Yi Qiang
The problem is that the notebook is never launched to bound to a specific interface. Could you please file a trac# against this? The specific issue is that in twistedconf.tac, we start the server like so: strports.service('tls:8000:privateKey=/Users/yqiang/.sage/notebook/private.pem:certKey=/User

[sage-support] Re: Reserved words

2008-03-06 Thread Carl Witty
On Mar 6, 3:46 pm, David Harvey <[EMAIL PROTECTED]> wrote: > I think the real problem here is that Sage by default has so many > identifiers in the global namespace. I don't really like having so > many names there. I think it was a deliberate design decision in > python to keep the global namespa

[sage-support] Re: Reserved words

2008-03-06 Thread David Harvey
On Mar 6, 2008, at 6:14 PM, Hector Villafuerte wrote: >> That one *does* currently give a syntax error, because lambda really >> is a python keyword. But there aren't too many python keywords. Off >> the top of my head: > > Hi David, I'm aware of that behavior currently happening (the syntax

[sage-support] Re: Reserved words

2008-03-06 Thread Carl Witty
On Mar 6, 12:53 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > As another option, though, how about > having the S or Sage namespace include all of the global namespace (at > least the default global namespace), so that S.pi (or Sage.pi) would > always refer to the sage system pi (as opposed to havi

[sage-support] Re: Reserved words

2008-03-06 Thread Hector Villafuerte
On Thu, Mar 6, 2008 at 5:05 PM, David Harvey <[EMAIL PROTECTED]> wrote: > > > On Mar 6, 2008, at 5:56 PM, Hector Villafuerte wrote: ... > > Yep, that's what I meant (reserved words, aka keywords); to expect > > behavior like this: > > > > sage: lambda = 5 > > Syntax Error: > > lambda =

[sage-support] Re: Bug converting real numbers to integers?

2008-03-06 Thread didier deshommes
On Thu, Mar 6, 2008 at 5:48 PM, Nikos Apostolakis <[EMAIL PROTECTED]> wrote: > > "didier deshommes" <[EMAIL PROTECTED]> writes: > > > On Thu, Mar 6, 2008 at 4:22 PM, Nikos Apostolakis <[EMAIL PROTECTED]> > wrote: > >> > >> Hello group, > >> > >> Is the following behavior a bug, or am I mi

[sage-support] Re: Reserved words

2008-03-06 Thread David Harvey
On Mar 6, 2008, at 5:56 PM, Hector Villafuerte wrote: > >> On Thu, Mar 6, 2008 at 12:53 PM, Jason Grout >> <[EMAIL PROTECTED]> wrote: > ... >>> What does "reserved words" mean? Do you mean that we should >>> throw an >>> error when those variables are assigned? I don't think that >>> w

[sage-support] Re: Reserved words

2008-03-06 Thread Hector Villafuerte
> On Thu, Mar 6, 2008 at 12:53 PM, Jason Grout > <[EMAIL PROTECTED]> wrote: ... > > What does "reserved words" mean? Do you mean that we should throw an > > error when those variables are assigned? I don't think that would be > > possible without some deep tinkering in python. Hi Jason

[sage-support] Re: Bug converting real numbers to integers?

2008-03-06 Thread Nikos Apostolakis
"didier deshommes" <[EMAIL PROTECTED]> writes: > On Thu, Mar 6, 2008 at 4:22 PM, Nikos Apostolakis <[EMAIL PROTECTED]> wrote: >> >> Hello group, >> >> Is the following behavior a bug, or am I missing some fundamental >> understanding about how Integer works? >> >> , >> | sage: num = Real

[sage-support] Re: Reserved words

2008-03-06 Thread William Stein
On Thu, Mar 6, 2008 at 12:53 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > Hector Villafuerte wrote: > > Hi, > > this just happened to me (maybe because I'm annoyingly slow today...): > > > > sage: var('t') > > sage: x(t) = sin(2*pi*1000*t) + 1/2*sin(2*pi*2000*t + 3/4*pi) > > > > Exceptio

[sage-support] Re: clearing the denominator of a rational polynomial

2008-03-06 Thread Justin C. Walker
On Mar 6, 2008, at 11:20 AM, David wrote: > > I am trying to use the reduce() command on a rational pollynomial. I > first clear the denominator by multiplying by the denominator but when > I use reduce() I get an error. When I print out the polynomial it is > no longer rational but SAGE doesn

[sage-support] Re: Bug converting real numbers to integers?

2008-03-06 Thread didier deshommes
On Thu, Mar 6, 2008 at 4:22 PM, Nikos Apostolakis <[EMAIL PROTECTED]> wrote: > > Hello group, > > Is the following behavior a bug, or am I missing some fundamental > understanding about how Integer works? > > , > | sage: num = RealField(12).random_element(1,9.99) > | sage: num > | 3.18

[sage-support] Re: clearing the denominator of a rational polynomial

2008-03-06 Thread Martin Albrecht
On Thursday 06 March 2008, David wrote: > I am trying to use the reduce() command on a rational pollynomial. I > first clear the denominator by multiplying by the denominator but when > I use reduce() I get an error. When I print out the polynomial it is > no longer rational but SAGE doesn't lik

[sage-support] Bug converting real numbers to integers?

2008-03-06 Thread Nikos Apostolakis
Hello group, Is the following behavior a bug, or am I missing some fundamental understanding about how Integer works? , | sage: num = RealField(12).random_element(1,9.99) | sage: num | 3.18 | sage: num*100 | 318. | sage: Integer(_) | -

[sage-support] Re: Error related with singular, gap and resultant

2008-03-06 Thread Simon King
Dear David, On Mar 6, 9:47 pm, "David Joyner" <[EMAIL PROTECTED]> wrote: > Just an observation - both Scientific Linux and OpenSUSE are rpm-based. > I wonder if this can be duplicated on a redhat machine. I have no idea what rpm-based means, but i would be surprised if it were caused by my Linux

[sage-support] Re: Reserved words

2008-03-06 Thread Jason Grout
Hector Villafuerte wrote: > Hi, > this just happened to me (maybe because I'm annoyingly slow today...): > > sage: var('t') > sage: x(t) = sin(2*pi*1000*t) + 1/2*sin(2*pi*2000*t + 3/4*pi) > > Exception (click to the left for traceback): > ... > TypeError: unsupported operand parent(s) for '*': '

[sage-support] Re: Error related with singular, gap and resultant

2008-03-06 Thread Simon King
Sorry for coming back on that problem. I re-bootet my computer, and i downloaded the binary sage-2.10.2- linux-64bit-opteron-x86_64-Linux (i hope this is the correct one for my machine). Still, i can reproduce the above error. What can be the reason? It isn't my compiler (because it occurs with

[sage-support] Re: Error related with singular, gap and resultant

2008-03-06 Thread David Joyner
Just an observation - both Scientific Linux and OpenSUSE are rpm-based. I wonder if this can be duplicated on a redhat machine. On Thu, Mar 6, 2008 at 1:35 PM, parombouts <[EMAIL PROTECTED]> wrote: > > > > Simon King wrote: > > Dear William, > > > > On Mar 5, 11:51 pm, "William Stein" <[EMAIL

[sage-support] Reserved words

2008-03-06 Thread Hector Villafuerte
Hi, this just happened to me (maybe because I'm annoyingly slow today...): sage: var('t') sage: x(t) = sin(2*pi*1000*t) + 1/2*sin(2*pi*2000*t + 3/4*pi) Exception (click to the left for traceback): ... TypeError: unsupported operand parent(s) for '*': 'Integer Ring' and '' It took me about 10

[sage-support] Re: Error related with singular, gap and resultant

2008-03-06 Thread parombouts
Simon King wrote: > Dear William, > > On Mar 5, 11:51 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > > OK, I just tried to replicate your problem above on sage.math (64-bit > > linux), > > 32-bit athlon linux, and 32-bit OS X 10.5, and in every case your code above > > works fine -- i.e., not

[sage-support] clearing the denominator of a rational polynomial

2008-03-06 Thread David
I am trying to use the reduce() command on a rational pollynomial. I first clear the denominator by multiplying by the denominator but when I use reduce() I get an error. When I print out the polynomial it is no longer rational but SAGE doesn't like it. I would appriciate any advice. Below is

[sage-support] Re: MAC PC configuration problem.

2008-03-06 Thread Jason Grout
Neal wrote: > First, thanks to everyone for their suggestions. > > But, I'm not quite there yet. > > When I typed (address='192.168.1.103'), Firefox still popped up on my > MAC, > but with the machine address, not localhost. I still could not attach > from the PC. > I thought maybe the local co

[sage-support] Re: MAC PC configuration problem.

2008-03-06 Thread Jason Grout
William Stein wrote: > On Wed, Mar 5, 2008 at 6:31 PM, Jason Grout <[EMAIL PROTECTED]> wrote: >> William Stein wrote: >> > On Wed, Mar 5, 2008 at 7:55 AM, Neal Laurance <[EMAIL PROTECTED]> wrote: >> >> I have just installed SAGE on my MAC book, and it works fine there. But >> >> I would like

[sage-support] Re: MAC PC configuration problem.

2008-03-06 Thread Neal
First, thanks to everyone for their suggestions. But, I'm not quite there yet. When I typed (address='192.168.1.103'), Firefox still popped up on my MAC, but with the machine address, not localhost. I still could not attach from the PC. I thought maybe the local copy of Firefox was getting in t

[sage-support] Re: Mixed 32/64 bit .o files under Linux PowerPC

2008-03-06 Thread mabshoff
On Mar 6, 1:47 am, "William Stein" <[EMAIL PROTECTED]> wrote: > On Wed, Mar 5, 2008 at 4:40 PM, Sameer <[EMAIL PROTECTED]> wrote: > > > William, > > Thanks a lot for your suggestion. I had not set it. Some more > > problems with the compile on powerpc Linux. I get: > > ./lisp.run -on-error

[sage-support] Re: FreeBSD Linux Emulation

2008-03-06 Thread mabshoff
Hi, On Mar 6, 5:31 am, "bryan newbold" <[EMAIL PROTECTED]> wrote: > I've had some luck running the sage-2.10.2-linux-32bit-debian-i686-Linux > binaries under FreeBSD 6.3-RELEASE (manually upgraded) using linux emulation > (linux_base-fc-4_10 = fedora core 4.10 distribution files); basic calculus