Re: [sage-support] Error building sage, failed to build two packages

2024-04-18 Thread Eric Gourgoulhon
Le jeudi 18 avril 2024 à 00:36:07 UTC+2, Kevin a écrit : I increased my RAM allotment and decreased the number of threads used to 6, and that seems to have helped, but now I'm having an issue with two other packages, scipy and sagelib. In both cases, there is the error message gcc: fatal

Re: [sage-support] Sagemanifolds error in example notebook

2024-02-08 Thread Eric Gourgoulhon
Le jeudi 8 février 2024 à 13:46:19 UTC+1, Dominic Steinitz a écrit : I volunteer Excellent! Thank you! Best wishes, Eric. -- 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,

Re: [sage-support] Sagemanifolds error in example notebook

2024-02-08 Thread Eric Gourgoulhon
Le jeudi 8 février 2024 à 03:14:14 UTC+1, Matthias Koeppe a écrit : On Wednesday, February 7, 2024 at 7:00:07 AM UTC-8 Eric Gourgoulhon wrote: I don't know about any automated way to check that the example notebooks are up to date. One can use "jupyter nbconvert --to notebook --ex

Re: [sage-support] Re: Sagemanifolds: object has no attribute 'exterior_der'

2024-02-08 Thread Eric Gourgoulhon
Le jeudi 8 février 2024 à 13:45:18 UTC+1, Dominic Steinitz a écrit : Sorry about posting the same thing twice. No problem. Just for reference, in case someone reads this thread: the answer about the connection forms is here:

[sage-support] Re: Sagemanifolds: object has no attribute 'exterior_der'

2024-02-07 Thread Eric Gourgoulhon
Le mercredi 7 février 2024 à 15:46:05 UTC+1, Dominic Steinitz a écrit : The example here https://sagemanifolds.obspm.fr/examples.html of - Electromagnetism in Minkowski spacetime [ipynb

Re: [sage-support] Sagemanifolds error in example notebook

2024-02-07 Thread Eric Gourgoulhon
Le mercredi 7 février 2024 à 16:00:07 UTC+1, Eric Gourgoulhon a écrit : Indeed, this notebook is 8 years old and is not at all up to date (there is even Python 2 print commands in it!). Please open an issue at the Github repository hosting this notebook: https://github.com/ernestyalumni/Gravite

Re: [sage-support] Sagemanifolds error in example notebook

2024-02-07 Thread Eric Gourgoulhon
Hi, Le mercredi 7 février 2024 à 15:46:05 UTC+1, Dominic Steinitz a écrit : Great thanks very much - I copied from the example - I guess I should have checked the manual - I wonder if there is some way of making sure the examples are always up to date. Indeed, this notebook is 8 years old

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

2023-11-29 Thread Eric Gourgoulhon
Hi, Le mardi 28 novembre 2023 à 18:25:04 UTC+1, kcrisman a écrit : Yes. Maxima's attitude is that the square root of negative one is an expression which might have multiple values, rather than just picking one you hope might be consistent over branch points. To enforce Maxima to work in

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

2023-11-28 Thread Eric Gourgoulhon
Hi, I've also noticed two days ago that https://sagecell.sagemath.org/ is very slow (actually does not terminate) even on elementary operations. Maybe there is a problem with the server at the moment... Eric. Le mardi 28 novembre 2023 à 16:36:30 UTC+1, Fernando Q. Gouvea a écrit : >

[sage-support] Re: Odd Ricci scalar in Sagemanifolds

2023-11-20 Thread Eric Gourgoulhon
Hi, The complicated result that you get is due to a lack of simplification in Sage. More precisely, the default simplification chain automatically applied in tensor calculus on manifolds, namely

[sage-support] Re: Installing SageMath 10.2.beta* in Ubuntu 22.04

2023-09-13 Thread Eric Gourgoulhon
Hi, >From the log files, all these failures have the same origin: g++: fatal error: Killed signal terminated program cc1plus It seems that the SageMath build has been interrupted by some external process. Have you tried https://sagemanifolds.obspm.fr/install_ubuntu.html ? Eric. Le mercredi 13

[sage-support] Re: SageMath in Docker image

2023-08-24 Thread Eric Gourgoulhon
Hi, You can find SageMath Docker images at https://hub.docker.com/r/sagemath/sagemath/tags The latest stable version posted here is SageMath 10.0. The image of SageMath 10.1, which has been released 4 days ago, should appear soon. Best wishes, Eric. Le mercredi 23 août 2023 à 15:23:38

[sage-support] Re: Cannot build Sage 9.7 on Opensuse

