[sage-support] Re: Why c.real() and c.imag() works so slow?

2008-09-04 Thread vakaras
ason to move. On Sep 3, 7:26 pm, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Sep 3, 2008, at 6:38 AM, vakaras wrote: > > > > > I now see that I have had to write a reason why I want a plain sage > > script, which generates Mandelbrot set. I want to show for students

[sage-support] Re: Why c.real() and c.imag() works so slow?

2008-09-03 Thread vakaras
I now see that I have had to write a reason why I want a plain sage script, which generates Mandelbrot set. I want to show for students, who haven't coding before, how easy is to generate Mandelbrot set with sage. After adding some additional functions and classes to sage init everything should be

[sage-support] Re: Why c.real() and c.imag() works so slow?

2008-08-31 Thread vakaras
py real13m24.017s user6m40.961s sys 0m5.896s Has anybody more good ideas? On Aug 31, 10:50 am, Robert Bradshaw <[EMAIL PROTECTED]> wrote: > On Aug 31, 2008, at 12:06 AM, vakaras wrote: > > > > > > > Hello, > > > I tried to plot Mandelbrot set using

[sage-support] Why c.real() and c.imag() works so slow?

2008-08-31 Thread vakaras
Hello, I tried to plot Mandelbrot set using sage, but function atkrenta works too long (sometimes longer than 1 second). It seems that the main problem is z.real() and z.imag() methods. Is here any method to make this to work fast enough? Here is my code: n = 200; x = 200; y = 200; x1 = -1; x2

[sage-support] Re: how to set coding to utf-8 in sage script

2008-03-31 Thread vakaras
running install_lib copying build/lib.linux-i686-2.5/sage/misc/interpreter.py -> /home/ vakaras/sage/local/lib/python2.5/site-packages/sage/misc byte-compiling /home/vakaras/sage/local/lib/python2.5/site-packages/ sage/misc/interpreter.py to interpreter.pyc running install_scripts changing mode of

[sage-support] Re: how to set coding to utf-8 in sage script

2008-03-31 Thread vakaras
| SAGE Version 2.10.2, Release Date: 2008-02-22 On Mar 30, 6:33 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On 3/30/08, vakaras <[EMAIL PROTECTED]> wrote: > > > > > Hello, > > > How to set coding in "*.sage" script to utf-8 ? > &

[sage-support] how to set coding to utf-8 in sage script

2008-03-30 Thread vakaras
Hello, How to set coding in "*.sage" script to utf-8 ? I have a script: # coding: utf-8 print "klaidelė"; When I try to run it, I get: $ sage script.sage File "script.py", line 4 SyntaxError: Non-ASCII character '\xc4' in file script.py on line 4, but no encoding declared; see http://www.pytho

[sage-support] Re: How to get non-axis aligned ellipsoid?

2008-03-26 Thread vakaras
Yes, thanks. On Mar 25, 9:55 pm, Jason Grout <[EMAIL PROTECTED]> wrote: > VAkaras Liutinkevicius wrote: > > How to get non-axis aligned ellipsoid? > > > If I do this: > > sage: a, b = var('a,b') > > sage: fx = 3*cos(b)*cos(a) > > sage: fy

[sage-support] How to get non-axis aligned ellipsoid?

2008-03-25 Thread VAkaras Liutinkevicius
os(a) sage: fy = cos(b)*sin(a) sage: fz = sin(b) sage: P = parametric_plot3d([fx, fy, fz], (b, -pi/2, pi/2), (a, -pi, pi), frame=False) sage: P.show() -- Pagarbiai Vakaras Liutinkevičius --~--~-~--~~~---~--~~ To post to this group, send email to sage-support@google

[sage-support] Re: sage crashes on p.show() command

2008-03-02 Thread vakaras
I have compiled from source. Now it works. If I backup this compiled on my computer sage version, then reinstall my operating system, then restore sage. Should sage work? On Feb 29, 6:17 pm, "William Stein" <[EMAIL PROTECTED]> wrote: > On Fri, Feb 29, 2008 at 9:52 AM, vakara