[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: 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: plot3d

[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) > P.sh

[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@go

[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) Omega0*c

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+unsubscr..

[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 t

[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: https://cocalc.com/projects/551a1e1d-9360-47bf-89ba-91603e96c7fe/files/2017-10-2

[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 a

[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 a

[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 app

[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 Holonomic.

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 packag

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. T

[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 coefficie

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: 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 sage:

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. > > H

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. > It

[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 on

[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 - a^

[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 i

[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 group

[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 auto

[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') sa

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 1

[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 availab

[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 s

[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: 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 S

[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 M.ira

[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 email

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 us

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, whic

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 : >> >> &g

[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 suf

[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: 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) - (s*t

[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: 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: https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/differentiable/metric.html#sage.manifolds.differentiable.me

[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 > maxi

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

2020-06-01 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. > T

[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 t

[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 c

[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

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 f

[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 general

[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 BE

[sage-support] Re: Whats wrong with my function syntax?

2015-04-01 Thread Eric Gourgoulhon
Hi, In p(x) = x^3 – 3*x^2 + x - 1 the first minus sign is incorrect (probably, it comes from some cut and paste): delete it and replace it by a minus sign typed with the keyboard: p(x) = x^3 - 3*x^2 + x - 1 Then everything works fine. Eric. -- You received this message because you are subsc

Re: [sage-support] Preparing Latex slide for presentation

2015-06-28 Thread Eric Gourgoulhon
Hi, An alternative to the double '\' suggested by Vincent is to prefix the whole string with 'r', which indicates that the string is a *raw* string, so that '\t' is not to be interpreted as a tab but as '\' + 't': show(r"$\theta$") Eric. -- You received this message because you are subscribe

[sage-support] LaTeX in PDF export of ipython notebook

2015-08-12 Thread Eric Gourgoulhon
Hi, When running Sage 6.8 in jupyter/ipython notebook, we can have a LaTeX rendering of the cell outputs by starting the worksheet with %display latex This works nice. However, if we export the worksheet to PDF by clicking on File -> Download as -> PDF via LaTeX (.pdf), the LaTeX rendering of th

Re: [sage-support] 6.9rc3 : Ipython notebook seems seriously out of whack.

2015-10-11 Thread Eric Gourgoulhon
Le dimanche 11 octobre 2015 09:53:49 UTC+2, Emmanuel Charpentier a écrit : > > And #19374 still doesn't work for me neither in the "old" or the "new" > sheet). > > Works fine for me with the just released sage 6.9 (which includes #19374). - System: Ubuntu 14.04 LTS 64bits with libssl-dev packag

Re: [sage-support] 6.9rc3 : Ipython notebook seems seriously out of whack.

2015-10-12 Thread Eric Gourgoulhon
Le lundi 12 octobre 2015 09:33:21 UTC+2, Emmanuel Charpentier a écrit : > > > > Two bizarreries : > > The "simple" output doesn't have the superfetatory parentheses around the > -I solution... > > This has nothing to do with the LaTeX rendering in the jupyter notebook: it results from sage comm

[sage-support] Re: no matplotlib inline

2015-10-17 Thread Eric Gourgoulhon
Works well for me, with sage 6.9 on Ubuntu 14.04 64bits: In[1]: plot(sin(x^2), (x,0,4), axes_labels=['$x$','$y$']) in the Jupyter notebook results in a nice inline matplotlib graphic. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscri

[sage-support] Re: Packages needed for self-compiled Sage on Ubuntu

2016-01-06 Thread Eric Gourgoulhon
FWIW, here is the list of Ubuntu 15.10 packages that I had to install "by hand" (the other ones, like gcc or python, being part of the system install): git g++ gfortran m4 liblapack-dev libgsl0-dev libfftw3-dev libssl-dev libav-tools-links pandoc libffi-dev texlive-latex-extra lrzip With thos

[sage-support] Re: Packages needed for self-compiled Sage on Ubuntu

2016-01-06 Thread Eric Gourgoulhon
Le mercredi 6 janvier 2016 17:23:18 UTC+1, Volker Braun a écrit : > >> >> liblapack-dev >> libgsl0-dev >> libfftw3-dev >> > libav-tools-links >> > lrzip > > > Aren't needed but maybe they are ubuntu dependencies > Actually lrzip is not required to build from source, but to uncompress some sag

[sage-support] Re: Packages needed for self-compiled Sage on Ubuntu

2016-01-06 Thread Eric Gourgoulhon
Le mercredi 6 janvier 2016 17:37:38 UTC+1, Volker Braun a écrit : > > On Wednesday, January 6, 2016 at 5:21:37 PM UTC+1, Dima Pasechnik wrote: > > >> I cannot imagine where one needs 'pandoc' in this grand scheme of thiings >> (although it's generally useful) >> > > Jupyter "save as pdf" requi

[sage-support] Re: Sage Crash Report

2016-03-29 Thread Eric Gourgoulhon
Hi Oscar, I'm afraid I cannot help much with your specific problem. The only thing I can tell is that Sage 7.1 + SageManifolds 0.9 works well on Ubuntu, which is based on Debian, but of course differs from it. Best regards, Eric. Le mardi 29 mars 2016 16:04:20 UTC+2, Oscar Alberto Castillo F

[sage-support] Re: Format of partial derivatives within sagemanifolds

2016-04-03 Thread Eric Gourgoulhon
Hi, Le vendredi 1 avril 2016 20:23:29 UTC+2, Oscar Alberto Castillo Felisola a écrit : > > > Then, the "problem" is that the PDE displayed show partial derivatives > with respect to `th` or `ph` instead of using the LaTeX symbols as defined > on the patch. > > Yes this is a current shortcoming

[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 "Evaluate

[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 subscribed

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) * sqrt

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 t

[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 > follo

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

2016-05-26 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 a

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

2016-05-30 Thread Eric Gourgoulhon
Hi, Le lundi 30 mai 2016 17:31:14 UTC+2, Zach Elgood a écrit : > > Hello again, > Thank you very much for the previous help. Some of the research I do > involves using actions to calculate things like the Euler Lagrange > equations. I was wondering if this is possible to do in Sage. > To my kno

[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 > Schwarzschild

[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 exteri

[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 https://gro

[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 wishes,

[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 don

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 your

[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 w

[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: la

[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] Re: Cannot open Sage in VirtualBox (sagevm login?)

2014-03-18 Thread Eric Gourgoulhon
Hi, A friend of mine had exactly the same problem: the virtual machine shut down with "Caught signal 15" on Windows 8 64-bit. It seems that's because he installed the 32-bit version of VirtualBox. After installing the 64-bit version of VirtualBox (4.3.8), the problem disappeared and Sage works

[sage-support] Re: Simplify expression with hyperbolic functions

2014-03-20 Thread Eric Gourgoulhon
Hi, I do not see any simple way to do this in Sage at the moment. Following this post, a workaround is to use the extension rewrite() written by François Maltey (see here for

[sage-support] Re: keyboard

2014-03-26 Thread Eric Gourgoulhon
Hi, Le samedi 25 janvier 2014 19:23:04 UTC+1, cyrille piatecki a écrit : > > A very simple question needing a very simple answer for a beginner --- > I suppose the question has been asked a lot of time --- : how toset the > keyboard --- in my case french --- in Sage under Windows an VMware.

[sage-support] Re: [sage-cloud] Evaluating very simple inequalities

2014-06-05 Thread Eric Gourgoulhon
Hi, > > On Wed, Jun 4, 2014 at 8:42 AM, Cyril Bdl > > wrote: > > Hello, > > > > Is this normal ? > > > > var('t') > > assume(t<1,t>-1) > > assume(t,'real') > > bool(abs(t)<1) > > > > False > > > > This led my students (and I !!) to many difficulties before we > understood that all w

[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 no

[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: 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 sa

[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

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 w

[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 >

[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 particu

[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-supp

[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.manifolds.u

[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. > > A

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, yo

[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 SageMath wi

[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 outdated

[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 pl

[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: 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 c

[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: 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, scal...@gmail.

[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 tu

[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 kernel

[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 : >

  1   2   >