2023-02-16 Thread Eric Gourgoulhon
It would probably be better to use the system openblas binary instead of building it from source during the Sage install. To do so, install the Opensuse package openblas (development version) (for Ubuntu, the package name is libopenblas-dev, I don't know for Opensuse). Then run configure

Re: [sage-support] Two point tensors?

2023-02-05 Thread Eric Gourgoulhon
Hi, Could it be that you are looking for the pushforward operator associated to a differentiable map between two manifolds? cf. https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/differentiable/diff_map.html#sage.manifolds.differentiable.diff_map.DiffMap.pushforward Eric. Le

[sage-support] Re: gridlines in 3d ?

2023-01-18 Thread Eric Gourgoulhon
Le mardi 17 janvier 2023 à 19:52:32 UTC+1, kcrisman a écrit : Nice ! Would you consider a ticket adding this to Sage ? +1 to that! +1 too! Don't hesitate to ask if you need help to open a ticket on https://trac.sagemath.org/. Or maybe you want to wait for the migration of SageMath sources

[sage-support] Re: Sage 9.5 fails to start just after an installation

2022-11-29 Thread Eric Gourgoulhon
Maybe there is something wrong in the SageMath package for your system. Since your system is based on Ubuntu, I would advise to build SageMath from sources by following these lines: https://sagemanifolds.obspm.fr/install_ubuntu.html It's just a few lines to copy and paste in a terminal. The

[sage-support] Re: plot() silently switches to a different scale when numbers are too big

2022-09-21 Thread Eric Gourgoulhon
The plot is still linear-linear, but the y axis is labelled by y/1e6 instead of y. This is clearly a bug. Thanks for reporting it. A ticket has already been opened for this issue: https://trac.sagemath.org/ticket/34233 Eric. Le mercredi 21 septembre 2022 à 03:18:24 UTC+2, erentar a écrit :

[sage-support] Re: Simplifications and sagemanifold

2022-09-04 Thread Eric Gourgoulhon
Thank you for these instructive benchmarks! Best wishes, Eric. Le dimanche 4 septembre 2022 à 07:35:18 UTC+2, roger...@gmail.com a écrit : > Thank you very much Eric! It works perfectly well for my needs. > I've tested the time spent for calculating the Riemann tensor (restarting > the

[sage-support] Re: Simplifications and sagemanifold

2022-09-03 Thread Eric Gourgoulhon
Le vendredi 2 septembre 2022 à 08:09:23 UTC+2, roger...@gmail.com a écrit : > Components of tensors in sagemanifolds are nicely simplified through > methods of chart functions. However, for large and complicated expressions, > such simplifications are very time consuming. > Is it possible to

[sage-support] Re: Installing Error

2022-06-16 Thread Eric Gourgoulhon
Hi, Which version of Ubuntu are you using ? Maybe it is worth to install from source instead of using the Ubuntu package. This is usually very easy for Ubuntu: visit https://sagemanifolds.obspm.fr/install_ubuntu.html Best wishes, Eric. Le mardi 14 juin 2022 à 20:53:48 UTC+2,

[sage-support] Re: Where do I report that 1-1=2 :)

2022-06-05 Thread Eric Gourgoulhon
Indeed, in Jupyter or Jupyterlab, the underscore is rendered as a minus sign in %display latex mode. For instance, %display latex type(ZZ) returns <회횕횊횜횜 '횜횊횐횎.횛횒횗횐횜.횒횗횝횎횐횎횛⎯횛횒횗횐.홸횗횝횎횐횎횛횁횒횗횐⎯회횕횊횜횜'> while print(type(ZZ)) gives I don't know where the replacement of underscores by minus

[sage-support] Re: Crystals won't view in jupiter notebook

2022-06-02 Thread Eric Gourgoulhon
I got the same error from the console of Sage 9.7.beta1 running on Ubuntu 20.04. So it is not specific to Sage 9.3, nor to Windows... Le mercredi 1 juin 2022 à 23:00:05 UTC+2, dbis...@gmail.com a écrit : > I have installed Sagemath 9.3 on my windows 10 computer and have run the > following

[sage-support] Re: plotting tangent vectors to a curve

2022-04-14 Thread Eric Gourgoulhon
Le mercredi 13 avril 2022 à 19:18:48 UTC+2, kcrisman a écrit : > Eric, if I opened a ticket, would you be willing to add a couple examples > of this to the plot documentation? Yes of course. I wasn't aware of this > but it would be a great addition. (Is there a 3d version as well for

[sage-support] Re: plotting tangent vectors to a curve

2022-04-13 Thread Eric Gourgoulhon
Hi, Le vendredi 8 avril 2022 à 22:13:51 UTC+2, fqgo...@colby.edu a écrit : > 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? > You can achieve this via the method tangent_vector_field() of curves, see the second

[sage-support] Re: search_def(), search_src() are not working in Sage

2022-03-23 Thread Eric Gourgoulhon
Hi, Le mercredi 23 mars 2022 à 20:52:08 UTC+1, adarsh.k...@gmail.com a écrit : > I tried running > ``` > make sagemath_doc_html > ``` > as instructed. Unfortunately, it does not solve the error. > > You are still running SageMath 9.0, which the version shipped with Ubuntu 20.04. It is

[sage-support] Re: Possible bug in ExpressionNice

2022-03-08 Thread Eric Gourgoulhon
Le mardi 22 février 2022 à 14:09:08 UTC+1, Eric Gourgoulhon a écrit : > Hi, > > Thanks for the report! > This is indeed a bug. It is fixed in > https://trac.sagemath.org/ticket/33399 > The fix has been merged in SageMath 9.6.beta4. So the next stable version of Sag

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

