[sage-support] Re: multiply a list by a constant

2008-10-21 Thread pong
Yes, Sage 3.1.2 fixes the problem. It looks like Marshall's method of multiplying a list of numbers with a constant is much faster then a for loop. I wrote two list tests: def test1(): for k in range(10^3): v=[2*random() for j in range(10)] else: pass def test2():

[sage-support] Test failure for r.py

2008-10-21 Thread Matthias Meulien
Hello Folks! Could you help to debug the failure of the following test? sage -t devel/sage/sage/interfaces/r.py Sage was compiled from source (3.1.3) with export MAKE="make - j8" (machine has 8 processors and run RedHat Enterprise Linux 5, 64-bit version). I've upgraded to 3.1.4, and g

[sage-support] How do I start up Sage in the Web Browser?

2008-10-21 Thread Christopher
Hi. I saw the ad for your program and I decided to download it. At the notebook page, I was told to go, in my browser, to http://localhost : 8000. Firefox constantly tells me that the URL can't be found. How do I access the program? The Program version: 3.1.2 OS: Windows Vista Home Premium 32-bit

[sage-support] Re: How do I start up Sage in the Web Browser?

2008-10-21 Thread Jason Grout
Christopher wrote: > Hi. I saw the ad for your program and I decided to download it. At the > notebook page, I was told to go, in my browser, to http://localhost : > 8000. Firefox constantly tells me that the URL can't be found. How do > I access the program? The > Program version: 3.1.2 > OS: Win

[sage-support] again problem with plotting

2008-10-21 Thread Martin Rubey
As advised, I removed the broken installation I obtained via sage -upgrade and installed sage 3.1.2. Plotting worked nicely, until roughly 5 minutes ago. Now I get: --- [EMAIL PROTECTED]:~$ sage -

[sage-support] Re: again problem with plotting

2008-10-21 Thread William Stein
On 21 Oct 2008 18:57:12 +0200, Martin Rubey <[EMAIL PROTECTED]> wrote: > > As advised, I removed the broken installation I obtained via sage -upgrade > and > installed sage 3.1.2. > > Plotting worked nicely, until roughly 5 minutes ago. Now I get: > ---

[sage-support] Re: again problem with plotting

2008-10-21 Thread Martin Rubey
"William Stein" <[EMAIL PROTECTED]> writes: > On 21 Oct 2008 18:57:12 +0200, Martin Rubey <[EMAIL PROTECTED]> wrote: > > > > As advised, I removed the broken installation I obtained via sage -upgrade > > and > > installed sage 3.1.2. > > > > Plotting worked nicely, until roughly 5 minutes ago. N

[sage-support] Re: again problem with plotting

2008-10-21 Thread William Stein
On Tue, Oct 21, 2008 at 12:47 PM, Martin Rubey <[EMAIL PROTECTED]> wrote: > > "William Stein" <[EMAIL PROTECTED]> writes: > >> On 21 Oct 2008 18:57:12 +0200, Martin Rubey <[EMAIL PROTECTED]> wrote: >> > >> > As advised, I removed the broken installation I obtained via sage -upgrade >> > and >> > i

[sage-support] Re: again problem with plotting

2008-10-21 Thread Martin Rubey
"William Stein" <[EMAIL PROTECTED]> writes: > Please paste the output of > >cat /proc/cpuinfo > > into an email response. [EMAIL PROTECTED]:/tmp$ cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 11 model name : Mobile Intel

[sage-support] Re: again problem with plotting

2008-10-21 Thread William Stein
On Tue, Oct 21, 2008 at 1:11 PM, Martin Rubey <[EMAIL PROTECTED]> wrote: > > "William Stein" <[EMAIL PROTECTED]> writes: > >> Please paste the output of >> >>cat /proc/cpuinfo >> >> into an email response. > > [EMAIL PROTECTED]:/tmp$ cat /proc/cpuinfo > processor : 0 > vendor_id :

[sage-support] Re: again problem with plotting

2008-10-21 Thread Martin Rubey
"William Stein" <[EMAIL PROTECTED]> writes: > > Thanks. Here's are the flags for the cpu where the binary was built: > > flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge > mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm > constant_tsc up pni ds_cpl ssse3 cx1

[sage-support] Re: again problem with plotting

2008-10-21 Thread Jason Grout
Martin Rubey wrote: > "William Stein" <[EMAIL PROTECTED]> writes: > >> Thanks. Here's are the flags for the cpu where the binary was built: >> >> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge >> mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss nx lm >> constant_ts

[sage-support] Re: again problem with plotting

2008-10-21 Thread Jason Grout
William Stein wrote: > On Tue, Oct 21, 2008 at 1:11 PM, Martin Rubey <[EMAIL PROTECTED]> wrote: >> "William Stein" <[EMAIL PROTECTED]> writes: >> >>> Please paste the output of >>> >>>cat /proc/cpuinfo >>> >>> into an email response. >> [EMAIL PROTECTED]:/tmp$ cat /proc/cpuinfo >> processor

[sage-support] Re: again problem with plotting

2008-10-21 Thread mabshoff
On Oct 21, 2:14 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > William Stein wrote: > > When I have Pentium M binaries, you'll be set to use those, and this > > will be soon, given my new hardware. > > Wow, what sort of "new" hardware are you getting that are Pentium M's? It isn't new, it is a

[sage-support] Re: How do I start up Sage in the Web Browser?

2008-10-21 Thread Timothy Clemans
With VMWare at least on Windows there's a special ip address one has to use. On Tue, Oct 21, 2008 at 1:03 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > Christopher wrote: >> Hi. I saw the ad for your program and I decided to download it. At the >> notebook page, I was told to go, in my browser,

