[sage-support] sage-64.txt

2011-01-30 Thread Michael Beeson
I downloaded the latest 64-bit dmg of Sage for OS X and installed it. It works, but I get a strange error message about sage-64.txt. Specifically, if I put the following lines in a sage file and run sage with that file for input, (here are the lines) L = [[cos(pi*i/100),sin(pi*i/100)] for i in

[sage-support] Re: basic plotting

2011-01-30 Thread Michael Beeson
Thanks. This version of sage worked fine for all the things I wanted to do till today; I'll get the latest version immediately. In case your questions were not merely rhetorical: I did see that warning message, but since what I was doing was graphical (i.e. numerical) and it refers to symbolic co

Re: [sage-support] plot(): no ticks and arrow on axes?

2011-01-30 Thread Francois Maltey
Renato a écrit : Hello, I can't understand how the ticks option works in plot()... I want to have no ticks or labels on the axis. Also, is it possible to show the arrows on the axis? like this: http://www.homeschoolmath.net/blog/few-complex-numbers.gif I'm using latest version of sage Sear

[sage-support] plot(): no ticks and arrow on axes?

2011-01-30 Thread Renato
Hello, I can't understand how the ticks option works in plot()... I want to have no ticks or labels on the axis. Also, is it possible to show the arrows on the axis? like this: http://www.homeschoolmath.net/blog/few-complex-numbers.gif I'm using latest version of sage cheers renato -- To post

Re: [sage-support] Re: help needed with cube

2011-01-30 Thread Francois Maltey
Robert Bradshaw wrote : On Sun, Jan 30, 2011 at 2:55 AM, Loďc wrote: You're right, size affects the center too. Not very intuituive but now, I know it. I think this behaviour is quite surprising. For example, with sphere, size doesn't affect center I might go so far to call it a

Re: [sage-support] basic plotting

2011-01-30 Thread William Stein
On Sun, Jan 30, 2011 at 1:54 PM, Michael Beeson wrote: > -- > | Sage Version 4.2.1, Release Date: 2009-11-14                       | > | Type notebook() for the GUI, and license() for information.        | > --

[sage-support] basic plotting

2011-01-30 Thread Michael Beeson
-- | Sage Version 4.2.1, Release Date: 2009-11-14 | | Type notebook() for the GUI, and license() for information.| -- WARNING: There

[sage-support] Re: help needed with cube

2011-01-30 Thread Marshall Hampton
You can also doing this using the built-in cube in the polyhedra module. Polyhedra can be rescaled and translated; this does something close to what it looked like you were trying: sage: c = polytopes.n_cube(3) sage: c2 = c*2 sage: p = point((2/3,2/3,0),color='green',size=10) sage: c3 = (1/3)*c +

Re: [sage-support] newbie: plotting sum of cosines...complex values?

2011-01-30 Thread Renato
On Sun, 30 Jan 2011 21:22:07 +0100 Francois Maltey wrote: > Hello Renato, > >> def s(x,n) : > >> return x/2 + add (cos(k*x) for k in [1..n]) > >> > >> n0 = 5; > >> plot(s(x,n0),(x,0,pi)) > >> > > Thanks for clarification and tips :) Just a last doubt: if I > > understand correctly, add()

Re: [sage-support] newbie: plotting sum of cosines...complex values?

2011-01-30 Thread Francois Maltey
Hello Renato, def s(x,n) : return x/2 + add (cos(k*x) for k in [1..n]) n0 = 5; plot(s(x,n0),(x,0,pi)) Thanks for clarification and tips :) Just a last doubt: if I understand correctly, add() wants as argument an array like for example [1,2,7,5], but running cos(k*x) for k in [1..n] al

Re: [sage-support] newbie: plotting sum of cosines...complex values?

2011-01-30 Thread Renato
On Sun, 30 Jan 2011 19:04:38 +0100 Francois Maltey wrote: > Hello, > > I'd like to plot this function of x (latex code): > > > > x/2 + sum_{r=1}^n cos(rx) > > > > for some fixed n. > //A// > > First, sum is designed for formal sum, not for truncate sum even if > sometimes it's possible. > But a

