Re: [sage-support] Re: Sage Scripts

2011-04-17 Thread Dan Drake
On Sat, 16 Apr 2011 at 07:57PM -0700, nkulmati wrote: > This whole "python-under virtual-machine" idea renders sage impossible > to use!! Actually, it renders Sage "possible to use" for many people. Remember that you can always use one of the public Sage servers or set up one of your own -- as tho

[sage-support] Re: Plotting 3d graphs side by side

2011-04-17 Thread ObsessiveMathsFreak
I was thinking about the jmol export to image function an whether this could be used to display a 3D array? Either that or the tachyon, output images might perhaps be able to be stapled together in a graphics_array. However, I currently have no idea of how to do this. Can anyone offer assistance?

[sage-support] Re: Plotting 3d graphs side by side

2011-04-17 Thread ObsessiveMathsFreak
Thanks, but I have to say that I don't find any of these solutions particularly endearing. Is there no way of coercing this behaviour out of the normal Sage plot3d functions? I'm not keen on having to learn yet another interface library just to get something done in Sage. On Apr 17, 7:45 am, achr

[sage-support] Re: Numerical integration fails when taking real/imaginary part

2011-04-17 Thread Ian Petrow
Wow. Great. Thanks. Ian On Apr 17, 3:12 pm, achrzesz wrote: > sage: numerical_integral(lambda t:imaginary(gamma(1-I*t)),-15,15) > (0.0, 5.3925521851144085e-15) > > On 18 Kwi, 00:02, Ian Petrow wrote: > > > > > > > > > Also, imaginary(gamma(1.+I*5)), say, works fine as long as it's not > > ins

[sage-support] Re: Numerical integration fails when taking real/imaginary part

2011-04-17 Thread achrzesz
sage: numerical_integral(lambda t:imaginary(gamma(1-I*t)),-15,15) (0.0, 5.3925521851144085e-15) On 18 Kwi, 00:02, Ian Petrow wrote: > Also, imaginary(gamma(1.+I*5)), say, works fine as long as it's not > inside a numerical integral > > Ian > > On Apr 17, 2:57 pm, Ian Petrow wrote: > > > Hello Ev

[sage-support] Re: Numerical integration fails when taking real/imaginary part

2011-04-17 Thread Ian Petrow
Also, imaginary(gamma(1.+I*5)), say, works fine as long as it's not inside a numerical integral Ian On Apr 17, 2:57 pm, Ian Petrow wrote: > Hello Everyone, > > I know numerical integration isn't great in SAGE, but I think the > following isn't too complicated.  I try > > sage: numerical_integral

[sage-support] Numerical integration fails when taking real/imaginary part

2011-04-17 Thread Ian Petrow
Hello Everyone, I know numerical integration isn't great in SAGE, but I think the following isn't too complicated. I try sage: numerical_integral(imaginary(gamma(1-I*t)),-15,15) which fails, and give a LONG error message. I won't put the whole thing here, but it starts: ERROR: An unexpected e

[sage-support] Re: Graphs in Sage: vertex labels?

2011-04-17 Thread John H Palmieri
On Saturday, April 16, 2011 1:52:50 PM UTC-7, nkulmati wrote: > > Hello All, > > I have a simple script: > > > G = graphs.RandomNGP(20, 0.05) > > centralities = G.centrality_closeness() > > I can not figure out how to plot the graph G so that no only the > labels (1,2,3) are shown but also the

Re: [sage-support] recurrence relation

2011-04-17 Thread amaseam
2011/4/17 raman : > Hello Dears > could you please tell me how I can write the recurrence relation by > sage? > > for example > p(n)=2p(n-1)+p(n-2) where p(0)=1 and p(1)=3 you could do this: def p(n): if n == 0: return 1 if n == 1: return 3 l = (1,3) for i in xrange(n-1):

Re: [sage-support] results into list

2011-04-17 Thread amaseam
2011/4/17 clodemil : > Hi all, > > # Measurements are taken three times in one session and entered in a > continuous list "t": > > t=[ 151, 129, 126, 158, 163, 165, 150, 120, 147, 148, 134, 114, 180, > 167, 159, 196, 175, 162, 135, 145, 135, 176, 172, 184, 149, 150, 152, > 185, 185, 168, 143, 151,

[sage-support] recurrence relation

2011-04-17 Thread raman
Hello Dears could you please tell me how I can write the recurrence relation by sage? for example p(n)=2p(n-1)+p(n-2) where p(0)=1 and p(1)=3 -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups

[sage-support] results into list

2011-04-17 Thread clodemil
Hi all, # Measurements are taken three times in one session and entered in a continuous list "t": t=[ 151, 129, 126, 158, 163, 165, 150, 120, 147, 148, 134, 114, 180, 167, 159, 196, 175, 162, 135, 145, 135, 176, 172, 184, 149, 150, 152, 185, 185, 168, 143, 151, 142, 178, 172, 164, 147, 146, 142,

[sage-support] Re : Re: Graphs in Sage: vertex labels?

2011-04-17 Thread Nathann Cohen
> > Sage is not very happy to draw graphs. :-/ Though... right :-/ Nathann -- 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 group at http://groups.goog