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():
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
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
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
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
-
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:
> ---
"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
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
"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
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 :
"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
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
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
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
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,
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)
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
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
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
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
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:
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
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: 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
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
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: 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
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,
28 matches
Mail list logo