[sage-devel] Sage 4.4.rc0 released

2010-04-23 Thread John Palmieri
This release candidate for Sage 4.4 closed 19 tickets (on top of 4.4.alpha1). On trac, these tickets were labeled as "merged into 4.4.alpha2", but then I decided that alpha2 should be the same as rc0. Source tarball: http://sage.math.washington.edu/home/release/sage-4.4.rc0/sage-4.4.rc0.tar sag

[sage-devel] Re: Translation of "coercion"

2010-04-23 Thread Nathan O'Treally
On 23 Apr., 11:10, Simon King wrote: > On Apr 22, 10:46 pm, "Georg S. Weber" > wrote: > > > I think I like "Wandlung" as the common umbrella term for both > > "coercion" ("Umwandlung", I like that, too) and "conversion" (for the > > latter I'd propose: "Verwandlung" --- but "Konversion" might do

[sage-devel] Re: weird bug in mod()

2010-04-23 Thread Kiran Kedlaya
I'm sure I'm not the only one on this list to have made this mistake before... Running a .py file is not the same as typing commands into an interactive session, because Sage doesn't do preprocessing on .py files. There is a way to call the preprocessor directly, but that's not necessary here; ren

[sage-devel] Re: graph theory: clarify the purpose of keyword "directed" in degree() of CGraphBackend

2010-04-23 Thread Nathan O'Treally
On 23 Apr., 08:37, Nathann Cohen wrote: > For undirected graph, we settled recently on saying that the degree of > a single vertex with a loop is equal to 2, because we do not want the > inequality (sum of the degrees) = 2* (number of edges) broken. Equality, I guess :-) This unfortunately break

[sage-devel] Re: Translation of "coercion"

2010-04-23 Thread kcrisman
> PS: If you are still in doubt, please, please do not use Wikipedia for > any proof! Wikipedia is only good for to make a religion. Please better > ask a computer scientist, best working in the field of computation, not > hardware! On your university there should be a collection of that species!

Re: [sage-devel] Re: Translation of "coercion"

2010-04-23 Thread bb
William Stein schrieb: On Fri, Apr 23, 2010 at 10:15 AM, bb > wrote: Simon King schrieb: Hi! On Apr 23, 2:05 pm, bb mailto:bblo...@arcor.de>> wrote: ... The second passage I found was at http://www.sagemath.o

Re: [sage-devel] Re: Translation of "coercion"

2010-04-23 Thread William Stein
On Fri, Apr 23, 2010 at 10:15 AM, bb wrote: > Simon King schrieb: > > Hi! >> >> On Apr 23, 2:05 pm, bb wrote: >> >> >>> ... >>> The second passage I found was at >>> >>> http://www.sagemath.org/doc/tutorial/programming.html >>> >>> ... When comparing objects of different types in Sage, in most

Re: [sage-devel] Re: Translation of "coercion"

2010-04-23 Thread bb
Simon King schrieb: Hi! On Apr 23, 2:05 pm, bb wrote: ... The second passage I found was at http://www.sagemath.org/doc/tutorial/programming.html ... When comparing objects of different types in Sage, in most cases Sage tries to find a canonical coercion of both objects to a common parent

[sage-devel] weird bug in mod()

2010-04-23 Thread John Cremona
This works fine from the command line (4.4.alpha1): sage: K. = NumberField(x^3 - 7) sage: R. = K[] sage: f = y^2 + 3 sage: g = y^3 - 5 sage: h,alpha,beta = XGCD(f,g) sage: c = 1+((a-1))*alpha*f sage: l = lcm(f,g) sage: c.mod(l) (-3/52*a + 3/52)*y^4 + (5/52*a - 5/52)*y^3 + (15/52*a - 15/52)*y + 27/

[sage-devel] Where to add a section to the tutorial?

2010-04-23 Thread Simon King
Hi! Sage's coercion makes life easier (allowing to do arithmetic without too much fuzz), but is not easy and may give rise to confusion. 1. I find coercion is not properly addressed by the tutorial and the "Sage constructions". Do you agree that a section on coercion should be added (I'd voluntee

[sage-devel] Re: Translation of "coercion"

2010-04-23 Thread Simon King
Hi! On Apr 23, 2:05 pm, bb wrote: > ... > The second passage I found was at > > http://www.sagemath.org/doc/tutorial/programming.html > > ... When comparing objects of different types in Sage, in most cases > Sage tries to find a canonical coercion of both objects to a common > parent. I am tran

[sage-devel] Re: Right format for multiple lines statement in docstring ?

2010-04-23 Thread ablondin
Thanks ! That worked ! Alex On 23 avr, 09:49, Willem Jan Palenstijn wrote: > On Fri, Apr 23, 2010 at 06:32:43AM -0700, ablondin wrote: > > >  981             sage: for i in range(1,10): > >  982             sage:     for j in range(1,10): > >  983             sage:         if i != j: > >  984    

Re: [sage-devel] Re: Right format for multiple lines statement in docstring ?

2010-04-23 Thread Willem Jan Palenstijn
On Fri, Apr 23, 2010 at 06:32:43AM -0700, ablondin wrote: > > 981 sage: for i in range(1,10): > 982 sage: for j in range(1,10): > 983 sage: if i != j: > 984 sage: w = > words.KolakoskiWord(alphabet=(i,j)) > 985

[sage-devel] Re: Right format for multiple lines statement in docstring ?

2010-04-23 Thread ablondin
Thank you John for the improvement ! I will for sure change it. But there is still an unanswered question (I must admit I was not very clear). When I add the following string in my docstring 981 sage: for i in range(1,10): 982 sage: for j in range(1,10): 983

Re: [sage-devel] Re: Translation of "coercion"

2010-04-23 Thread bb
Simon King schrieb: Hi Georg, On Apr 22, 10:46 pm, "Georg S. Weber" wrote: I think I like "Wandlung" as the common umbrella term for both "coercion" ("Umwandlung", I like that, too) and "conversion" (for the latter I'd propose: "Verwandlung" --- but "Konversion" might do as well, and would

Re: [sage-devel] Right format for multiple lines statement in docstring ?

2010-04-23 Thread John Cremona
Why don't you, instead of collecting all the booleans in a list, assert each one? On 23 April 2010 13:55, ablondin wrote: > Hello, everyone ! > What is the right syntax to include a test like this one in the > docstring ? > Delete this line: > sage: valid = [] Keep this: > sage: for i in rang

[sage-devel] Right format for multiple lines statement in docstring ?

2010-04-23 Thread ablondin
Hello, everyone ! What is the right syntax to include a test like this one in the docstring ? sage: valid = [] sage: for i in range(1,10): sage: for j in range(1,10): sage: if i != j: sage: w = words.KolakoskiWord(alphabet=(i,j)) sage: valid.append(w[:50] == w.d

[sage-devel] Re: Translation of "coercion"

2010-04-23 Thread Simon King
Hi Georg, On Apr 22, 10:46 pm, "Georg S. Weber" wrote: > I think I like "Wandlung" as the common umbrella term for both > "coercion" ("Umwandlung", I like that, too) and "conversion" (for the > latter I'd propose: "Verwandlung" --- but "Konversion" might do as > well, and would be a good memory h

[sage-devel] Re: Notebook Cells

2010-04-23 Thread kstueve
I think I may use JSX graph instead of Java. I was shown how to use the html function in the notebook html("hello world") I followed the code at http://jsxgraph.uni-bayreuth.de/wiki/index.php/Howto_include_JSXGraph_into_web_pages to get JSX graph to work in a web page. I am still not sure how t