[sage-support] Re: multiply a list by a constant

2008-10-21 Thread Dan Drake
On Tue, 21 Oct 2008 at 07:50AM -0700, pong wrote: > I wrote two list tests: > > def test1(): > for k in range(10^3): > v=[2*random() for j in range(10)] > else: pass > > def test2(): >for k in range(10^3): > v=list(2*vector([random() for j in range(10)

[sage-support] Re: again problem with plotting

2008-10-21 Thread William Stein
On Tue, Oct 21, 2008 at 3:14 PM, mabshoff <[EMAIL PROTECTED]> wrote: > > > > On Oct 21, 2:14 pm, Jason Grout <[EMAIL PROTECTED]> wrote: >> William Stein wrote: > > > >> > When I have Pentium M binaries, you'll be set to use those, and this >> > will be soon, given my new hardware. >> >> Wow, what

[sage-support] Re: multiply a list by a constant

2008-10-21 Thread William Stein
On Tue, Oct 21, 2008 at 4:09 PM, Dan Drake <[EMAIL PROTECTED]> wrote: > On Tue, 21 Oct 2008 at 07:50AM -0700, pong wrote: >> I wrote two list tests: >> >> def test1(): >> for k in range(10^3): >> v=[2*random() for j in range(10)] >> else: pass >> >> def test2(): >>f

[sage-support] Re: again problem with plotting

2008-10-21 Thread Jason Grout
William Stein wrote: > On Tue, Oct 21, 2008 at 3:14 PM, mabshoff > <[EMAIL PROTECTED]> wrote: >> >> >> On Oct 21, 2:14 pm, Jason Grout <[EMAIL PROTECTED]> wrote: >>> William Stein wrote: >> >> When I have Pentium M binaries, you'll be set to use those, and this will be soon, given my ne

[sage-support] Re: again problem with plotting

2008-10-21 Thread William Stein
On Tue, Oct 21, 2008 at 5:26 PM, Jason Grout <[EMAIL PROTECTED]> wrote: > > William Stein wrote: >> On Tue, Oct 21, 2008 at 3:14 PM, mabshoff >> <[EMAIL PROTECTED]> wrote: >>> >>> >>> On Oct 21, 2:14 pm, Jason Grout <[EMAIL PROTECTED]> wrote: William Stein wrote: >>> >>> > When I have Pe

[sage-support] Re: again problem with plotting

2008-10-21 Thread Jason Grout
William Stein wrote: > On Tue, Oct 21, 2008 at 5:26 PM, Jason Grout > <[EMAIL PROTECTED]> wrote: >> William Stein wrote: >>> On Tue, Oct 21, 2008 at 3:14 PM, mabshoff >>> <[EMAIL PROTECTED]> wrote: On Oct 21, 2:14 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > William Stein wrote:

[sage-support] Re: display 3d graphics in TeXmacs sage plugin

2008-10-21 Thread DJDANG
TeXmacs allows to plot 2D graphics but when I try to plot any 3D object it just shows "Graphics3D Object", so I gess TeXmacs doesn't support sage 3D plotting. Anyway thanks for the help. On 20 oct, 09:55, "William Stein" <[EMAIL PROTECTED]> wrote: > On Mon, Oct 20, 2008 at 6:26 AM, DJDANG <[EMAIL

[sage-support] Re: display 3d graphics in TeXmacs sage plugin

2008-10-21 Thread chu-ching huang
Hi, Sage-3.1.1 and TeXmacs-1.0.7 used: 2D plot will be embedded in TeXmacs worksheet; > sage: var('x,y') > sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show() 3D Plot will be showed by Jmol; >    (3) What if you do > sage: var('x,y') > sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show(viewer='tachyon

[sage-support] Does the digits method have an inverse?

2008-10-21 Thread Jason Merrill
sage: 1492.digits(10) [2, 9, 4, 1] Now is there an easy way to take this list and get back the integer 1492? Regards, JM --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to [EMAIL

[sage-support] Re: Does the digits method have an inverse?

2008-10-21 Thread Mike Hansen
On Tue, Oct 21, 2008 at 9:35 PM, Jason Merrill <[EMAIL PROTECTED]> wrote: > > sage: 1492.digits(10) > [2, 9, 4, 1] > > Now is there an easy way to take this list and get back the integer > 1492? I'm not sure if there is a single function that does it, but you can use the following one liner which

[sage-support] Re: Does the digits method have an inverse?

2008-10-21 Thread Timothy Clemans
def from_digits(lis): return ZZ(''.join([str(i) for i in lis[::-1]])) On Wed, Oct 22, 2008 at 12:35 AM, Jason Merrill <[EMAIL PROTECTED]> wrote: > > sage: 1492.digits(10) > [2, 9, 4, 1] > > Now is there an easy way to take this list and get back the integer > 1492? > > Regards, > > JM > > >

[sage-support] Re: display 3d graphics in TeXmacs sage plugin

2008-10-21 Thread adrian
sage: var('x,y') sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show() This launches jmol, and one is able to rotate the shape. One can also save the image and then import the saved image into Texmacs sage: var('x,y') sage: plot3d(sin(x*y),(x,-1,1),(y,-1,1)).show(viewer='tachyon') launches a viewer

[sage-support] Re: multiply a list by a constant

2008-10-21 Thread pong
Thanks to both Dan and William. However, Dan's result puzzled me. Aren't they suggested that the for loop is faster? Here is what I got: sage: timeit('list(2*vector([random() for j in range(10)]))') 625 loops, best of 3: 332 µs per loop sage: timeit('[2*random() for j in range(10)]') 125 loops,