[sage-support] Re: strange behavior with sums

2014-06-23 Thread Dima Pasechnik
On 2014-06-23, Karl Schultheisz art.live...@gmail.com wrote: I'm using Sage 6.2 on Arch Linux. I have posted before about sums being wrong https://groups.google.com/d/msg/sage-support/IgC78rcdO7c/qTWzpA9f-P8J, and I am happy to see that the community took action. Thanks! I have been seeing

[sage-support] Re: strange behavior with sums

2014-06-23 Thread Karl Schultheisz
Sorry, I haven't. I don't know how. On Monday, June 23, 2014 8:38:46 AM UTC-4, Dima Pasechnik wrote: On 2014-06-23, Karl Schultheisz art.l...@gmail.com javascript: wrote: I'm using Sage 6.2 on Arch Linux. I have posted before about sums being wrong

[sage-support] Re: strange behavior with sums

2014-06-23 Thread Dima Pasechnik
On 2014-06-23, Dima Pasechnik dimp...@gmail.com wrote: On 2014-06-23, Karl Schultheisz art.live...@gmail.com wrote: I'm using Sage 6.2 on Arch Linux. I have posted before about sums being wrong https://groups.google.com/d/msg/sage-support/IgC78rcdO7c/qTWzpA9f-P8J, and I am happy to see that

[sage-support] Re: strange behavior with sums

2014-06-23 Thread Dima Pasechnik
On 2014-06-23, Karl Schultheisz art.live...@gmail.com wrote: Sorry, I haven't. I don't know how. well, this is actually easy to fix, as no recompilation of Sage is needed here: the only change is in src/sage/intefaces/maxima_lib.py

[sage-support] Re: strange behavior with sums

2014-06-23 Thread Dima Pasechnik
On 2014-06-23, Dima Pasechnik dimp...@gmail.com wrote: On 2014-06-23, Karl Schultheisz art.live...@gmail.com wrote: Sorry, I haven't. I don't know how. well, this is actually easy to fix, as no recompilation of Sage is needed here: the only change is in src/sage/intefaces/maxima_lib.py

[sage-support] Re: strange behavior with sums

2014-06-23 Thread Karl Schultheisz
Thank you. It is obviously time that I learn to use git. On Monday, June 23, 2014 9:10:09 AM UTC-4, Dima Pasechnik wrote: On 2014-06-23, Dima Pasechnik dim...@gmail.com javascript: wrote: On 2014-06-23, Karl Schultheisz art.l...@gmail.com javascript: wrote: Sorry, I haven't. I don't

Re: [sage-support] Re: strange behavior with sums

2014-06-23 Thread Karl Schultheisz
I have installed git and chosen my name and email address. What commands should I run to apply this patch? I have been reading the developer manual, but at this point I am not interested in contributing code to Sage. I just want to apply patches. On Mon, Jun 23, 2014 at 9:45 AM, Karl Schultheisz

[sage-support] Re: strange behavior with sums

2014-06-23 Thread Dima Pasechnik
On 2014-06-23, Karl Schultheisz art.live...@gmail.com wrote: I have installed git and chosen my name and email address. What commands should I run to apply this patch? I have been reading the developer manual, but at this point I am not interested in contributing code to Sage. I just want to

Re: [sage-support] Re: strange behavior with sums

2014-06-23 Thread Karl Schultheisz
Thanks for your help. I ran: [...sage]$ git fetch http://trac.sagemath.org/sage.git u/pbruin/16224-maxima_to_sage fatal: Not a git repository (or any of the parent directories): .git On Mon, Jun 23, 2014 at 2:55 PM, Dima Pasechnik dimp...@gmail.com wrote: On 2014-06-23, Karl Schultheisz

[sage-support] Re: strange behavior with sums

2014-06-23 Thread Dima Pasechnik
On 2014-06-23, Karl Schultheisz art.live...@gmail.com wrote: Thanks for your help. I ran: [...sage]$ git fetch http://trac.sagemath.org/sage.git u/pbruin/16224-maxima_to_sage fatal: Not a git repository (or any of the parent directories): .git this should be one command (on one line) $ git

Re: [sage-support] Re: strange behavior with sums

2014-06-23 Thread Karl Schultheisz
I agree. Not sure why it is formatted in the quotation as two lines, because I entered it as one line. On Mon, Jun 23, 2014 at 6:09 PM, Dima Pasechnik dimp...@gmail.com wrote: On 2014-06-23, Karl Schultheisz art.live...@gmail.com wrote: Thanks for your help. I ran: [...sage]$ git fetch

Re: [sage-support] Re: strange behavior with sums

2014-06-23 Thread Karl Schultheisz
In Arch Linux, Sage installs to /opt/sage. I assume this is the SAGEROOT you refer to. On Mon, Jun 23, 2014 at 6:17 PM, Karl Schultheisz art.live...@gmail.com wrote: I agree. Not sure why it is formatted in the quotation as two lines, because I entered it as one line. On Mon, Jun 23, 2014

[sage-support] Re: strange behavior with sums