2022-02-28 Thread Eric Gourgoulhon
Le lundi 28 février 2022 à 00:26:35 UTC+1, dim...@gmail.com a écrit : > On Sun, Feb 27, 2022 at 11:21 PM Fernando Gouvea > wrote: > > > > Ubuntu includes python3, but not python without a number. I guess I > could make a symlink? > > yes, this will solve this problem. > Alternatively,

[sage-support] Re: Compiling Sage on Ubuntu 20.05

2022-02-27 Thread Eric Gourgoulhon
A quick way to install Sage 9.5 from sources on Ubuntu 20.04 is decribed at https://sagemanifolds.obspm.fr/install_ubuntu.html HTH. Eric. Le dimanche 27 février 2022 à 13:08:36 UTC+1, iitds...@gmail.com a écrit : > Hi all, > > I have been trying to install sage 9.5 from source on Ubuntu. > >

[sage-support] Re: Possible bug in ExpressionNice

2022-02-22 Thread Eric Gourgoulhon
Hi, Thanks for the report! This is indeed a bug. It is fixed in https://trac.sagemath.org/ticket/33399 Eric Le dimanche 20 février 2022 à 05:17:55 UTC+1, alexander...@gmail.com a écrit : > Hello, > > I think there are parenthesis missing in the output of this: > > sage: from

[sage-support] Re: Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-28 Thread Eric Gourgoulhon
Le jeudi 27 janvier 2022 à 18:59:36 UTC+1, alan_thoma...@yahoo.co.uk a écrit : > That works. I get all cores used. > Great! I've opened the ticket https://trac.sagemath.org/ticket/33241 for that. Eric. -- You received this message because you are subscribed to the Google Groups

