Re: [sage-support] Re: strange plot

2024-09-28 Thread Fernando Gouvea
failed, I looked at what ?min said, and didn't get much out of it. Had it mentioned "see also min_symbolic" or something of the kind, that would have been a clue. Fernando On 9/25/2024 12:52 PM, Nils Bruin wrote: On Wednesday 25 September 2024 at 08:34:09 UTC-7 julian...@g

[sage-support] strange plot

2024-09-25 Thread Fernando Gouvea
ns of what is happening? Thanks, Fernando -- = Fernando Q. Gouveahttp://www.colby.edu/~fqgouvea Carter Professor of Mathematics Dept. of Mathematics Colby College 5836 Mayflower Hill Waterville, ME 04901 Time is nature's way of m

[sage-support] Issues with real precision

2024-02-23 Thread Fernando Gouvea
1.0*g(n,k,r),k,0,n) sage: f(365,2000).unhold() 0.0 It works better if I rewrite the function with ((n-k)/n)^r, of course. I presume the issue is that the default precision for real numbers is not enough to handle the computation. How do I tell SageMath to use a highe

Re: [sage-support] Re: limitations of "solve"?

2023-12-03 Thread Fernando Gouvea
Is there a way to change the default when calling "solve"? Fernando On 12/3/2023 8:37 AM, Dima Pasechnik wrote: Yes, Sage modifies the defaults of Maxima, in particular we set domain to complex. On 3 December 2023 12:28:45 GMT, Oscar Benjamin wrote: On Wed, 29 Nov 2023 at 1

[sage-support] Re: limitations of "solve"?

2023-11-28 Thread Fernando Q. Gouvea
Answering part of my question: it seems that sympy and maxima have different attitudes towards fractional powers of negative numbers, which may be the source of the problem. If I change to g(x,y)=x^2+6*y then "solve" has no problem finding x=2*sqrt(6), y=16. Fernando On 11/28/202

[sage-support] limitations of "solve"?