Re: [sage-support] newbie: plotting sum of cosines...complex values?

2011-01-30 Thread Francois Maltey
Hello, I'd like to plot this function of x (latex code): x/2 + sum_{r=1}^n cos(rx) for some fixed n. //A// First, sum is designed for formal sum, not for truncate sum even if sometimes it's possible. But add is designed for these sums. Second, expression doesn't evaluate the add(...) funct

[sage-support] Re: newbie: plotting sum of cosines...complex values?

2011-01-30 Thread Dox
Hi Renato! I tried something a bit different sage: reset() sage: def s(x,n):^Jreturn x/2 + sum(cos(k*x),k,1,n) : sage: var('x,n,k') (x, n, k) sage: plot(s(x,5), (x,0,2*pi)) and it worked! Enjoy! Dox On Jan 30, 4:48 pm, Renato Budinich wrote: > Hello, I'd like to plot this function of

[sage-support] newbie: plotting sum of cosines...complex values?

2011-01-30 Thread Renato Budinich
Hello, I'd like to plot this function of x (latex code): x/2 + sum_{r=1}^n cos(rx) for some fixed n. However I'm running into problems... as I understand it sage converts the sum of cosines in a sum of exponentials, but then somehow doesn't get real values (and thus can't plot the function in the p

[sage-support] Re: failed to import mpi4py.MPI

2011-01-30 Thread maldun
Ever tried an upgrade? I updated mpi4py to 1.2.2 recently: http://trac.sagemath.org/sage_trac/ticket/8538 Hope it helps, maldun On 26 Jan., 16:12, Harald Schilly wrote: > On Wednesday, December 22, 2010 4:23:56 PM UTC+1, Brunetto Marco Ziosi > wrote: > > > > > Do you have any suggest please???

[sage-support] Re: help needed with cube

2011-01-30 Thread Loïc
Do you think it's better to report it as a bug? Loïc PS: A little program that draws Menger's sponge def menger(size,p,x,y,z,start): if(p>0): start+=1 newsize=size/3 graphic=menger(newsize,p-1,x+newsize,y+newsize,z,start) l=[(x+newsize,y-newsize,z),(x-newsize,

[sage-support] L2 algorithm

2011-01-30 Thread Santanu Sarkar
Weather L2-algorithm of Nguyen,and Stehl´e is implemented in Sage? -- 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.google.com/group/

Re: [sage-support] Re: Error starting sage after a source build

2011-01-30 Thread Jorge Scandaliaris
2011/1/30 Simon King > Hi Jorges, > > Usually I build and install it just for myself, i.e., as a normal > user. Actually I don't have root access on the computer in my office. > That' no problem for working with Sage. > > Cheers, > Simon > > Thanks, I am building sage again, to be able to post th

Re: [sage-support] Re: help needed with cube

2011-01-30 Thread Robert Bradshaw
On Sun, Jan 30, 2011 at 2:55 AM, Loïc wrote: > Thanks you very much for your reply > > You're right, size affects the center too. > Not very intuituive but now, I know it. > > I think this behaviour is quite surprising. > For example, with sphere, size doesn't affect center I might go so far

[sage-support] Re: help needed with cube

2011-01-30 Thread Loïc
Thanks you very much for your reply You're right, size affects the center too. Not very intuituive but now, I know it. I think this behaviour is quite surprising. For example, with sphere, size doesn't affect center On 29 jan, 20:04, Francois Maltey wrote: > Hello, > > > I was making som

[sage-support] Re: Error starting sage after a source build

2011-01-30 Thread Simon King
Hi Jorges, On 30 Jan., 04:04, Jeff Post wrote: > On Saturday 29 January 2011 17:43, jorges wrote: > > > Maybe this is a dumb question, but should sage be built by root? > > I'm not sure this applies to Sage, since I haven't yet got it to work, but in > general, software should be built as an ordi