Re: [sage-support] Re: sage 5.0 rc0

2012-05-07 Thread Keshav Kini
On Mon, May 7, 2012 at 1:01 PM, Johan Grönqvist wrote: > As all tests pass for my wheezy, let me know if there is anything I can do > to see where we differ. I do have ipython 0.12 (which is 0.11 or newer, and > I do not get the error. Hmm. I can't reproduce it on wheezy either. -Keshav Jo

[sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Priyanka Kapoor
I plotted circle using parametric equation, using circle() function. But i want to plot x^2+y^2=4 I tried this: var('x,y') b=[x^2+y^2==4] c=plot(b,(x,-2,2),(y,-2,2),color='blue') c.save('ram.png') I am getting the following error TypeError: float() argument must be a string or a number Can anyone

Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread P Purkayastha
On Monday, May 7, 2012 10:20:49 AM UTC+8, kjetil1001 wrote: > > inline: > > On Sun, May 6, 2012 at 10:10 PM, P Purkayastha wrote: > >> Do you have some kind of firewall running? The error seems strange: >> RuntimeError: no available port. >> >> Well, this is my private laptop. (used from the uni

Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread Priyanka Kapoor
> It looks like you want TeX to do the loop. Try the forloop package: > http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/ > How to pass value of list in sageblock to variable used in \forloop -- Priyanka Kapoor http://kapoorpriyanka.in Linux User Group, Ludhiana -- To post to th

[sage-support] Re: sage+latex

2012-05-07 Thread David Joyner
I'm not sure what your question is. You might want sagetex? Google it to see if that answers your question. In general, such questions are asked on sage-support or sage-edu. Please consider joinng them! On Mon, May 7, 2012 at 12:27 AM, arshpreet singh wrote: > hello sir, i am a beginner sage us

Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread arshpreet singh
On Mon, May 7, 2012 at 3:12 PM, Priyanka Kapoor wrote: >> It looks like you want TeX to do the loop. Try the forloop package: >> http://www.ctan.org/tex-archive/macros/latex/contrib/forloop/ >> > > How to pass value of list in sageblock to variable used in \forloop may be it can help http://mathem

Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread Priyanka Kapoor
>> How to pass value of list in sageblock to variable used in \forloop > may be it can help http://mathematics.nsetzer.com/latex/latex_for_loop.html It just tell how to apply forloop. -- Priyanka Kapoor http://kapoorpriyanka.in Linux User Group, Ludhiana -- To post to this group, send email

Re: [sage-support] Array and Loop in Sagetex

2012-05-07 Thread arshpreet singh
> It just tell how to apply forloop. ok . i am waiting for my sage-code to be compiled.it is taking t long :) after that we solve -- 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

Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Hakan Granath
You might want to use implicit_plot instead: var('x,y') b = x^2+y^2==4 c = implicit_plot(b,(x,-2,2),(y,-2,2),color='blue') c.save('ram.png') /Håkan -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googl

Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Priyanka Kapoor
> You might want to use implicit_plot instead: > > var('x,y') > b = x^2+y^2==4 > c = implicit_plot(b,(x,-2,2),(y,-2,2),color='blue') > c.save('ram.png') > It gives the following error TypeError: 'tuple' object is not callable -- Priyanka Kapoor http://kapoorpriyanka.in Linux User Group, Ludhian

Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Hakan Granath
On Mon, May 7, 2012 at 1:24 PM, Priyanka Kapoor wrote: >> You might want to use implicit_plot instead: >> >> var('x,y') >> b = x^2+y^2==4 >> c = implicit_plot(b,(x,-2,2),(y,-2,2),color='blue') >> c.save('ram.png') >> > It gives the following error > TypeError: 'tuple' object is not callable Pleas

[sage-support] Re: Recognizing real numbers

2012-05-07 Thread Duc Trung Ha
With very kind & generous help of Robert Samal following solution was proposed: bool(x.n() != NaN) should give out True iff x is a real number. It seems to work: http://aleph.sagemath.org/?z=eJxLVLBV0DXUNzTSKshU0FYAs4oLi0o0DM0gIgWZcUZAysjUTBNImegbcyUBtSQWJSfnF2sYaXJxFRRl5pUoJOXn52gk6uVpaCoo2ir4J

[sage-support] Re: Recognizing real numbers

2012-05-07 Thread Duc Trung Ha
Of course, x.n().is_real() condition needs to be added as in: http://aleph.sagemath.org/?z=eJxLVLBV0DXUNzTSKshU0FYAs4oLi0o0DM0gIgWZcUZAysjUTBNImegbcyUBtSQWJSfnF2sYaXIlE2GAhpGWpyaqIVwFRZl5JQpJ-fk5Gol6eRqaCoq2Cn6JfgqJeSkKYAG9zOL4otTEHA1NTWTFSeiKk_AoTkZXnIymGAAkrEPy On Monday, May 7, 2012 1:56:21 PM

[sage-support] sage installation time from source code

2012-05-07 Thread arshpreet singh
i am installing sage from source code and after pressing the make command the installation is occouring from last 3 hours.please tell me how much time it will take? i am using intel dual core 2.7 GHZ with 2GB of DDR2 ram -- Thanks Arshpreet singh http://arshpreetsingh.wordpress.com/ -- To post

[sage-support] Re: sage+latex

2012-05-07 Thread Jason Grout
On 5/7/12 4:56 AM, David Joyner wrote: I'm not sure what your question is. You might want sagetex? Google it to see if that answers your question. In general, such questions are asked on sage-support or sage-edu. Please consider joinng them! I was going to suggest exactly the same thing in res

[sage-support] Re: sage+latex

2012-05-07 Thread Nathann Cohen
> > I was going to suggest exactly the same thing in response to the same > personal email you sent me. It would be much better if you posted such > questions to sage-support, rather than emailing developers personally. > I received it too -_- Nathann -- To post to this group, send email t

Re: [sage-support] sage installation time from source code

2012-05-07 Thread Jan Groenewald
Hi Probably 5 or 6 hours. Regards, Jan On 7 May 2012 14:31, arshpreet singh wrote: > i am installing sage from source code and after pressing the make > command the installation is occouring from last 3 hours.please tell me > how much time it will take? > i am using intel dual core 2.7 GHZ wi

Re: [sage-support] sage installation time from source code

2012-05-07 Thread arshpreet singh
On Mon, May 7, 2012 at 7:27 PM, Jan Groenewald wrote: > Hi > > Probably 5 or 6 hours. thanks for reply sir/ :) why it takes too much time? -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.co

[sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Keshav Kini
Kjetil brinchmann Halvorsen writes: > Notebook() is not working: (I am calling this from within a shell in emacs) And if you try it from, say, bash? I note that the code gives up trying to find ports if it receives 10 or more keyboard interrupts - perhaps something about the input stream from Ema

Re: [sage-support] Re: sage 5.0 rc0

2012-05-07 Thread Kjetil brinchmann Halvorsen
see below. On Mon, May 7, 2012 at 1:01 AM, Johan Grönqvist wrote: > 2012-05-07 04:16, Kjetil brinchmann Halvorsen skrev: > > >>Do you use anything that may affect sage's ability to open ports? >> >> >> My problem with answering is that I don't really know anything about >> "ports" . I guess

Re: [sage-support] sage installation time from source code

2012-05-07 Thread Jan Groenewald
Hi On 7 May 2012 16:10, arshpreet singh wrote: > On Mon, May 7, 2012 at 7:27 PM, Jan Groenewald wrote: > > Hi > > > > Probably 5 or 6 hours. > thanks for reply sir/ :) > why it takes too much time? > It is compiling many packages -- the components of sage, e.g. python, maxima, singular, atlas,

Re: [sage-support] Re: sage 5.0 rc0

2012-05-07 Thread Keshav Kini
On Mon, May 7, 2012 at 1:01 PM, Johan Grönqvist wrote: > This also works for local > networking, it does not matter if the request to port 80 came from the > outside or from another program running on the same machine. Well, this is not strictly true. It is only true if the server is listening on

Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Kjetil brinchmann Halvorsen
see inline. On Mon, May 7, 2012 at 10:41 AM, Keshav Kini wrote: > Kjetil brinchmann Halvorsen writes: > > Notebook() is not working: (I am calling this from within a shell in > emacs) > > And if you try it from, say, bash? I note that the code gives up trying > to find ports if it receives 10 o

Re: [sage-support] Drawing Circle using simple equation of circle

2012-05-07 Thread Priyanka Kapoor
> Please note that I wrote > > b = x^2+y^2==4 I got a plot.thank you. Sir , can't we draw it using plot() function. -- Priyanka Kapoor http://kapoorpriyanka.in Linux User Group, Ludhiana -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, sen

[sage-support] Re: Drawing Circle using simple equation of circle

2012-05-07 Thread Jason Grout
On 5/7/12 10:27 AM, Priyanka Kapoor wrote: Please note that I wrote b = x^2+y^2==4 I got a plot.thank you. Sir , can't we draw it using plot() function. No, because it's not a y=... function. If all you want is a circle, you can also use the circle function: circle((0,0), 4) Thanks, Jas

[sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Keshav Kini
Kjetil brinchmann Halvorsen writes: > ¿Why so many open ports? For the moments, the only programs I have running is > firefox, synaptic, skype and a terminal emulator! The second portion (where the lines start with "unix") represent inter-process communication sockets, not network sockets, if tha

[sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Keshav Kini
Kjetil brinchmann Halvorsen writes: > That is, the same problem. Kjetil Hmm. Well, I know this is a sort of asking a lot of you, but would you try using the rewritten notebook version at trac ticket #11080 ( http://trac.sagemath.org/sage_trac/ticket/11080 ) and see if that works? Hopefully it wil

Re: [sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Kjetil brinchmann Halvorsen
see inline. On Mon, May 7, 2012 at 1:17 PM, Keshav Kini wrote: > Kjetil brinchmann Halvorsen writes: > > That is, the same problem. Kjetil > > Hmm. Well, I know this is a sort of asking a lot of you, but would you > try using the rewritten notebook version at trac ticket #11080 ( > http://trac.

[sage-support] ./sage -docbuild ?

2012-05-07 Thread Kjetil brinchmann Halvorsen
doing: kjetil@kjetil:~/sage/sage-5.0.rc0$ ./sage -docbuild reference pdf sphinx-build -b latex -d /home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/output/doctrees/en/reference /home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/en/reference /home/kjetil/sage/sage-5.0.rc0/devel/sage/doc/output/latex/en/r

[sage-support] Re: ./sage -docbuild ?

2012-05-07 Thread Johan Grönqvist
2012-05-07 22:28, Kjetil brinchmann Halvorsen skrev: kjetil@kjetil:~/sage/sage-5.0.rc0$ ./sage -docbuild reference pdf [...] ! LaTeX Error: File `utf8x.def' not found. [...] ! ==> Fatal error occurred, no output PDF file produced! That command works on my wheezy, but I do not have that file

[sage-support] Still no way to use interact in published notebooks?

2012-05-07 Thread allycat
Hello, I have spent the past few days trying to figure out the best way to make an interactive web application related to some computational biology calculations. It seems like Sage could be a great way to do this: the code could easily be written in Sage and @interact could be used to create t

Re: [sage-support] Still no way to use interact in published notebooks?

2012-05-07 Thread Dan Drake
On Mon, 07 May 2012 at 09:54PM -0700, allycat wrote: > I have spent the past few days trying to figure out the best way to > make an interactive web application related to some computational > biology calculations. It seems like Sage could be a great way to do > this: the code could easily be writt

[sage-support] Re: Still no way to use interact in published notebooks?

2012-05-07 Thread Jason Grout
On 5/7/12 11:54 PM, allycat wrote: Hello, I have spent the past few days trying to figure out the best way to make an interactive web application related to some computational biology calculations. It seems like Sage could be a great way to do this: the code could easily be written in Sage and @

[sage-support] Re: sage 5.0 rc0 notebook() not working!

2012-05-07 Thread Keshav Kini
Kjetil brinchmann Halvorsen writes: > I will try, but since I have not done this sort of things with sage before, > ¿How to do it? It is as simple as drop-in repacing one (or a few files) All > the > files have the same name(s) as corresonding old files, so now change to the > Makefile is necessa

[sage-support] Re: ./sage -docbuild ?

2012-05-07 Thread Keshav Kini
Johan Grönqvist writes: > (The package texlive-latex-extra contains a file named utf8x.def, as > can be seen by, e.g., searching on .) By the way, a faster way to find out what package created / "owns" a file on Debian is to use the `apt-file` utility, which caches this information locally for in