[sage-support] Re: [sage-edu] equation with complex number

2011-12-09 Thread David Joyner
This is a question for sage-support, which I am ccing. On Fri, Dec 9, 2011 at 5:04 AM, Jean-Patrick Pommier jeanpatrick.pomm...@gmail.com wrote: Hi, Is it possible to solve equation with complex variable such 1/z=1+i? I try without success: show(solve(1/z==i,z))  which returns  [] (-i

[sage-support] Re: equation with complex number

2011-12-09 Thread achrzesz
On Dec 9, 12:18 pm, David Joyner wdjoy...@gmail.com wrote: This is a question for sage-support, which I am ccing. On Fri, Dec 9, 2011 at 5:04 AM, Jean-Patrick Pommier jeanpatrick.pomm...@gmail.com wrote: Hi, Is it possible to solve equation with complex variable such 1/z=1+i? I try

[sage-support] Plotting weighted graph

2011-12-09 Thread akm
Hi all, I'm confused why this code results in a graph plotted with the (single) edges labeled with the weight between each pair of vertices: M = Matrix([[0,1,-1,5],[1,0,-1/2,-1],[-1,-1/2,0,2],[5,-1,2,0]]) G = Graph(M,sparse=True) G.plot(edge_labels=True) Whereas this code does not and instead

[sage-support] generate a random rxr matrix over F_q with determinant 1

2011-12-09 Thread Daniel Starin
Hi all, How can I use sage to generate a random rxr matrix over F_q (q is a prime power) with determinant 1? Thanks! Dan -- 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

[sage-support] Re: generate a random rxr matrix over F_q with determinant 1

2011-12-09 Thread Simon King
Hi Daniel, On 10 Dez., 00:17, Daniel Starin dsta...@gmail.com wrote: Hi all, How can I use sage to generate a random rxr matrix over F_q (q is a prime power) with determinant 1? First, create the group of all matrices with determinant 1 (in the example, q is 9 and r is 5) sage: G = SL(5,

Re: [sage-support] Plotting weighted graph

2011-12-09 Thread D. S. McNeil
Hi all, I'm confused why this code results in a graph plotted with the (single) edges labeled with the weight between each pair of vertices: M = Matrix([[0,1,-1,5],[1,0,-1/2,-1],[-1,-1/2,0,2],[5,-1,2,0]]) G = Graph(M,sparse=True) G.plot(edge_labels=True) Whereas this code does not and