2023-11-28 Thread Fernando Q. Gouvea
e constraint equation 5x^2 + 6y=120 is easily solved for y... Questions: 1) Shouldn't SageCell output an empty list here? 2) Is this a known limitation of "solve"? Fernando PS: It seems that if I add "algorithm='sympy'" then solutions are found. -- =

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Can you upload the full log with `LD_DEBUG=libs` and jupyterlab somewhere and post a link? Isuru On Wed, May 31, 2023 at 3:46 PM Luis Finotti wrote: > Hello, > > Thanks for the help! > > On Wednesday, May 31, 2023 at 4:24:11 PM UTC-4 Isuru Fernando wrote: > > Try running

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
> File > "/home/finotti/.local/lib/python3.11/site-packages/jupyter_server/services/kerne > ls/websocket.py", line 67, in get >await super().get(kernel_id=kernel_id) > File "/usr/lib/python3/dist-packages/tornado/websocket.py", line 277

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Try adding import sage.all to the top of /home/finotti/src/sage-10.0/src/sage/repl/ipython_kernel/__main__.py Isuru On Wed, May 31, 2023 at 5:23 PM Luis Finotti wrote: > > On Wednesday, May 31, 2023 at 6:10:42 PM UTC-4 Isuru Fernando wrote: > > Which givaro library is loaded

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Which givaro library is loaded when you do `export LD_DEBUG=libs` and run sage from the command line? Isuru On Wed, May 31, 2023 at 5:02 PM Luis Finotti wrote: > > > On Wednesday, May 31, 2023 at 5:29:25 PM UTC-4 Isuru Fernando wrote: > > Does `import sage.all` in a sage shell w

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Does `import sage.all` in a sage shell work? Isuru On Wed, May 31, 2023 at 3:46 PM Luis Finotti wrote: > Hello, > > Thanks for the help! > > On Wednesday, May 31, 2023 at 4:24:11 PM UTC-4 Isuru Fernando wrote: > > Try running JupyterLab in a shell with `export LD_DEBUG=li

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
Try running JupyterLab in a shell with `export LD_DEBUG=libs` and import sage with that jupyterlab instance. That should tell you where givaro is loaded from. Isuru On Wednesday, May 31, 2023 at 2:46:14 PM UTC-5 Isuru Fernando wrote: > That's a different issue than this. > > Is

Re: [sage-support] Re: sage-10.0 not working in Jupyter Lab

2023-05-31 Thread Isuru Fernando
That's a different issue than this. Isuru On Wed, May 31, 2023 at 2:37 PM Jan Groenewald wrote: > Hi > > This https://groups.google.com/g/sage-support/c/egP7I9eGLuI/m/MsUUNLEUAQAJ > suggests trying clang 14 for compiling sage or waiting for givaro compiled > with clang 15. > > (or just try rebu

Re: [sage-support] Re: Sage Crash Report

2023-05-31 Thread Isuru Fernando
This is an ABI incompatibility with clang 14 and 15 where givaro was compiled with 14 and sage was compiled with 15. I suggest downgrading to clang 14 or set flags like https://github.com/conda-forge/sagelib-feedstock/blob/5542b278f642b772ae243b323c7cbc7a170a5f9a/recipe/build.sh#L21-L25 until we re

[sage-support] A very short introduction to Sage

2023-04-17 Thread Fernando Gouvea
this. Thanks, Fernando -- = Fernando Q. Gouveahttp://www.colby.edu/~fqgouvea Carter Professor of Mathematics Dept. of Mathematics Colby College 5836 Mayflower Hill Waterville, ME 04901 We believe that all religions are basically the sam

Re: [sage-support] what am I missing?

2023-04-13 Thread Fernando Gouvea
I get the same results in 9.2 and 9.6. Fernando On 4/13/2023 4:17 PM, William Stein wrote: Hi, I think I randomly ran into this same thing with sage-9.8 this week too.  My guess is that there is some sort of overflow bug in the computation of the y-axis labels.  It's probably one o

[sage-support] what am I missing?

2023-04-13 Thread Fernando Gouvea
I must be missing something here... sage: g(x)=x^10/(1-x)^11 sage: plot(g(x),(0,0.9)) sage: g(0.7) 15945.8104850773 What's wrong? Fernando -- = Fernando Q. Gouveahttp://www.colby.edu/~fqgouvea Carter Professor of Mathematics

Re: [sage-support] Current advice for generic SageMath install advice

2023-03-27 Thread Isuru Fernando
uilds sage with bliss and sirocco, but they are not installed by default when you install sage. You need to install bliss and sirocco to get that functionality. Isuru On Mon, Mar 27, 2023 at 8:35 PM Nils Bruin wrote: > On Monday, 27 March 2023 at 17:47:54 UTC-7 Isuru Fernando wrote: > &g

Re: [sage-support] Current advice for generic SageMath install advice

2023-03-27 Thread Isuru Fernando
Hi, > However: https://anaconda.org/conda-forge/sage seems to indicate that various architecture-specific builds are woefully outdated: "noarch" seems to be on point, but the architecture-specific ones seem stuck on 9.2. Am I reading the info wrong? Obviously I don't want to point people to 9.2 in

[sage-support] New edition of undergraduate book?

2022-09-29 Thread Fernando Salamero
Hello! Some news about the new edition of "Sage for Undergraduates"? I think it was announced for august. Thanks! -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [sage-support] Sage Crash Report

2022-08-22 Thread Isuru Fernando
Can you try the following? conda install mamba -n base conda config --add channels conda-forge conda config --set channel_priority strict mamba create -n sagetest sage conda activate sagetest sage On Sun, Aug 21, 2022 at 6:24 PM Robert Parini wrote: > Using conda on macOS 12.4 (with Apple silic

Re: [sage-support] Sage Crash Report

2022-08-21 Thread Isuru Fernando
Can you share the output of the following command? conda list -n sagetest On Sun, Aug 21, 2022 at 6:24 PM Robert Parini wrote: > Using conda on macOS 12.4 (with Apple silicon) I get the attached error > after installing sage with: > > conda create -n sagetest sage > conda activate sagetest > sa

[sage-support] when was real_nth_root added?

2022-06-10 Thread Fernando Gouvea
My college provides a Jupyter interface to Sage that runs version 9.0. I just tried using the real_nth_root function and got a "no such function" error. Was the function added after 9.0? Or is this an installation problem? Thanks,

Re: [sage-support] tachyon not found (SageMath 9.5, running on an Intel-based Mac)

2022-05-09 Thread Isuru Fernando
conda activate sage-build should do the trick. Isuru On Mon, May 9, 2022 at 6:03 AM Dima Pasechnik wrote: > > > On Mon, 9 May 2022, 11:49 harald@gmail.com, > wrote: > >> ... or add it to the PATH, I suppose. But how do I find it now? > > > searching config.log for tachyon gives > > /Users

[sage-support] plotting tangent vectors to a curve

2022-04-08 Thread Fernando Q. Gouvea
There is an easy way to plot vector fields in Sage. Is there an easy way to plot a curve and (some of) its tangent vectors? I don't think plot_vector_field would play along if I wanted to restrict to a curve. Fer

Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Fernando Gouvea
Ubuntu includes python3, but not python without a number. I guess I could make a symlink? Fernando On Sun, Feb 27, 2022 at 5:57 PM Dima Pasechnik wrote: > On Sun, Feb 27, 2022 at 9:59 PM Fernando Gouvea > wrote: > > > > I was trying to install SageMath using WSL, mostly

Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Fernando Gouvea
ce.py'. Now what? Fernando On 2/27/2022 3:46 PM, Matthias Koeppe wrote: +1 on adding info on how to install Linux distributions with up-to-date binary packages of Sage to our installation guide. See https://trac.sagemath.org/ticket/31485 (The updated installation guide, preview

Re: [sage-support] Re: SageMath on Microsoft Windows

2022-02-27 Thread Fernando Gouvea
I don’t see archlinux in the Microsoft store. Fernando On Sun, Feb 27, 2022 at 10:05 AM Dima Pasechnik wrote: > > > On Sun, 27 Feb 2022, 14:37 G. M.-S., wrote: > >> >> Thanks, Samuel. >> >> I think it is a pity there is nothing more straightforward… >

Re: [sage-support] Re: Inter-versions reproducibility problem of random elements.

2022-02-06 Thread Fernando Gouvea
.3 on Windows tomorrow. Fernando On 2/6/2022 2:36 PM, Emmanuel Charpentier wrote: Also : coud you report the results on as many platforms and/or versions as possible ? Le dimanche 6 février 2022 à 20:23:39 UTC+1, Emmanuel Charpentier a écrit : Seen in this thread <https://groups.goog

Re: [sage-support] another "how to simplify" question

2021-12-08 Thread Fernando Q. Gouvea
I see. So the difference between this and, say, 1+1==2 (which returns True) is that 1+1 and 2 are numbers, not symbolic things. Fernando On 12/8/2021 3:37 PM, William Stein wrote: On Wed, Dec 8, 2021 at 12:22 PM Fernando Q. Gouvea wrote: Thank you, that works. What is strange is

Re: [sage-support] another "how to simplify" question

2021-12-08 Thread Fernando Q. Gouvea
think I don't understand the difference between real(wrong)==right and bool(real(wrong)==right). Fernando On 12/8/2021 1:23 PM, William Stein wrote: You can compare the real and imaginary parts directly. https://cocalc.com/wstein/support/2021-12-08-gouvea sage: bool(wrong.real()==right)

[sage-support] another "how to simplify" question

2021-12-08 Thread Fernando Q. Gouvea
- 2*(-1)^(1/4))*e^(-I) == -1/2*cos(1) + 1/2 Thanks, Fernando -- == Fernando Q. Gouvea Carter Professor of Mathematics Colby College Mayflower Hill 5836 Waterville, ME 04901 fqgou...@colby.edu http://www.colby.edu/~fq

Re: Fwd: [sage-support] Sage 9.3 for Windows crashing

2021-11-26 Thread Fernando Gouvea
the result. Fernando On 11/26/2021 12:21 PM, Dima Pasechnik wrote: On Fri, 26 Nov 2021, 17:20 Kai Weber, wrote: Hi, I do have the same problem. I can't use plot() - not even a plot(1) with a constant . I am running Sage 9.3 on Windows 11 and Surface Book 3. I understand that the p

Re: Fwd: [sage-support] Sage 9.3 for Windows crashing

2021-09-22 Thread Fernando Gouvea
Update: the problem is machine-dependent. On one Dell laptop, plot works with no problem. On a different one, big crash. Fernando On 9/22/2021 3:49 PM, William Stein wrote: -- Forwarded message - From: Fernando Q. Gouvea Date: Wed, Sep 22, 2021 at 12:26 PM Subject: Re: [sage

[sage-support] Sage 9.3 for Windows crashing

2021-09-22 Thread Fernando Q. Gouvea
terminate. /opt/sagemath-9.3/src/bin/sage-python: line 2:  1535 Segmentation fault  (core dumped) sage -python "$@" Any ideas as to what is going on?

Re: [sage-support] linbox compilation failed (9.4.beta3, conda)

2021-06-28 Thread Isuru Fernando
for sagemath? > > Vincent > > Le 28/06/2021 à 16:58, Isuru Fernando a écrit : > > Can you try passing `--with-ocl=no` to linbox's configure? > > > > Isuru > > > > On Mon, Jun 28, 2021 at 9:44 AM Vincent Delecroix < > 20100.delecr...@gmail.com>

Re: [sage-support] linbox compilation failed (9.4.beta3, conda)

2021-06-28 Thread Isuru Fernando
Can you try passing `--with-ocl=no` to linbox's configure? Isuru On Mon, Jun 28, 2021 at 9:44 AM Vincent Delecroix <20100.delecr...@gmail.com> wrote: > Dear all, > > I am not able to compile the sage source code in a conda environment > (build failure with linbox). You will find all log files in

Re: [sage-support] Unable to import Normaliz

2021-06-06 Thread Isuru Fernando
You need to install `pynormaliz` by doing `conda install pynormaliz`. Isuru On Sun, Jun 6, 2021 at 8:56 AM Dima Pasechnik wrote: > you should do these installations at conda prompt, > not at Sage's prompt. > > On Sun, 6 Jun 2021, 13:10 Hriday Bharat Thakkar, > wrote: > >> This is an update. I

Re: [sage-support] Sage Crash Report

2021-03-24 Thread Isuru Fernando
Mike, Can you try creating a new conda environment? This is an issue with the latest givaro build we had and we marked it as broken. Details at https://github.com/conda-forge/givaro-feedstock/issues/13 (You could also try doing `conda install "givaro=4.1.1=h192cbe9_1"` to get the older link.) Is

Re: [sage-support] problems again installing Sage9.1 (and 9.2)

2021-03-18 Thread Isuru Fernando
> (Not sure whether with Conda one would get it, or it's not in Conda) It's not in conda. We have almost all the gap packages except for a few problematic ones. (compile failures) `kbmag` is one of them. https://github.com/conda-forge/gap-feedstock/blob/19ff5a3e3365bd1ef9ed9bd9315f0596d9e7de21/re

Re: [sage-support] Windows install problems

2021-03-15 Thread Fernando Q. Gouvea
Turns out the problem was not with the Sage installer at all. There was a pre-existing installation of Cygwin to which the system path pointed. After removing the Cygwin64 directory from the path, the Sage installation works. Fernando On 3/14/2021 5:02 PM, Vincent Delecroix wrote: Dear

[sage-support] Windows install problems

2021-03-12 Thread Fernando Q. Gouvea
ing on? Thanks, Fernando -- == Fernando Q. Gouvea Carter Professor of Mathematics Colby College Mayflower Hill 5836 Waterville, ME 04901 fqgou...@colby.edu http://www.colby.edu/~fqgouvea It has just been discovere

[sage-support] documentation for simplify?

2021-02-05 Thread Fernando Gouvea
simplify_log(), but that one does not do what I want either. 1) Is there a way to do it? 2) How can I find out what the various "simplify"s do? Thanks, Fernando -- = Fernando Q. Gouvea http://www.colby.edu/~fqgouvea Carter Pr

Re: [sage-support] Apple M1 Chip

2020-12-19 Thread Isuru Fernando
Yes, I managed to cross compile quite a few. What remains is at https://raw.githubusercontent.com/regro/cf-graph-countyfair/master/status/armosxaddition.svg?sanitize=true Isuru On Sat, Dec 19, 2020 at 7:27 AM Dima Pasechnik wrote: > > > On Fri, 18 Dec 2020, 18:27 Isuru Fernand

Re: [sage-support] Apple M1 Chip

2020-12-18 Thread Isuru Fernando
miniforge, a conda installer by conda-forge works fine on Apple silicon chips with native binaries. You can install python 3.8 and 3.9. packages like python, numpy, scipy, notebook, scikit-image are known to work. See https://github.com/conda-forge/miniforge Isuru On Thu, Dec 17, 2020 at 12:36 P

Re: [sage-support] SageMath-9.2 does not start with Jupyter on macOS 10.15.7

2020-11-04 Thread Isuru Fernando
Looks to me like you are using gcc,g++ from the system and ar, ranlib from homebrew. Can you try switching all to system or all to homebrew? Isuru On Wed, Nov 4, 2020 at 3:09 PM phiparis19 wrote: > /usr/bin/gcc > > /usr/bin/g++ > > /usr/local/bin/ar > > /usr/local/bin/ranlib > > > /Applications

Re: [sage-support] SageMath-9.2 does not start with Jupyter on macOS 10.15.7

2020-11-04 Thread Isuru Fernando
What do you get for each of the commands? which gcc which g++ which ar which ranlib gcc -print-prog-name=ld file /Applications/sage-9.2/local/var/tmp/sage/build/gf2x-1.3.0/.libs/libtuneup-s1.a Isuru On Wed, Nov 4, 2020 at 2:30 PM phiparis19 wrote: > Here is the file > Thank you > > Le mercredi

Re: [sage-support] SageMath-9.2 does not start with Jupyter on macOS 10.15.7

2020-11-04 Thread Isuru Fernando
> I get ld: warning: ignoring file ./.libs/libtuneup-s1.a, building for macOS-x86_64 but attempting to link with file built for unknown-unsupported file format ( 0x21 0x3C 0x61 0x72 0x63 0x68 0x3E 0x0A 0x2F 0x20 0x20 0x20 0x20 0x20 0x20 0x20 ) Can you send `gf2x`'s `config.log`? This happens when

Re: [sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Fernando Gouvea
Good news! When is 9.2 expected to be ready? Fernando On 9/29/2020 3:54 AM, Eric Gourgoulhon wrote: I confirm the issue with the Taylor series with Sage 9.1. Fortunately, the bug seems to have been fixed for Sage 9.2. As Emmanuel, I get the correct Taylor series with Sage 9.2.beta13. Le

Re: [sage-support] Re: integrating sin(t)/t

2020-09-29 Thread Fernando Gouvea
I'm running Sage 9.0 on a Windows 10 machine. I get the same incorrect series from the built-in sin_integral function, so the problem is not the integration. sage: taylor(sin_integral(x),x,0,10) 73/466560*x^9 - 127/35280*x^7 + 31/600*x^5 - 7/18*x^3 + x Fernando On 9/29/2020 3:

[sage-support] integrating sin(t)/t

2020-09-28 Thread Fernando Q. Gouvea
280*x^7 + 31/600*x^5 - 7/18*x^3 + x The first weirdness is that Sage can't compute the integral unless I add the "assume(x>0)"; I'm not sure why. The second weirdness is that the Taylor series is wrong! Taylor(Si(x),x,

Re: [sage-support] Re: solve and numerical answers

2020-09-15 Thread Fernando Gouvea
and asking for roots, or with PP.find_root(0,30), which only finds one of the roots (there are four in that interval). Fernando On 9/15/2020 1:53 PM, kcrisman wrote: I still don't know my way around the Sage documentation... Sorry for the elementary question. Yeah, we are sorry that

[sage-support] solve and numerical answers

2020-09-14 Thread Fernando Gouvea
hen I attempted to find the numerical value of the solutions, I got an error: TypeError: cannot evaluate symbolic expression numerically There must be a way to do this, analogous to the "solve" command in gp. (I tried gp.solve(t=10,30,P(t)==0), but that gives an error t

Re: [sage-support] Re: Jupyter kernels for R, gp, gap, etc

2020-08-03 Thread Isuru Fernando
I suggest installing sage through conda. https://doc.sagemath.org/html/en/installation/conda.html Conda is a package manager that runs on linux and osx and sagemath is available as a binary package. There are lots of jupyter kernels pre-packaged, so it's only a matter of typing, conda insta

Re: [sage-support] Sage Crash Report

2020-04-13 Thread Isuru Fernando
Looks like you are using ccache, but CCACHE_DIR is not pointing to the scratch folder. Delete $HOME/.ccache and set CCACHE_DIR env variable to some place like /scratch/user/hhuang235/.ccache Isuru On Mon, Apr 13, 2020 at 8:45 PM HANG HUANG wrote: > Thanks very much for your reply. In fact, my s

[sage-support] another naive question

2020-04-06 Thread Fernando Gouvea
Rational Field] That last ideal is the same as I, since u(uv - w) - v(u^2-v) = v^2-uw. So why do I get an extra generator? Thanks, Fernando -- ===== Fernando Q. Gouvea http://www.colby.edu/~fqgouvea Carter Professor

Re: [sage-support] Sage Crash Report

2020-03-18 Thread Isuru Fernando
0, at 6:48 PM, Isuru Fernando wrote: > >  > One alternative to installing sage is by using the conda package manager. > https://github.com/conda-forge/miniforge#download > It's know to work on CentOS 6 and above. > See https://github.com/conda-forge/sage-feedstock#installing-sage &g

Re: [sage-support] Sage Crash Report

2020-03-18 Thread Isuru Fernando
One alternative to installing sage is by using the conda package manager. https://github.com/conda-forge/miniforge#download It's know to work on CentOS 6 and above. See https://github.com/conda-forge/sage-feedstock#installing-sage Isuru On Wed, Mar 18, 2020 at 6:00 PM Kashif Bari wrote: > I am

Re: [sage-support] Re: naive question

2020-03-09 Thread Fernando Q. Gouvea
Thanks. I was wondering why declaring the polynomial ring helped, but this helps me understand. Fernando On 3/7/2020 3:00 PM, Simon King wrote: On 2020-03-07, Eric Gourgoulhon wrote: You should use simplify_full() instead of simplify(): Or you should rather use *polynomials* instead of

[sage-support] naive question

2020-03-06 Thread Fernando Gouvea
t^2) - t^2/(s^2 + 2*s*t + t^2) + 1 Seeing a 0 would make me happier... Fernando -- ===== Fernando Q. Gouvea http://www.colby.edu/~fqgouvea Carter Professor of Mathematics Dept. of Mathematics and Statistics Colby College 5836

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

2020-03-05 Thread Fernando Gouvea
Yes, and I should have thought of that! Fernando On 3/5/2020 12:13 PM, Dima Pasechnik wrote: In fact, substituting x and y directly into the equation of the curve to plot, and clearing denominators, produces something pretty good,IMHO: implicit_plot(v^2*3*sqrt(1-u^2-v^2)-u^3*9+u*(1-u^2-v^2

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

2020-03-05 Thread Fernando Gouvea
occur only on the right hand side (i.e., positive u, not negative u). I tried setting plot_points to be 500, but the bad points don't go away. Changing the curve to y^2-x^3+x-1=0 doesn't make them go away either. Fernando On 3/5/2020 8:22 AM, Dima Pasechnik wrote: The easiest

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('

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

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

[sage-support] Re: Plotting algebraic curves

2020-03-03 Thread Fernando Gouvea
, self._py_constants ValueError: negative number to a fractional power not real Is there some way to tell implicit_plot to stay inside u^2+v^2\leq 1? Or to ignore complex values? The equivalent code seems to give the correct graph in Mathematica. Fernando On 2/29/2020 5:29 PM, Fernando Gouvea

Re: [sage-support] Plotting algebraic curves

2020-03-01 Thread Fernando Gouvea
Parametric plots won't work for general algebraic curves. But I'm also not sure how to implement the transformation into a circle. I'll look at the documentation for plots. Fernando On 3/1/2020 8:50 AM, David Joyner wrote: On Sat, Feb 29, 2020 at 5:29 PM Fernando Gouve

[sage-support] Plotting algebraic curves

2020-03-01 Thread Fernando Gouvea
curve. Thanks, Fernando -- = Fernando Q. Gouvea http://www.colby.edu/~fqgouvea Carter Professor of Mathematics Dept. of Mathematics and Statistics Colby College 5836 Mayflower Hill Waterville, ME 04901 Why is the alphabet in that ord

[sage-support] Plotting algebraic curves

2020-02-29 Thread Fernando Gouvea
implicit_plot for most of my examples, which seems to be equivalent of using C.plot() when C is a curve. Thanks, Fernando -- == Fernando Q. Gouvea Editor, MAA Reviews Dept of Mathematics

Re: [sage-support] Re: Does SageMath work on Mac OS 10.14.6

2020-02-25 Thread Fernando Q. Gouvea
notebook. On a Windows machine, a non-administrator can install Sage "for yourself only", but Macs don't seem to allow that. Fernando On 2/25/2020 12:18 PM, Nathan Dunfield wrote: On Tuesday, February 25, 2020 at 9:36:55 AM UTC-6, seriously wrote: Seriously, has anyone

[sage-support] Newbie question on Mac

2020-02-03 Thread Fernando Gouvea
notebook() to get the notebook interface, but that shows a warning that it is deprecated and I should use Jupyter instead. I would like to... but how? I tried to find an answer in the documentation, but so far no luck... Any clues? Sorry for the dumb question. Fernando

Re: [sage-support] Sage not loading after conda install (Catalina)

2020-01-06 Thread Isuru Fernando
I'm not a Mac user, so not sure about what's needed. Can you try the solution in https://support.apple.com/en-gb/guide/mac-help/mh40616/mac or https://community.wappler.io/t/solving-python-error-in-macos-catalina-when-using-docker/13497 ? Isuru On Mon, Jan 6, 2020 at 3:51 PM Christian Bean wr

Re: [sage-support] Re: Sage Crash Report: Missing symbols in conda build for macOS?

2019-11-19 Thread Isuru Fernando
Hi, Can you try doing the following? conda install -n sage27 "pynac=0.7.26=py27ha01bd41_0" Isuru On Tue, Nov 19, 2019 at 11:23 AM Michael Boyle < michael.oliver.bo...@gmail.com> wrote: > Sure. Here it is: > > > conda list > # packages in environment at > /Users/myusername/.continuum/miniconda

Re: [sage-support] Ubuntu 18.04 binaries for Sage 8.9?

2019-10-18 Thread Isuru Fernando
On Thu, Oct 17, 2019 at 12:31 PM henri.gir...@gmail.com < henri.gir...@gmail.com> wrote: > I tried sage conda is not really recent too and didn't work for me on > ubuntu > What was the issue with the conda package? If you report the problems, then we can fix them. Isuru > > The best is to compi

[sage-support] power series and strings for p-adics

2019-08-08 Thread Fernando Gouvea
swer w and then use answer=Kd(w) to turn it into digits. Is there an easier way? I expected something like print a.digits() to work, but there's no such attribute. Thanks, Fernando -- ===== Fernando Q. Gouvea http://www

Re: [sage-support] Re: Sage equivalent for GP's "padicappr"?

2019-08-02 Thread Fernando Gouvea
;x'] seem to do the same thing as well. Is that right? But if I use y or 'y' it doesn't work unless I define y in advance. (Which I'll have to figure out how to do... ) Thanks, Fernando -- ===== Fernando Q. Gouve

[sage-support] Sage equivalent for GP's "padicappr"?

2019-08-01 Thread Fernando Gouvea
al and a is a p-adic number which is a root mod p. Is there anything like that in Sage? Fernando -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email

Re: [sage-support] Re: A case of immaculate conception...

2019-03-20 Thread Isuru Fernando
Hi Simon, Yes, that's what I meant. I see it as a problem because if you had a python variable x, it will be overwritten by the symbolic value. Isuru On Wed, Mar 20, 2019, 4:25 AM Simon King wrote: > Hi Isuru, > > On 2019-03-19, Isuru Fernando wrote: > > If the sage pre

Re: [sage-support] Re: A case of immaculate conception...

2019-03-19 Thread Isuru Fernando
If the sage preparser did something like, __tmp__ = SR.var("x, y"); __tmp_g__ = lambda x, y: symbolic_expression(x+y**Integer(2)).function(x,y); f = __tmp_g__(*__tmp__) for f(x, y) = x + y ** 2 you wouldn't have this problem and it should be easy enough to change in the preparsesr. Isuru On

Re: [sage-support] Fwd: Sage Crash Report

2019-02-19 Thread Isuru Fernando
This is a known issue with the conda package as the sage package hasn't been updated yet for the new compiler runtimes on conda-forge. Try, conda create -n sage sage -c conda-forge/label/cf201901 Isuru On Tue, Feb 19, 2019 at 1:11 PM Douglas Webster < douglas.webster2...@gmail.com> wrote: > >

Re: [sage-support] Scipy 1.1.0 instead of 1.2.0 built for Sage 8.6 ??? ALso cannot find libgfortran???

2019-01-30 Thread Isuru Fernando
What's your binutils version? (You can find that out by doing "ld --version") Isuru -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@goo

Re: [sage-support] Sage Crash Report

2018-11-18 Thread Isuru Fernando
Ah, that package was marked broken. conda-forge and defaults channels are not ABI compatible, (it'll be in a month or so once the conda-forge rebuild is done) You should prioritize conda-forge over defaults and see what happens. Let me know if it doesn't work and I'll send you the env file for a ne

Re: [sage-support] Sage Crash Report

2018-11-18 Thread Isuru Fernando
Can you try doing `conda update libgd`? Python 3 builds are experimental and don't work correctly. (But they should be able to start sage.) I've attached an env file that works for me on linux. Isuru On Sunday, November 18, 2018 at 5:26:46 AM UTC-6, Dima Pasechnik wrote: > > I guess the place t

[sage-support] How to install the optional Odlyzko database package in Sage on OS X

2017-02-20 Thread Fernando Montans
I want to use zeta_zeros() on a macbook running OS X 10.12 with Sage 7.5.1 already installed and working quite fine. According to the documentation: In order to use zeta_zeros(), you will need to install the optional Odlyzko database package: sage -i database_odlyzko_zeta I need more spe

[sage-support] Re: SAGE equivalent to Matlab vectorized functions

2008-12-18 Thread Fernando
Harald, Probably I should start as you suggested installing basic python and the modules that you list. Thanks for your advice, Fernando On Dec 18, 11:29 am, Harald Schilly wrote: > Fernando wrote: > > For those tasks, I usually implement the code using the vectorized > > fun

[sage-support] Re: SAGE equivalent to Matlab vectorized functions

2008-12-18 Thread Fernando
Thanks for your answers. I will have a look to the scipy and numpy documentation. Fernando On Dec 18, 11:15 am, Jason Grout wrote: > Tim Lahey wrote: > > > On Dec 18, 2008, at 4:45 AM, Fernando wrote: > > >> Hello, > > >> I am a MATLAB user which it is co

[sage-support] SAGE equivalent to Matlab vectorized functions

2008-12-18 Thread Fernando
tasks like algorithm prototyping, simulations and data processing? Cheers, Fernando --~--~-~--~~~---~--~~ 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