[sage-support] Re: France : Sage is now available at l'agrégation

2012-03-13 Thread Pierre
That's good news. It's a long way until usage of Sage becomes standard in France, unfortunately. I hear that Lyon has made the transition from Maple and has been confronted with a lot of resistance from teachers who did not want to change their old habits... Here in Strasbourg we were about to

[sage-support] funny Cayley graph

2012-03-13 Thread Pierre
Hi, I've been playing with Cayley graphs in Sage (thanks to whoever implemented this!) I got funny results on one example, and I'd like to understand. I've tried SL(2, ZZ): sage: G= SL(2, ZZ) sage: S, T= G.gens(); ST= S*T sage: L= [S^i*ST^j for i in range(4) for j in range(3)] #S has order 4,

Re: [sage-support] funny Cayley graph

2012-03-13 Thread Tom Boothby
Pierre, Don't rely on the picture! sage: U = set(gr.edges()) sage: V = set(gr.reverse().edges()) sage: U.intersection(V) #for me, this is the empty set On Tue, Mar 13, 2012 at 3:26 AM, Pierre pierre.guil...@gmail.com wrote: Hi, I've been playing with Cayley graphs in Sage (thanks to whoever

[sage-support] linear first order recurrence system

2012-03-13 Thread Kakaz
Hi all! I would like to ask - is there possibility in Sage ( or Maxima) to solve first order recurrence relation given by linear system with several variables? For example: a(n+1) = A*a(n) + B*b(n) b(n) = C*a(n) + D*b(n) Have I find solution of linear system at first an then solve separated

[sage-support] Re: linear first order recurrence system

2012-03-13 Thread Kakaz
Of course it should be: a(n+1) = A*a(n) + B*b(n) b(n+1) = C*a(n) + D*b(n) On Mar 13, 2:32 pm, Kakaz kazimierz.k...@gmail.com wrote: Hi all! I would like to ask - is there possibility in Sage ( or Maxima) to solve first order recurrence relation given by linear system with several variables?

Re: [sage-support] Re: linear first order recurrence system

2012-03-13 Thread David Joyner
I think it is in sympy (included in Sage). I vaguely remember the question has been asked before on this list but I don't remember the exact answer. Did you look through the sage-support archive? On Tue, Mar 13, 2012 at 9:35 AM, Kakaz kazimierz.k...@gmail.com wrote: Of course it should be:

[sage-support] Re: linear first order recurrence system

2012-03-13 Thread Kakaz
Thanks for answer. Yes, I did. I found similar question but it was about rsolve and second order relation. I am looking for rsolve or similar solver in context of several variables ( ei. a(n), b(n) in example above and 4 variables in my case I want to solve). I have read this:

Re: [sage-support] Re: linear first order recurrence system

2012-03-13 Thread David Joyner
On Tue, Mar 13, 2012 at 10:27 AM, Kakaz kazimierz.k...@gmail.com wrote: Thanks for answer. Yes, I did. I found similar question but it was about rsolve and second order relation. I am looking for rsolve or similar solver in context of several variables ( ei. a(n), b(n) in example above and 4

[sage-support] Re: linear first order recurrence system

2012-03-13 Thread Kakaz
This is clever idea. It may be also relatively easy to separate this 4 ( or 2in example) variables and then solve 4 recurrence relations directly. But it looks like pure algorithmic, so I would like to ask if someone implement that. Thank You for Your help! K On Mar 13, 3:36 pm, David Joyner

[sage-support] Docs don't seem to say Integer.__pow__(a,b,m) produces an element of Z/mZ

2012-03-13 Thread Omar
I tracked down a confusing bug in some code I was writing in Sage down to the fact that pow(a,b,m) applied to Sage Integers does not give an Integer result, but rather an object with parent the ring of integers mod m (a simple call to either int() or .lift() fixed my code). I like this design

[sage-support] Re: funny Cayley graph

2012-03-13 Thread Pierre
Dear Tom, Thanks for your answer! I get the empty set, too. I really wonder what is going on with the picture though... if one cannot rely on the picture, then it pretty much defeats the purpose when it comes to Cayley graphs, doesn't it? and i mean, there *is* a double arrow on some edges.

[sage-support] Re: funny Cayley graph

2012-03-13 Thread Pierre
i think i see what is going on. By reducing the number of vertices plotted, it appears that the double edges are really little clusters of four edges! On 13 mar, 21:27, Pierre pierre.guil...@gmail.com wrote: Dear Tom, Thanks for your answer! I get the empty set, too. I really wonder what is

Re: [sage-support] Re: funny Cayley graph

2012-03-13 Thread Tom Boothby
The spring layout is accidentally finding the normal subgroup {+/-1}. If we look at a smaller subgraph, the problem should be apparent. G= SL(2, ZZ) S, T= G.gens(); ST= S*T L= [S^i*ST^j for i in range(4) for j in range(3)] els= Set([ a*b for a in L for b in L]) gr= G.cayley_graph(generators =

[sage-support] integral point

2012-03-13 Thread FOAD KHOSHNAM
Hello Dear how can I calculate the integral point for this curve: [0,0,0,-3568202637461440265241263457,0] -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this