2014-06-23 Thread Dima Pasechnik
On 2014-06-23, Karl Schultheisz art.live...@gmail.com wrote: Thanks for your help. I ran: [...sage]$ git fetch http://trac.sagemath.org/sage.git u/pbruin/16224-maxima_to_sage fatal: Not a git repository (or any of the parent directories): .git I see - you don't have a git repository, and you

[sage-support] Re: strange behavior with sums

2014-06-23 Thread Dima Pasechnik
On 2014-06-23, Karl Schultheisz art.live...@gmail.com wrote: In Arch Linux, Sage installs to /opt/sage. I assume this is the SAGEROOT you refer to. yes. (usually you will also have an environment variable called SAGE_ROOT set to the location) As well,iIf you start Sage and type at the prompt,

[sage-support] Re: Strange behavior when trying to get help from command line

2013-04-28 Thread João Alberto Ferreira
Complementing, in the notebook interface, help(sqrt) and help(diff) shows the help for the functions in a new tab, but help(exp), help(cos) and help(sin) opens a new tab, but shows only the name of the function, not the help. On Sunday, April 28, 2013 5:57:54 PM UTC-3, João Alberto Ferreira

[sage-support] Re: strange behavior on assigning string with single quotes

2010-05-12 Thread Rajeev
Let me also add that there is no problem if the dropdown menu at the top is set at sage (the default option). On May 12, 4:31 pm, Rajeev rajs2...@gmail.com wrote: Hi, I am finding a very strange behavior in notebook. Evaluating a = 'hello' gives Traceback (most recent call last):  

Re: [sage-support] Re: strange behavior on assigning string with single quotes

2010-05-12 Thread Tim Joseph Dumol
Hi Rajeev, This is a bug in older versions of Sage. Please try downloading the latest version over at: http://sagemath.org/download-linux.html. On Wed, May 12, 2010 at 7:43 PM, Rajeev rajs2...@gmail.com wrote: Let me also add that there is no problem if the dropdown menu at the top is set at

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread VictorMiller
As far as I know Maxima isn't involved -- I don't think that isogenies uses Maxima. Victor On Aug 3, 6:58 pm, Simon King simon.k...@nuigalway.ie wrote: On 4 Aug., 00:29, VictorMiller victorsmil...@gmail.com wrote: ...  phi = E.isogeny([E(0),P,-P]) for i in xrange(20):

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread Minh Nguyen
Hi Victor, On Tue, Aug 4, 2009 at 8:29 AM, VictorMillervictorsmil...@gmail.com wrote: I was trying to find out how fast a calculation was (applying an isogeny of degree on an elliptic curve over a finite field).  At first I noticed that when I repeated a timeit call with the same expression

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread Simon King
On 4 Aug., 00:29, VictorMiller victorsmil...@gmail.com wrote: ...  phi = E.isogeny([E(0),P,-P]) for i in xrange(20): timeit('phi(Q)') 625 loops, best of 3: 1.17 ms per loop 625 loops, best of 3: 1.75 ms per loop 125 loops, best of 3: 2.1 ms per loop 125 loops, best of 3: 2.22 ms per loop

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread William Stein
On Mon, Aug 3, 2009 at 4:37 PM, VictorMillervictorsmil...@gmail.com wrote: As far as I know Maxima isn't involved -- I don't think that isogenies uses Maxima. You can prove Maxima isn't involved by doing the computation then exiting sage and seeing if it says Exiting Maxima when Sage is

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread VictorMiller
Here are the commands I used: qq = [z for z in primes(10,10+100) if (z%12) == 11] E = EllipticCurve(j=GF(qq[0])(1728)) # E has qq[0]+1 points over GF(qq[0]) factor(qq[0]+1) P = ((qq[0]+1)//3)*E.random_element() K = [E(0),P,-P] phi = E.isogeny(K) for i in xrange(20): timeit('phi(Q)') On

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread Simon King
Hi! On 4 Aug., 02:31, VictorMiller victorsmil...@gmail.com wrote: Here are the commands I used: qq = [z for z in primes(10,10+100) if (z%12) == 11] E = EllipticCurve(j=GF(qq[0])(1728)) # E has qq[0]+1 points over GF(qq[0]) factor(qq[0]+1) P = ((qq[0]+1)//3)*E.random_element() K =

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread VictorMiller
Sorry, here's the definition of Q: Q = E.random_element() Victor On Aug 3, 8:45 pm, Simon King simon.k...@nuigalway.ie wrote: Hi! On 4 Aug., 02:31, VictorMiller victorsmil...@gmail.com wrote: Here are the commands I used: qq = [z for z in primes(10,10+100) if (z%12) == 11] E

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread Simon King
Hi Victor, On 4 Aug., 03:10, VictorMiller victorsmil...@gmail.com wrote: Sorry, here's the definition of Q: Q = E.random_element() Thanks! So, probably it is unrelated with the ticket I mentioned. Also note that the computation time does not increase monotonely: sage: for i in xrange(20):

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread William Stein
On Mon, Aug 3, 2009 at 6:10 PM, VictorMillervictorsmil...@gmail.com wrote: Sorry, here's the definition of Q: Q = E.random_element() Victor On Aug 3, 8:45 pm, Simon King simon.k...@nuigalway.ie wrote: Hi! On 4 Aug., 02:31, VictorMiller victorsmil...@gmail.com wrote: Here are the

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread Dan Shumow
The above change is very sensible, since we know that outP is on self.__E2, so should directly create a point on E2 and not check again that our point is really on E2 (which is very expensive). I agree that we should make the change: else: outP = self.__E2(outP) to