[sage-support] Re: Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-27 Thread Eric Gourgoulhon
Le mardi 25 janvier 2022 à 23:59:20 UTC+1, John H Palmieri a écrit : > Are you using OS X? Could this possibly be due to how Python handles > multiprocessing on OS X vs. other platforms? (See > > https://docs.python.org/3/library/multiprocessing.html#contexts-and-start-methods, > > in

[sage-support] Re: Tensor Multiprocessing broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-25 Thread Eric Gourgoulhon
Hi, Le mardi 25 janvier 2022 à 12:54:57 UTC+1, alan_thoma...@yahoo.co.uk a écrit : > I get errors in this notebook if I set the variable tpar to any value > greater than one. (Number of Tensor processing cores.) > > *http://alan.atstafford.co.uk/Sage9.5Problem.ipynb >

Re: [sage-support] Re: trouble displaying 3D graphics

2021-11-09 Thread Eric Gourgoulhon
Le mardi 9 novembre 2021 à 10:38:29 UTC+1, dim...@gmail.com a écrit : > I wonder if 'file:///' must be present in the URL for the script source > for Chrome/Chromium to load it. > > This does not seem to be an issue with 'file:///' in the URL since Chromium refuses to open any hidden directory

[sage-support] Re: trouble displaying 3D graphics

2021-11-09 Thread Eric Gourgoulhon
Le mardi 9 novembre 2021 à 10:16:34 UTC+1, Eric Gourgoulhon a écrit : > I confirm the issue experienced by John with Chromium: on my Ubuntu > 20.04.3 computer, the implicit_plot3d command from Sage console > - works out of the box by opening a new tab in Firefox (my default browser) &g

[sage-support] Re: trouble displaying 3D graphics

2021-11-09 Thread Eric Gourgoulhon
I confirm the issue experienced by John with Chromium: on my Ubuntu 20.04.3 computer, the implicit_plot3d command from Sage console - works out of the box by opening a new tab in Firefox (my default browser) - results in a file access error with Chromium, after having selected the latter by

[sage-support] Re: Installing Package in Systemwise Sagemath

2021-08-23 Thread Eric Gourgoulhon
Le dimanche 22 août 2021 à 15:49:28 UTC+2, asd00012...@gmail.com a écrit : > > I installed Sagemath for the entire system using ``sudo apt-get install > sagemath'' on my Ubuntu machine. When I tried to do something like ``sage > -i kohel_database,'' it told me that it is an unknown option. As

[sage-support] Re: How to download as LaTeX, and have output boxes rendered

2021-08-23 Thread Eric Gourgoulhon
Hello, You should upgrade to at least SageMath 9.2, where this bug has been fixed; cf. my answer on asksagemath: https://ask.sagemath.org/question/58626/how-to-download-as-latex-and-have-output-boxes-rendered/ Le lundi 23 août 2021 à 10:43:26 UTC+2, Jákup a écrit : > > I'm using the Jupyter

[sage-support] Re: Setting viewpoint in implicit_plot3d

2020-10-16 Thread Eric Gourgoulhon
Hi, The viewpoint option is missing at the moment (SageMath 9.1) in the threejs viewer, but it has been introduced in SageMath 9.2, which is about to be released, see https://wiki.sagemath.org/ReleaseTours/sage-9.2#Graphics Eric. Le vendredi 16 octobre 2020 à 09:38:00 UTC+2, Michel VAN DEN

[sage-support] Re: How to define a generic function?

2020-10-04 Thread Eric Gourgoulhon
Simply use mr = function('m')(r) See https://nbviewer.jupyter.org/github/sagemanifolds/SageManifolds/blob/master/Worksheets/v1.3/SM_TOV.ipynb for a full example. Best wishes, Eric. Le dimanche 4 octobre 2020 à 10:15:43 UTC+2, matt...@gmail.com a écrit : > I am trying to calculate the

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

2020-09-29 Thread Eric Gourgoulhon
Le mardi 29 septembre 2020 à 14:27:38 UTC+2, fqgo...@colby.edu a écrit : > Good news! When is 9.2 expected to be ready? > Sage 9.2 should be released within a few weeks (the beta cycle is almost over and the release candidate cycle should start soon). Meanwhile, you can take a look at the new

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

2020-09-29 Thread Eric Gourgoulhon
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 mardi 29 septembre 2020 à 09:36:09 UTC+2, Emmanuel Charpentier a écrit : > I can’t reproduce your problem

[sage-support] Re: Adding new attribute to Poset

2020-09-28 Thread Eric Gourgoulhon
Poset is a function, which constructs a finite poset, not the poset class, as you can check: sage: type(Poset) You can also check it by having a look at the source code: sage: Poset?? So when you write Poset.upper_bounds = upper_bounds you are attaching upper_bounds to the function, not to the

[sage-support] Re: gridlines in 0.5 units

2020-06-30 Thread Eric Gourgoulhon
Here is an example enforcing the gridlines every 0.5 units: plot(sin(x^2), (x, 0, 6), gridlines=[[0, 0.5, .., 6], [-1, -0.5, .., 1]]) See https://doc.sagemath.org/html/en/reference/plotting/sage/plot/graphics.html#sage.plot.graphics.Graphics.show for more examples. Eric. -- You received

[sage-support] Re: Multiprocessing for Tensors is not working for Macintosh. (SageMath 9.0)

2020-06-02 Thread Eric Gourgoulhon
Le dimanche 31 mai 2020 02:33:06 UTC+2, Alan Stafford a écrit : > > I have just updated to SageMath 9.1 and updated my OS. I see that ncpus.py > has been changed. > I have tested the multiprocessing with the file enclosed above and others > and it is working. Thank you all for fixing this. >

[sage-support] Re: Multiprocessing for Tensors is not working for Macintosh. (SageMath 9.0)

2020-05-29 Thread Eric Gourgoulhon
Le vendredi 29 mai 2020 13:43:35 UTC+2, Alan Stafford a écrit : > > I have an inkling that it is the code to probe the number of processors > present that is at fault. It uses the right command but doesn't use the > result and always returns one. This causes problems with the interface to >

[sage-support] Re: Cotton Tensor gives wrong result.

2020-05-25 Thread Eric Gourgoulhon
Hi, What do you mean exactly by "Cotton tensor gives wrong result" ? Maybe this is matter of convention... SageMath's definition of the Cotton conformal tensor is here:

[sage-support] Re: Multiprocessing for Tensors is not working for Macintosh. (SageMath 9.0)

2020-05-25 Thread Eric Gourgoulhon
Hi, Le dimanche 24 mai 2020 15:15:14 UTC+2, Alan Stafford a écrit : > > Multiprocessing of Tensors is not working for Macintosh. > > Alas, this is a known issue that has been reported repeatedly by macOS users: Sage's multiprocessing seems broken on macOS. No fix has been proposed yet. What is

[sage-support] Re: naive question

2020-03-07 Thread Eric Gourgoulhon
You should use simplify_full() instead of simplify(): sage: var('s t') (s, t) sage: thirdroot = ((s^2 - 1)*t^2 - s^2 + 1)/(s^2 + 2*s*t + t^2) sage: factor(thirdroot + 1) (s*t + 1)^2/(s + t)^2 sage: a = thirdroot + 1 - (s*t + 1)^2/(s+t)^2 sage: a ((s^2 - 1)*t^2 - s^2 + 1)/(s^2 + 2*s*t + t^2) -

[sage-support] Re: Parallelization of contractions

2020-01-30 Thread Eric Gourgoulhon
Hi, Le mercredi 29 janvier 2020 08:47:32 UTC+1, Mattia Villani a écrit : > > I did as suggested adding the line > > > Parallelism().set(nproc=4) > > before the contraction, but it behaves strangely: it works for a short while > with 4 processors, then with 3, then with 2 and finally it works for

[sage-support] Re: Parallelization of contractions

2020-01-22 Thread Eric Gourgoulhon
Le mercredi 22 janvier 2020 07:43:52 UTC+1, Mattia Villani a écrit : > > How to use parallelization on contraction of tensor? Consider the case I > have two successive contraction like this: > > Tud=etuu['^{ab}']*eamup['^c_b'] > Tp=Tud['^{ab}']*eamup['^c_a'] > > How con I parallelize it? > It

Re: [sage-support] sage with python3, mpmath

2020-01-14 Thread Eric Gourgoulhon
PS: a similar error has been reported on ask.sagemath: https://ask.sagemath.org/question/49534/error-with-mpmathfindroot-on-89/ Le mardi 14 janvier 2020 11:55:08 UTC+1, Eric Gourgoulhon a écrit : > > Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : >> >>

Re: [sage-support] sage with python3, mpmath

2020-01-14 Thread Eric Gourgoulhon
Le mardi 14 janvier 2020 11:36:44 UTC+1, Dima Pasechnik a écrit : > > > mpmath version on Sage 8.6 is 1.0.0, and later and now it is 1.1.0 > > This might explain the problem, which maybe should be reported upstream: > > https://github.com/fredrik-johansson/mpmath > > It's OK with Sage 8.9,

Re: [sage-support] Sage9.0 installation ubuntu

2020-01-12 Thread Eric Gourgoulhon
Hi, Le dimanche 12 janvier 2020 10:25:50 UTC+1, Jean-Florent Raymond a écrit : > > Hello Alex, > > You can download binaries at the following address: > https://www.sagemath.org/download-linux.html > There is nothing to build in this case. See the "Usage" paragraph for > instructions how to

[sage-support] Re: Offline help with Sage 9.0 from jupyter notebook did not work

2020-01-06 Thread Eric Gourgoulhon
Just a data point: "*Help - > Sage Documentation" in the Jupyter notebook works with Sage 9.0 built from source in Ubuntu 18.04.* *Eric. * -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving

[sage-support] Re: Memory efficient calculation of the Kretschmann scalar

2019-12-31 Thread Eric Gourgoulhon
Well, if memory is really an issue, you can avoid the creation of the intermediate tensor fields uR and dR by writing gc = g.components() igc = g.inverse().components() Rc = R.components() kr = 0 for a in M.irange(): for b in M.irange(): for c in M.irange(): for d in

[sage-support] Re: Book with Sage (and Python 3)

2019-12-27 Thread Eric Gourgoulhon
Hi, Le jeudi 26 décembre 2019 17:18:07 UTC+1, Manfred Einsiedler a écrit : > > Thanks for your prompt and very helpful reply. I am happy to wait a couple > of weeks to use the official version 9.0 for testing the sage content of > the book. > Sage 9.0.rc0 has just been released, so hopefully

[sage-support] Re: Book with Sage (and Python 3)

2019-12-25 Thread Eric Gourgoulhon
Congratulations for the book. It looks very nice! The switch to Python 3 shall take place in early January, with the release of SageMath 9.0. You can see some details on https://wiki.sagemath.org/Python3-Switch. As you say, your code examples are likely

[sage-support] Re: Changelog for Sage?

2019-11-06 Thread Eric Gourgoulhon
Le jeudi 17 octobre 2019 12:59:35 UTC+2, Szabolcs Horvát a écrit : > > Is there a changelog for Sage 8.8 or 8.9? I can only find 8.7 on the > website: http://www.sagemath.org/changelogs/index.html > > Are there plans to create a more user-friendly changelog? The changelogs I > linked list every

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

2019-10-21 Thread Eric Gourgoulhon
Le jeudi 17 octobre 2019 18:27:40 UTC+2, Tom Flyer a écrit : > > I can't find any Ubuntu 18.04 binary for Sage 8.9 on the mirrors listed at > http://www.sagemath.org/download-linux.html. > Are there any issues in creating these binary? > > The SageMath 8.9 binaries for Ubuntu 18.04 are now

Re: [sage-support] Sage Crash Report

2019-10-21 Thread Eric Gourgoulhon
Le lundi 14 octobre 2019 08:57:57 UTC+2, Dima Pasechnik a écrit : > > Dear Dave, > > On Mon, Oct 14, 2019 at 1:03 AM dave dobbs > > wrote: > > > > OS: Xubuntu 18.04.1 64-bit > > downloaded from SAGE: sage-8.9-Ubuntu_16.04-x86_64.tar.bz2 > > wrong version - notice that you are running Ubuntu

[sage-support] Re: sign problem spherical harmonics

2019-06-15 Thread Eric Gourgoulhon
Unfortunately, the current implementation of spherical harmonics in Sage suffers from various issues. One is the sign convention, which is different from the standard one, as you pointed out. Another issue is getting false results for some parameters, like sage: theta, phi = var('theta phi')

[sage-support] Re: Pushing to trac from GitHub

2019-04-03 Thread Eric Gourgoulhon
Hi, Le mardi 2 avril 2019 21:40:14 UTC+2, Bea Galiana a écrit : > > Hi, > > so I was wondering, is it possible to push to trac without having a trac > account, only logged with a GitHub account? > > I think yes, see http://doc.sagemath.org/html/en/developer/trac.html The branch name (created

[sage-support] Re: simplify more quickly?

2019-04-01 Thread Eric Gourgoulhon
I've edited my answer at https://ask.sagemath.org/question/45959/grad-at-glacial-speed/ to indicate how to change the simplification algorithm. Best wishes, Eric. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this

[sage-support] Re: simplification options

2019-03-11 Thread Eric Gourgoulhon
Le lundi 11 mars 2019 19:05:04 UTC+1, Michael Beeson a écrit : > > I appreciate Eric's post, and I do use subs sometimes, but it makes me > nervous since > it will happily substitute any old thing you tell it to, even an > incorrect thing. So, if your idea > is to check a computation, it

[sage-support] Re: simplification options

2019-03-11 Thread Eric Gourgoulhon
What about something like sage: var('p,q,r,a') (p, q, r, a) sage: b = sqrt(1-a^2) sage: eq = (p*a+r*b+q)^2 sage: eq = eq.expand(); eq a^2*p^2 - a^2*r^2 + 2*sqrt(-a^2 + 1)*a*p*r + 2*a*p*q + 2*sqrt(-a^2 + 1)*q*r + q^2 + r^2 sage: b = var('b') sage: eq.subs({sqrt(1-a^2): b}) a^2*p^2 + 2*a*b*p*r -

[sage-support] Re: solve() behavior

2019-02-18 Thread Eric Gourgoulhon
Hi, Le lundi 18 février 2019 21:56:56 UTC+1, Michael Beeson a écrit : > > sage: solve(*2**(x+sqrt(*1*-x^*2*))-*7*,x) > > [x == -sqrt(-x^2 + 1) + 7/2] > > > sage: version() > > 'SageMath version 8.0, Release Date: 2017-07-21' > > > That doesn't look like a solution to me because x still appears

Re: [sage-support] how to specify a port when running jupyter notebook

2019-02-04 Thread Eric Gourgoulhon
Le lundi 4 février 2019 11:16:24 UTC+1, John Cremona a écrit : > > > Although this is obviously a jupyter thing and note a sage specific thing, > I think it would be helpful to have this somewhere in the Sage > documentation (I could not find it) and also visible in the "sage -h" > output. >

Re: [sage-support] Re: arrows in 3d field plots

2019-01-31 Thread Eric Gourgoulhon
Le jeudi 31 janvier 2019 06:52:10 UTC+1, Tevian Dray a écrit : > > >> You can use the plot functionality of vector fields on > >> Euclidean spaces to get better arrowheads: > > OK; I can get jmol to work with some browsers, although it is painfully > slow. But the results are very nice. > >

[sage-support] Re: arrows in 3d field plots

2019-01-28 Thread Eric Gourgoulhon
Hi, You can use the plot functionality of vector fields on Euclidean spaces to get better arrowheads: sage: E. = EuclideanSpace() sage: v = E.vector_field((x,y,0)) sage: xy = v.plot(max_range=1, color='black') sage: show(xy, orientation=(0,0,0,0)) You may also replace the last line by

Re: [sage-support] Re: Cartan moving frame formalism

2018-12-07 Thread Eric Gourgoulhon
Le jeudi 6 décembre 2018 17:28:39 UTC+1, Tevian Dray a écrit : > > >> The answer to your question is essentially "yes" ... > > Thank you for your detailed response and links. I had in fact found > some of them when searching, but clearly hadn't read them carefully > enough. In particular, I

[sage-support] Re: Has the Cartan moving frame formalism been implemented in Sage?

2018-12-06 Thread Eric Gourgoulhon
The answer to your question is essentially "yes", since Sage can deal with any kind of vector frame, not necessarily coordinate frames, see http://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/differentiable/vectorframe.html In particular, a connection can be defined by its

Re: [sage-support] missing module gmpy2

2018-10-27 Thread Eric Gourgoulhon
Le samedi 27 octobre 2018 09:27:21 UTC+2, Dima Pasechnik a écrit : > > These messages can be safely ignored. > > However it's kind of weird to have them all the time... Best regards, Eric. -- You received this message because you are subscribed to the Google Groups "sage-support" group.

Re: [sage-support] scipy in sage-8.3 fails

2018-09-16 Thread Eric Gourgoulhon
Hi Malcolm! Le dimanche 16 septembre 2018 12:17:37 UTC+2, Dima Pasechnik a écrit : > > it appears that you need to install gfortran. > admittedly > http://doc.sagemath.org/html/en/installation/source.html > > is a bit unclear on this. > You may also have a look at the list of Ubuntu 18.04

[sage-support] Re: simple?--from_meijer in jupyter

2018-04-13 Thread Eric Gourgoulhon
Hi, There is a typo in your code: it should be "from_meijerg" instead of "from_meijer": sage: from sympy.holonomic.holonomic import from_meijerg sage: from_meijerg? Signature: from_meijerg(func, x0=0, evalf=False, initcond=True, domain=QQ) Docstring: Converts a Meijer G-function to

[sage-support] Re: plot3d renders heaviside(x) but not heaviside(x-y)

2018-02-01 Thread Eric Gourgoulhon
A workaround is to use unit_step instead of heaviside: plot3d(unit_step(x-y),(x,-1,1),(y,-1,1)) The function heaviside is known to have issues as soon as some numerical evaluation is required. Another example is: numerical_integral(heaviside(x), -1, 1) TypeError: unable to simplify to float

[sage-support] Re: password

2017-11-05 Thread Eric Gourgoulhon
Run a sage session in a terminal and type: sage: notebook(reset=True) More details at https://ask.sagemath.org/question/26043/forgotten-notebook-password/ Eric. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group

[sage-support] Re: formal sets

2017-11-05 Thread Eric Gourgoulhon
Hi, Le dimanche 5 novembre 2017 15:14:16 UTC+1, Ralf Stephan a écrit : > > A bit more tricky are the reals: > sage: Set(RealSet(-oo,oo)) > Set of elements of (-oo, +oo) > > Well, this one is maybe too tricky: sage: R = Set(RealSet(-oo,oo)) sage: R.an_element() (-oo, +oo) ??? In passing, we may

[sage-support] Re: 3d plotting in CoCalc with SageMath 8.0

2017-10-29 Thread Eric Gourgoulhon
Hi, You must add the keyword argument online=True to show(...): show(surface.plot(aspect_ratio=1, color='yellow'), viewer='threejs', online= True) Then it works in a Jupyter notebook running SageMath 8.0 in CoCalc:

[sage-support] Re: Define Alphanumeric variable in sage

2017-09-13 Thread Eric Gourgoulhon
Something like sage: for n in range(10): : exec("x{} = {}".format(n, n)) : should do the job. Eric. -- 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] For info ?

