Re: [sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Dima Pasechnik
On Wed, Mar 4, 2020 at 12:20 AM Fernando Gouvea wrote: > > But no, it doesn't work, since it gives a rectangular plot instead of one in > polar coordinates. But maybe we are closer. I looked at the labels on the axes, and they do match the ranges of r and phi, so I don't udnerstand how it's poss

Re: [sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Fernando Gouvea
But no, it doesn't work, since it gives a rectangular plot instead of one in polar coordinates. But maybe we are closer. I still think implicit_plot should be smarter about values that do not make sense. Fernando On 3/3/2020 6:26 PM, Dima Pasechnik wrote: even better: sage: var('x y u v r

Re: [sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Fernando Gouvea
Nice idea. Thanks. Fernando On Tue, Mar 3, 2020 at 6:27 PM Dima Pasechnik wrote: > even better: > > sage: var('x y u v r phi') > : u=r*cos(phi) > : v=r*sin(phi) > : x=u*sqrt(9/(1-r^2)) > : y=v*sqrt(9/(1-r^2)) > : implicit_plot(y^2-x^3+x==0,(r,0,999/1000),(phi,-pi,pi)) > > On

Re: [sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Dima Pasechnik
even better: sage: var('x y u v r phi') : u=r*cos(phi) : v=r*sin(phi) : x=u*sqrt(9/(1-r^2)) : y=v*sqrt(9/(1-r^2)) : implicit_plot(y^2-x^3+x==0,(r,0,999/1000),(phi,-pi,pi)) On Tue, Mar 3, 2020 at 10:28 PM Dima Pasechnik wrote: > > On Tue, Mar 3, 2020 at 10:10 PM Fernando Gouve

Re: [sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Dima Pasechnik
On Tue, Mar 3, 2020 at 10:10 PM Fernando Gouvea wrote: > > The whole point of this is to show the behavior of the curve near infinity, > so changing the limits is not an option. just paste together a number of rectangles where (u,v) stay inside the unit circle. (yes, this would need writing a lo

Re: [sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Augustin Lefèvre
A caveat is that at the boundary, the mapping you describe becomes non differentiable (the determinant of the differential blows up to infinity), so it's going to be painful for implicit_plot to work. That being said, the following tweak runs ok but it's not ex

Re: [sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Fernando Gouvea
The whole point of this is to show the behavior of the curve near infinity, so changing the limits is not an option. Fernando On 3/3/2020 4:15 PM, Dima Pasechnik wrote: On Tue, Mar 3, 2020 at 8:20 PM Fernando Gouvea wrote: Here's what I ended up trying, with r=3: var('x y u v') x=u*sqrt(9/(

Re: [sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Dima Pasechnik
On Tue, Mar 3, 2020 at 9:15 PM Dima Pasechnik wrote: > > On Tue, Mar 3, 2020 at 8:20 PM Fernando Gouvea wrote: > > > > Here's what I ended up trying, with r=3: > > > > var('x y u v') > > x=u*sqrt(9/(1-u^2-v^2)) > > y=v*sqrt(9/(1-u^2-v^2)) > > implicit_plot(y^2-x^3+x==0,(u,-1,1),(v,-1,1)) > > > >

Re: [sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Dima Pasechnik
On Tue, Mar 3, 2020 at 8:20 PM Fernando Gouvea wrote: > > Here's what I ended up trying, with r=3: > > var('x y u v') > x=u*sqrt(9/(1-u^2-v^2)) > y=v*sqrt(9/(1-u^2-v^2)) > implicit_plot(y^2-x^3+x==0,(u,-1,1),(v,-1,1)) > > That gives an error: > > /opt/sagemath-8.9/local/lib/python2.7/site-packages

[sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Fernando Gouvea
Here's what I ended up trying, with r=3: var('x y u v') x=u*sqrt(9/(1-u^2-v^2)) y=v*sqrt(9/(1-u^2-v^2)) implicit_plot(y^2-x^3+x==0,(u,-1,1),(v,-1,1)) That gives an error: /opt/sagemath-8.9/local/lib/python2.7/site-packages/sage/ext/interpreters/wrapper_rdf.pyx insage.ext.interpreters.wrapper_r

Re: [sage-support] Error building sage on Xubuntu 18.04.4 LTS

2020-03-03 Thread K2
It worked. I just removed everything and downloaded and built it again, following to the steps in your first reply. Thanks a lot :) On Tuesday, 3 March 2020 22:11:36 UTC+5:30, Dima Pasechnik wrote: > > anyhow, Sage needs R version 3.4.4 or later, > so this is provided by Ubuntu's r-base-dev pack

Re: [sage-support] Error building sage on Xubuntu 18.04.4 LTS

2020-03-03 Thread Dima Pasechnik
anyhow, Sage needs R version 3.4.4 or later, so this is provided by Ubuntu's r-base-dev package. Did you try it? (Unless you must use a newer R for some reason...) On Tue, Mar 3, 2020 at 2:55 PM K2 wrote: > > Hi, > Thanks for the quick help. > I have experimented with installing several versions

Re: [sage-support] Error building sage on Xubuntu 18.04.4 LTS

2020-03-03 Thread Dima Pasechnik
what exactly are these versions of R packages? (with urls) One needs development packages, ones that come with headers. Please post config.log as well On Tue, 3 Mar 2020, 14:55 K2, wrote: > Hi, > Thanks for the quick help. > I have experimented with installing several versions of R : > 3.6.2-

Re: [sage-support] Error building sage on Xubuntu 18.04.4 LTS

2020-03-03 Thread K2
Hi, Thanks for the quick help. I have experimented with installing several versions of R : 3.6.2-1bionic 3.6.3-1bionic But None of them are recognized, and the configure still says: *r-3.6.2.p0: no suitable system package; will be installed as an SPKG* On T

Re: [sage-support] Error building sage on Xubuntu 18.04.4 LTS

2020-03-03 Thread Dima Pasechnik
This is a known problem. One way to work around it is to install R and related packages from the system. We recommend that you do $ sudo apt-get install bc binutils bzip2 cliquer curl g++ g++ gcc gcc gfan gfortran git gmp-ecm lcalc libboost-dev libbz2-dev libcliquer-dev libcurl4-openssl-dev libec-

[sage-support] Error building sage on Xubuntu 18.04.4 LTS

2020-03-03 Thread K2
Am not able to build sage from the source code on my xubuntu. I am getting an error in build of r-3.6.2.p0 I have attached the log files below -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving ema