[sage-support] Re: Strange behavior in timeit

2009-08-03 Thread William Stein
On Mon, Aug 3, 2009 at 7:23 PM, Dan Shumowshu...@gmail.com wrote: The above change is very sensible, since we know that outP is on self.__E2, so should directly create a point on E2 and not check again that our point is really on E2 (which is very expensive). I agree that we should make the

[sage-support] Re: strange behavior

2009-06-15 Thread William Stein
On Mon, Jun 15, 2009 at 6:07 AM, Florian Beutlerflorian.beut...@gmx.de wrote: hello flor...@florian-laptop:~/Gadget-2.0.3/Analysis$ sage -v | SAGE Version 3.0.5, Release Date: 2008-07-11 my operation system is ubuntu 9,04 What are the paths below to /usr/lib? I don't know what you

[sage-support] Re: strange behavior

2009-06-14 Thread Florian Beutler
yep sorry... here is the error message flor...@florian-laptop:~/sage$ sage friction.py Ok... dann legen wir mal los! step1: definition of the density profile 99824085.5683 step2: definition of the circular velocity 3.51331142172386 step3: definition of the integrated mass 229643.853879355

[sage-support] Re: strange behavior

2009-06-14 Thread William Stein
On Sun, Jun 14, 2009 at 6:48 AM, Florian Beutlerflorian.beut...@gmx.de wrote: yep sorry... here is the error message What version of Sage are you using? On what computer? Etc. etc. What are the paths below to /usr/lib? -- William flor...@florian-laptop:~/sage$ sage friction.py Ok...

[sage-support] Re: strange behavior

2009-06-14 Thread Florian Beutler
hello flor...@florian-laptop:~/Gadget-2.0.3/Analysis$ sage -v | SAGE Version 3.0.5, Release Date: 2008-07-11 my operation system is ubuntu 9,04 What are the paths below to /usr/lib? I don't know what you mean... regards florian On Jun 14, 10:00 pm, William Stein wst...@gmail.com wrote: On

[sage-support] Re: strange behavior

2009-06-14 Thread Florian Beutler
hello flor...@florian-laptop:~/Gadget-2.0.3/Analysis$ sage -v | SAGE Version 3.0.5, Release Date: 2008-07-11 my operation system is ubuntu 9,04 What are the paths below to /usr/lib? I don't know what you mean... regards florian On Jun 14, 10:00 pm, William Stein wst...@gmail.com wrote: On

[sage-support] Re: strange behavior

2009-06-13 Thread William Stein
2009/6/13 Florian Beutler florian.beut...@gmx.de: Hay I am a bit annoyed by sage... I just want to print a function two times and sage gives me an error... this is the first script

[sage-support] Re: Strange behavior on sagenb

2009-03-28 Thread Jason Bandlow
William Stein wrote: On Thu, Mar 26, 2009 at 8:50 AM, Jason Bandlow jband...@gmail.com wrote: Hi all, When I start up a clean version of sage 3.4 on my local machine and enter the following into a notebook cell:

[sage-support] Re: Strange behavior on sagenb

2009-03-28 Thread William Stein
On Sat, Mar 28, 2009 at 6:26 AM, Jason Bandlow jband...@gmail.com wrote: I'm guessing this is a subtle 32 versus 64-bit issue involving pickling and assumptions made somewhere in the combinat or other sage code involving 32/64-bit.  The notebook is 64-bit and I bet your computer is 32-bit.

[sage-support] Re: Strange behavior on sagenb

2009-03-28 Thread Carl Witty
On Mar 28, 8:59 am, William Stein wst...@gmail.com wrote: I know of one place in sage where objects cache their hash for efficiency reasons (e.g., I think Sage matrices do). I hadn't thought about the fact that pickling, moving to an object to a platform where the hashes are different, and

[sage-support] Re: Strange behavior on sagenb

2009-03-26 Thread William Stein
On Thu, Mar 26, 2009 at 8:50 AM, Jason Bandlow jband...@gmail.com wrote: Hi all, When I start up a clean version of sage 3.4 on my local machine and enter the following into a notebook cell: M=load('http://www.math.upenn.edu/~jbandlow/sage_data/dic_of_kst_to_G_cob_mats.sobj') # This

[sage-support] Re: Strange behavior in Partition(x).next()

2007-12-13 Thread David Harvey
On Dec 13, 2007, at 9:19 PM, mekaj wrote: def get_partitions(x,y=[]): The problem might be your default argument above. This is really a python issue. Every time your function is called, it's getting the *same* list object. The standard python idiom to get around this is: def