2017-09-03 Thread Eric Gourgoulhon
Thank you Jan for having maintained the PPA during all these years! Best regards, Eric. -- 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] Re: Assuming a function is constant in computing later expressions

2017-09-01 Thread Eric Gourgoulhon
What about something like: sage: t = var('t') sage: Omega = function('Omega') sage: quanti = Omega(t)*cos(t) + diff(Omega(t), t) sage: quanti Omega(t)*cos(t) + diff(Omega(t), t) sage: Omega0 = var('Omega0') sage: Omega_const(t) = Omega0 sage: quanti.substitute_function(Omega, Omega_const)

[sage-support] Re: Here is an example

2017-07-11 Thread Eric Gourgoulhon
Nice answer Nils! -- 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...@googlegroups.com. To post to this group, send email to

[sage-support] Re: Further on plotting functions

2017-06-26 Thread Eric Gourgoulhon
Le lundi 26 juin 2017 13:05:27 UTC+2, Fjordforsk A/S a écrit : > > Hello, I tried a different variant of the previous plot: > > def f(x,y): > return math.sqrt(2**3))*exp(-(x**2 + y**2) > P = plot3d(f,(-3,3),(-3,3), adaptive=True, color=rainbow(60, 'rgbtuple'), > max_bend=.1, max_depth=15) >

[sage-support] Re: Plottig functions

2017-06-26 Thread Eric Gourgoulhon
Hi, Le lundi 26 juin 2017 12:31:44 UTC+2, Fjordforsk A/S a écrit : > > Hello, I am having trouble plotting this function: > > sage: plot3d((math.sqrt(2**3))*math.exp(-(x**2 + y**2)), (x, 0, 5 ), (y, > 0, 5)) > > > Do not use the exp from the math module, but directly Sage's function exp:

[sage-support] Re: uploaded ipynb file not accessible

2017-05-04 Thread Eric Gourgoulhon
Hi, Le jeudi 4 mai 2017 03:38:56 UTC+2, Jim Mooney a écrit : > > I uploaded an ipynb file to the localhost browser, assuming I could use it > as a normal notebook, but it's just in a box, highlighted and I can't open > or do anything with it. When I reloaded the browser it disappeared. What am

[sage-support] Re: integrate problem (bug?)

2017-02-22 Thread Eric Gourgoulhon
This is fixed in Sage 7.6.beta2: ┌┐ │ SageMath version 7.6.beta2, Release Date: 2017-02-01 │ │ Type "notebook()" for the browser-based notebook interface.│ │ Type "help()" for help.

[sage-support] Reconstructing a symbolic expression with derivative from the string representation

2017-02-22 Thread Eric Gourgoulhon
Hi, I am puzzled by the following code in sage 7.5: sage: df = diff(function('f')(x), x); df diff(f(x), x) sage: repr(df) 'diff(f(x), x)' sage: df1 = SR(repr(df)); df1 diff(f(x), x) df and df1 look the same and we even have sage: bool(df1 == df) True However, they are not identical: sage:

[sage-support] Re: Ssh problems

2017-02-21 Thread Eric Gourgoulhon
Hi, Le mardi 21 février 2017 18:49:08 UTC+1, Simon King a écrit : > > Hi! > > Trying to follow the advices in "Git the Hard Way", I did > git clone git://github.com/sagemath/sage.git > > What about git clone https://github.com/sagemath/sage.git (note the change "git:" --> "https:") Does it

Re: [sage-support] Re: ploting error

2017-02-08 Thread Eric Gourgoulhon
Thanks for the definition of the function axes. I can reproduce the problem. IMHO, this is a bug in the Jmol 3D viewer when used in a Jupyter notebook. I think I already faced this bug some time ago on a composite 3D plot. Notice that the new threejs viewer does not have this problem: with

[sage-support] Re: ploting error

2017-02-08 Thread Eric Gourgoulhon
Could you provide the definition of the function axes ? (it's not known to Sage 7.5.1) Best regards, Eric. Le mardi 7 février 2017 12:57:44 UTC+1, HG a écrit : > > I have an error with this file, if I uncomment G+= parametric ... on a > line, it works without the content of the line. > > I

[sage-support] Re: sagemanifolds "conformal_minkowski" set_axes_labels error

2016-09-24 Thread Eric Gourgoulhon
Hi, Since version 0.9.1, set_axes_labels is no longer imported at sage startup. As explained in http://sagemanifolds.obspm.fr/changelog.html you have to import it explicitely: from sage.manifolds.utilities import set_axes_labels See also the above page for other syntactic changes. Best

[sage-support] Re: sage crash report

2016-09-23 Thread Eric Gourgoulhon
Le vendredi 16 septembre 2016 10:37:22 UTC+2, Ralf Stephan a écrit : > > Looks like C++ ABI mismatch. While gcc-4.8.4 should work > you maybe want to install a newer version. What Sage version > is this? > I guess this is SageMath 7.3 from the AIMS PPA, installed on Ubuntu 16.04. See

[sage-support] Re: EMsage.ipynb

2016-09-21 Thread Eric Gourgoulhon
Hi, Le mercredi 21 septembre 2016 17:09:09 UTC+2, HG a écrit : > > > > AttributeError: 'DiffFormFreeModule_with_category.element_class' object has > no attribute 'exterior_der' > > As mentionned in http://sagemanifolds.obspm.fr/changelog.html the function exterior_der has been renamed

[sage-support] Re: creating an action in sage manifold

2016-05-31 Thread Eric Gourgoulhon
Hi, Le lundi 30 mai 2016 23:12:01 UTC+2, Zach Elgood a écrit : > > Thank you for your response. I haven't actually tried the example, as my > expression is much more complex. However, let's say I want to take the > covariant derivative of the following vector with respect to the >

[sage-support] Re: Abstract tensor manipulation in Sage Manifold

2016-05-27 Thread Eric Gourgoulhon
Le jeudi 26 mai 2016 21:03:23 UTC+2, Zach Elgood a écrit : > > Thank you very much for the reply. What I was looking for was a tensor > which I could manipulate and then choose the basis at a later time. > OK I see. Unfortunately this is not possible in the current setting: you have to define

[sage-support] Re: Abstract tensor manipulation in Sage Manifold

2016-05-26 Thread Eric Gourgoulhon
Hi, Le mercredi 25 mai 2016 18:40:57 UTC+2, Zach Elgood a écrit : > > I recently started using Sage Manifolds, and was wondering if it was > possible to define tensor expression independent of basis. For example, I > am working with some quantum field theory, and am trying to define the >

Re: [sage-support] Re: sqrt(x) * sqrt(y) versus sqrt(xy)

2016-05-24 Thread Eric Gourgoulhon
Le mardi 24 mai 2016 16:03:55 UTC+2, Michael Orlitzky a écrit : > > > If you're sure that every expression involved is real, that's still the > correct answer, because x == 0. If sqrt(x) or sqrt(-x) might not be > real, you're going to get nonsense calling simplify_real() on them. > > Yes, I

Re: [sage-support] Re: sqrt(x) * sqrt(y) versus sqrt(xy)

2016-05-24 Thread Eric Gourgoulhon
Le mardi 24 mai 2016 14:21:23 UTC+2, vdelecroix a écrit : > > Hi Eric, > > Thanks for sharing the `simplify_real`! > > However, I am not happy with this solution either. The method > simplify_real never checks the domain of functions. This is a complete > nonsense. > > sage: (sqrt(-x) *

[sage-support] Re: sqrt(x) * sqrt(y) versus sqrt(xy)

2016-05-24 Thread Eric Gourgoulhon
Hi Vincent, Note that with your assumptions, invoking simplify_real() does the job: sage: bool((sqrt(x) * sqrt(y) == sqrt(x*y)).simplify_real()) True This is because sage: sqrt(x*y).simplify_real() sqrt(x)*sqrt(y) Best regards, Eric. -- You received this message because you are

[sage-support] Re: [sage-devel] Coming SageMathCell upgrade - please test!

2016-04-18 Thread Eric Gourgoulhon
Hi, Le lundi 18 avril 2016 10:58:48 UTC+2, Thierry (sage-googlesucks@xxx) a écrit : > > Hi, > > it works almost well on iceweasel (Firefox 38.7.1) on Debian jessie > (stable). I see however two issues. > > First, autocompletion does not work, when i click on , the cursor > jumps on

  1   2   >