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 error: Killed signal terminated program cc1plus
which points towards a RAM limitation. Could you further increase the RAM 
allocated to WSL? 

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/beaf4c99-9aef-4f60-a0b7-aa8d18e15313n%40googlegroups.com.


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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/839ef2d1-c7aa-4457-8385-26e6c3eebce9n%40googlegroups.com.


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 --execute" for this
https://nbconvert.readthedocs.io/en/latest/execute_api.html


Thank you for the tip!
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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/14bbcbc2-136b-436b-83e9-a9774d80faabn%40googlegroups.com.


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:
https://ask.sagemath.org/question/75256/connection-forms-not-anti-symmetric/

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fda2d459-24d2-47f4-8cec-6cf8033ca9fbn%40googlegroups.com.


[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 
   
<https://nbviewer.jupyter.org/github/ernestyalumni/Gravite/blob/master/EMsage.ipynb>
[ipynb 
   
<https://raw.githubusercontent.com/ernestyalumni/Gravite/master/EMsage.ipynb>] 
   (Electromagnetic field 2-form from E and B, Maxwell equations, conserved 
   current, Lorentz force, Poynting vector)
   

Fails with the error in the title and in more detail below. 


For reference: this is discussed in the new 
thread https://groups.google.com/g/sage-support/c/yD6k655EWOA/m/3AMzKdpaAQAJ

Besides, the question about the connection forms has been answered on  
 https://ask.sagemath.org/

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/6673df0f-7d05-43a8-a391-8d2a33866c01n%40googlegroups.com.


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/blob/master/EMsage.ipynb
in order for the author to update it.  


In order to avoid any further confusion, I've temporarily removed the link 
to this notebook from 
https://sagemanifolds.obspm.fr/examples.html

Any volunteer for providing a nice example notebook about electromagnetism 
is welcome!
To publish it on the above page, make it publicly accessible (i.e.  
readable via nbviewer.org) and send a pull request to 
https://github.com/sagemanifolds/WebSite
(or simply send the ipynb file to me)

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/4626d855-a675-4074-a00b-6f692e5f9782n%40googlegroups.com.


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 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/blob/master/EMsage.ipynb
in order for the author to update it.  

I don't know about any automated way to check that the example notebooks 
are up to date. I am trying to maintain those hosted at
https://github.com/sagemanifolds/SageManifolds
up to date, but the one you are using is not part of them. 
 
By the way, note that since Sage 9.2 an alternative to 
F.exterior_derivative()
is 
diff(F)

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/07d046e2-7c74-4341-b789-cd732077e448n%40googlegroups.com.


[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 the real domain, avoiding to play too much 
with complex square roots, one can add at the beginning of the Sage session:

maxima_calculus.eval("domain: real;")

Then the second example in the initial message of this thread yields

[[x == 2/5*sqrt(6)*sqrt(5), y == 16, l == 1/9*18750^(1/6)], [x == 
-2/5*sqrt(6)*sqrt(5), y == 16, l == -1/9*18750^(1/6)]]

instead of an empty list.

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/11caaed1-e48a-4d0f-a29a-a529cc4019c1n%40googlegroups.com.


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

> Yesterday I was demonstrating to my calculus class Sage's ability to 
> implement the method of Lagrange multipliers. I used a standard example, 
> putting the following code into SageMath Cell:
>
> var('x,y,l')
> f(x,y)=10*x^(1/3)*y^(2/3)
> g(x,y)=5*x-6*y
> fx=diff(f,x)
> fy=diff(f,y)
> gx=diff(g,x)
> gy=diff(g,y)
> solve((fx(x,y)==l*gx(x,y),fy(x,y)==l*gy(x,y),g(x,y)==120),(x,y,l))
>
> That works beautifully. Then I decided to show off Sage's powers by 
> making a little change:
>
> var('x,y,l')
> f(x,y)=10*x^(1/3)*y^(2/3)
> g(x,y)=5*x^2+6*y
> fx=diff(f,x)
> fy=diff(f,y)
> gx=diff(g,x)
> gy=diff(g,y)
> solve((fx(x,y)==l*gx(x,y),fy(x,y)==l*gy(x,y),g(x,y)==120),(x,y,l))
>
> SageCell now gives me a spinning symbol ("I'm working") for a while, 
> then seems to exit without any result. On my local installation (Sage 
> 9.2 on Windows) it returns an empty list, [].
>
> What is curious is that the 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.
>
> -- 
> ==
> Fernando Q. Gouvea
> Carter Professor of Mathematics
> Colby College
> Mayflower Hill 5836
> Waterville, ME 04901 
> fqgo...@colby.edu http://www.colby.edu/~fqgouvea
>
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8f554c04-42d9-4765-bd3a-a82bd2758bddn%40googlegroups.com.


[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
https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/utilities.html#sage.manifolds.utilities.simplify_chain_real
yields overcomplicated expressions in your case. 
To get a much simpler result, which looks much closer to Eq. (37) of the 
paper, you have to replace the default simplification chain by a customized 
one. In your case, it suffices to use the function factor(). 
For this, use the manifold's method set_simplify_function() just after the 
declaration of the chart X
https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/manifold.html#sage.manifolds.manifold.TopologicalManifold.set_simplify_function
i.e. start you notebook with

N = Manifold(2,'N')
X. = N.chart(r' M:(0,oo) J:(-oo,oo)')
N.set_simplify_function(factor)

Best wishes,

Eric. 

Le lundi 20 novembre 2023 à 04:44:49 UTC+1, Rogerio a écrit :

Recently I encountered an odd result while using Sagemanifolds to calculate 
the Ricci scalar for a specific 2D metric. I was trying to reproduce Eq. 
(37) of this paper <https://arxiv.org/pdf/gr-qc/0304015.pdf>, but the 
result was quite different. Here is the code
 N = Manifold(2,'N')
 X. = N.chart(r' M:(0,oo) J:(-oo,oo)')
 ​
 dM = X.coframe()[0]
 dJ = X.coframe()[1]
 g0 = 2/(1-J^2/M^4)^(3/2)*(-2*((1-J^2/M^4)^(3/2) +1-3*J^2/M^4)*dM*dM - 2*J/M
^3*dM*dJ - 2*J/M^3*dJ*dM + dJ*dJ/M^2)
 ​
 g = N.metric('g')
 g[:] = g0[:]
 ric = g.ricci_scalar()

The result is a high order rational function not resembling the paper 
result. However, taking
 R = N.scalar_field(1/(4*M^2)*(sqrt(1-J^2/M^4)-2)/sqrt(1-J^2/M^4),name='R')
 delta_R = ric-R
 ​
 delta_R == 0

Results True.

How to express the Ricci scalar as shown in the paper?

Thanks in advance!

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b01ced68-390f-4a1f-ae64-0b5b4617f806n%40googlegroups.com.


[sage-support] help debugging latex() printing with trace()

2023-10-26 Thread Eric Majzoub
I would like to debug the latex printing of an expression that ambiguous.

To reproduce it:
t = var('t')
x = function('x')(t)
latex( diff(x,t)^2 )

This produces ambiguous output, essentially:

partial_t x^2

instead of

(partial_t x)^2

I have tried:
from sage.misc.trace import trace
trace("latex( diff(x,t)^2 )")

but I can't understand in which .py file the translation of "diff" occurs. 
As I understand the source code, there should be a _latex_(self) for every 
object or method to display latex code, but I can't seem to find it here. 

Any help is greatly appreciated.


-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/a530254d-9fec-452f-80cd-153d3769d34fn%40googlegroups.com.


[sage-support] Re: scipy fails to build in sage 10.2.beta4 on fedora 38

2023-09-25 Thread Eric Majzoub

I have the python package mesonpy installed... 
Perhaps I'm not setting my python path appropriately, but
PYTHONPATH=/usr/lib/python3.11/site-packages
points right to it.
On Monday, September 25, 2023 at 4:30:11 PM UTC-5 Eric Majzoub wrote:

> Fresh clone of git repository of sage. I issued:
>
> cd sage 
> ./bootstrap 
> ./configure --no-create --no-recursion 
> make 
>
> I've attached the log file for the scipy fail.
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/c8b97804-3015-496f-803a-5184659cac7dn%40googlegroups.com.


[sage-support] scipy fails to build in sage 10.2.beta4 on fedora 38

2023-09-25 Thread Eric Majzoub
Fresh clone of git repository of sage. I issued:

cd sage 
./bootstrap 
./configure --no-create --no-recursion 
make 

I've attached the log file for the scipy fail.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/b65e6f4f-78b9-4e17-982d-a7839748dea4n%40googlegroups.com.
Attempting to download package scipy-1.11.2.tar.gz from mirrors
https://mirrors.mit.edu/sage/spkg/upstream/scipy/scipy-1.11.2.tar.gz
[..]
scipy-1.11.2

Setting up build directory for scipy-1.11.2
Finished extraction
Applying patches from ../patches...
Applying ../patches/numpy-include.patch
patching file scipy/spatial/setup.py
Hunk #1 succeeded at 39 (offset -1 lines).
Applying ../patches/tests_no_internet_dependency.patch
patching file scipy/datasets/meson.build

Host system:
Linux fedora 6.4.15-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Sep  7 00:25:01 UTC 2023 x86_64 GNU/Linux

C compiler: gcc
C compiler version:
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/13/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
OFFLOAD_TARGET_DEFAULT=1
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,objc,obj-c++,ada,go,d,m2,lto --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --enable-libstdcxx-backtrace --with-libstdcxx-zoneinfo=/usr/share/zoneinfo --with-linker-hash-style=gnu --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-13.2.1-20230728/obj-x86_64-redhat-linux/isl-install --enable-offload-targets=nvptx-none --without-cuda-driver --enable-offload-defaulted --enable-gnu-indirect-function --enable-cet --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux --with-build-config=bootstrap-lto --enable-link-serialization=1
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.2.1 20230728 (Red Hat 13.2.1-1) (GCC) 

Package 'scipy' is currently not installed
No legacy uninstaller found for 'scipy'; nothing to do
Installing scipy-1.11.2
DEPRECATION: --no-binary currently disables reading from the cache of locally built wheels. In the future --no-binary will not influence the wheel cache. pip 23.1 will enforce this behaviour change. A possible replacement is to use the --no-cache-dir option. You can use the flag --use-feature=no-binary-enable-wheel-cache to test the upcoming behaviour. Discussion can be found at https://github.com/pypa/pip/issues/11453
Processing /home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/var/tmp/sage/build/scipy-1.11.2/src
  Preparing metadata (pyproject.toml): started
  Running command Preparing metadata (pyproject.toml)
  Preparing metadata (pyproject.toml): finished with status 'done'
ERROR: Exception:
Traceback (most recent call last):
  File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
 ^^^
  File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
return func(self, options, args)
   ^
  File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/commands/wheel.py", line 170, in run
requirement_set = resolver.resolve(reqs, check_supported_wheels=True)
  ^^^
  File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 73, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
^
  File "/home/packages/SOURCE/sage/local/var/lib/sage/venv-python3.11/lib64/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 491, in collect_root_requirements
req = self._make_requirement_from_install_req(
  
  File 

[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 septembre 2023 à 04:48:21 UTC+2, Ian Benson a écrit :

> Can you help to get the attached install to complete.
>
> At present it fails with the messages
>
> Error building Sage.
>
> The following package(s) may have failed to build (not necessarily
> during this run of 'make all-start'):
>
> * package: fplll-5.4.4
>   last build time: Sep 12 22:52
>   log file:   
>  /home/ibenson/sagemath/stagedevelop/sage/logs/pkgs/fplll-5.4.4.log
>   build directory: 
> /home/ibenson/sagemath/stagedevelop/sage/local/var/tmp/sage/build/fplll-5.4.4
>
> * package: fflas_ffpack-2.4.3.p0
>   last build time: Sep 12 22:55
>   log file:   
>  /home/ibenson/sagemath/stagedevelop/sage/logs/pkgs/fflas_ffpack-2.4.3.p0.log
>   build directory: 
> /home/ibenson/sagemath/stagedevelop/sage/local/var/tmp/sage/build/fflas_ffpack-2.4.3.p0
>
> * package: giac-1.9.0.15p0
>   last build time: Sep 12 22:59
>   log file:   
>  /home/ibenson/sagemath/stagedevelop/sage/logs/pkgs/giac-1.9.0.15p0.log
>   build directory: 
> /home/ibenson/sagemath/stagedevelop/sage/local/var/tmp/sage/build/giac-1.9.0.15p0
>
> No LSB modules are available.
> Distributor ID: Ubuntu
> Description:Ubuntu 22.04.2 LTS
> Release:22.04
>
> I attach the logs as requested.
>
> Many thanks for all your hard work.
>
> ~i
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/49fc7b49-67fb-4f0a-af4d-4de090d959b1n%40googlegroups.com.


[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 UTC+2, Varvara Karpova a écrit :

Hello,

I am interested in running SageMath (ideally as kernel with JupyterHub) in 
a Docker image other than cocalc. 

On the installation page 
https://doc.sagemath.org/html/en/installation/index.html
the link to "another Docker image providing SageMath 
<https://github.com/sagemath/sage/issues/wiki/Distribution#Dockerimages>" 
seems to be broken. 
Can anyone suggest which Docker images I could use and where to find them? 

Thanks a lot, 

Varvara


 




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/c1dcb4ed-e95c-488d-81b9-56338e460eb5n%40googlegroups.com.


[sage-support] Re: Error building 9.8 on Ubuntu 23.04

2023-04-08 Thread Eric Majzoub
Thank you, this allows sage to complete the build. However, now I have 
another problem. When I run sage from its install directory it gives the 
error:

AttributeError: module 'sage_conf' has no attribute '_main'

And then strangely, it starts Sage 9.5, the version installed on my system 
through apt. I didn't want to remove this version using apt because I 
thought it would remove a lot of packages that I need for other programs. 
Here is the full output.

./sage 
Traceback (most recent call last): 
 File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 
33, in <
module> 
   sys.exit(load_entry_point('sage-conf', 'console_scripts', 
'sage-config')()) 
^^^ 
 File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 
25, in i
mportlib_load_entry_point 
   return next(matches).load() 
   
 File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 204, in 
load 
   return functools.reduce(getattr, attrs, module) 
   
AttributeError: module 'sage_conf' has no attribute '_main' 
Traceback (most recent call last): 
 File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 
33, in <
module> 
   sys.exit(load_entry_point('sage-conf', 'console_scripts', 
'sage-config')()) 
^^^ 
 File "/home/packages/SOURCE/sage/ehm_install/bin/././sage-config", line 
25, in i
mportlib_load_entry_point 
   return next(matches).load() 
   
 File "/usr/lib/python3.11/importlib/metadata/__init__.py", line 204, in 
load 
   return functools.reduce(getattr, attrs, module) 
   
AttributeError: module 'sage_conf' has no attribute '_main' 
┌┐ 
│ SageMath version 9.5, Release Date: 2022-01-30 │ 
│ Using Python 3.11.2. Type "help()" for help.   │ 
└┘



On Friday, April 7, 2023 at 4:53:15 PM UTC-5 John H Palmieri wrote:

> Some recent versions of Singular don't seem to work with Sage. You could 
> try "make distclean" (to start over) and "./configure 
> --with-system-singular=no" to force Sage to build its own Singular. Then 
> "make".
>
> On Friday, April 7, 2023 at 2:22:20 PM UTC-7 Eric Majzoub wrote:
>
>> Following the procedure outlined on the Sage install page for Ubuntu.
>>
>> make fails showing:
>> Error building Sage. 
>>
>> The following package(s) may have failed to build (not necessarily 
>> during this run of 'make all-start'): 
>>
>> * package: sagelib-9.8 
>>  last build time: Apr 7 15:48 
>>  log file:/home/packages/SOURCE/sage/logs/pkgs/sagelib-9.8.log
>>
>> The log file is attached. It shows that gcc exits with status 1, but 
>> doesn't give any specific error output from gcc itself. It fails on 
>> building multi_polynomial_libsingular.
>>
>> Any help is appreciated.
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/815d19ca-00ae-49ec-84bf-6a015fb0ecfcn%40googlegroups.com.


[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 
again and then make. 

Eric.
Le mercredi 15 février 2023 à 06:02:21 UTC+1, lingmin cui a écrit :

> After make I get 
>
> *** 
> Error building Sage. 
>
> The following package(s) may have failed to build (not necessarily 
> during this run of 'make all-start'): 
>
> * package: openblas-0.3.20 
>  last build time: Feb 15 11:07 
>  log file: 
>/home/tr0uble/sage/sage-9.7/logs/pkgs/openblas-0.3.20.log 
>  build directory: 
> /home/tr0uble/sage/sage-9.7/local/var/tmp/sage/build/openblas-0.3.20 
>
> It is safe to delete any log files and build directories, but they 
> contain information that is helpful for debugging build problems. 
> WARNING: If you now run 'make' again, the build directory of the 
> same version of the package will, by default, be deleted. Set the 
> environment variable SAGE_KEEP_BUILT_SPKGS=yes to prevent this.
>
>
> and here is the openblas log file
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fd085177-d19f-4173-ad37-b9280fc17331n%40googlegroups.com.


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 dimanche 5 février 2023 à 12:56:05 UTC+1, chris.patr...@gmail.com a 
écrit :

> Apologies, must read email when my brain is working. The deformation 
> gradient has a covariant index on M and a contravariant index on S. As such 
> it maps a vector on M to a (deformed m) vector on S i.e., x^i = F^i_J X^J 
> where F^i_J = \del chi(X^i) / X^J where x  = \chi(X).
>
> On Sun, 5 Feb 2023 at 10:05 PM, Chris Bradley  
> wrote:
>
>> Hi all,
>> I'm new to Sage so forgive me if this is a dumb question but does Sage 
>> deal with two-point tensors? By this I mean a second order tensor with one 
>> contravariant index in the tangent space of one manifold and one 
>> contravariant index in the tangent space of another manifold. The 
>> particular application is in solid mechanics and is the deformation 
>> gradient tensor which is given by the derivative of the map between the two 
>> manifolds i.e., \chi: M -> S where M has chart coordinates X and S has 
>> chart coordinates x and the deformation gradient tensor is given by F = 
>> \del \chi/ \del X. All I've managed to find, documentation wise, involves 
>> creating tensors from the tangent/cotangent space of a single manifold 
>> rather than a tensor from the tangent space of M and the tangent space of 
>> S. Thanks in advance.
>>
>> Best wishes
>> Chris
>>
>> -- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "sage-support" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/sage-support/XDQHDYuKwRs/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> sage-support...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/sage-support/94042d7b-7772-4778-818f-21bcea9646b6n%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/sage-support/94042d7b-7772-4778-818f-21bcea9646b6n%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/7aa4c9d9-62ec-4f19-b4de-2f83e9d7eab3n%40googlegroups.com.


[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 to github, 
which should take place in February. 

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/11c6fd21-f238-470d-bdd4-15ed5ed231a0n%40googlegroups.com.


[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 benefit is that 
it will provide you with the latest version of Sage (9.7).

Best wishes, 

Eric. 


Le jeudi 24 novembre 2022 à 14:33:20 UTC+1, m.ko...@gmail.com a écrit :

> I have operating system Linux Lite 6.2 that is based on Ubuntu. I 
> installed Sage from windows package manager Synaptic that is available 
> through Xfce menu. When I write into terminal prompt the command sage, Sage 
> starts with info 
> SageMath version 9.5, Release Date: 2022-01-30 │
> │ Using Python 3.10.6. Type "help()" for help.   
>
> But suddenly follows some Python warnings, like
> /usr/bin/python3(+0x23d9fd)[0x55b08278a9fd]
> /usr/bin/python3(+0x15cdc9)[0x55b0826a9dc9]
> /usr/bin/python3(_PyEval_EvalFrameDefault+0x289f)[0x55b08269484f]
> /usr/bin/python3(_PyFunction_Vectorcall+0x7c)[0x55b0826a9b6c]
>
> Plenty of similar staff and Sage start crashes with text:
> #248 0x7fda0c267dc0 in __libc_start_main_impl () at 
> ./csu/../csu/libc-start.c:392
> #249 0x55b082777a90 in _start ()
>
> [Inferior 1 (process 3907) detached]
> 30../sysdeps/unix/sysv/linux/wait4.c: Adresár alebo súbor neexistuje.
> Saved trace to /home/michal/.sage/crash_logs/crash_ikxir8ce.log
> 
> Unhandled SIGILL: An illegal instruction occurred.
> This probably occurred because a *compiled* module has a bug
> in it and is not properly wrapped with sig_on(), sig_off().
> Python will now terminate.
>
> I use Slovak localization. "Adresár alebo súbor neexistuje." could be 
> translated as "No file or folder." or as "File or directory does not 
> exist.".
> I do not know where the problem is and what to do to make sage working.
>
> I am sending crash_ikxir8ce.log file as an attachment. And I am adding a 
> print screen of  Synaptic package manager choices for Sage
>
> Many thanks for help.
>
> Best regards
> Michal Kopčok (read as Kopchok)
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/01ca88e9-c56b-4b68-bd86-b8f0d6a7fc1an%40googlegroups.com.


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

> My problem can be explained with the following two plots:
>
> plot(factorial(x),x,0,9)
>
> and
>
> plot(factorial(x),x,0,10)
>
> When plotting up to 9, the plot gives me exactly what i expect, a 
> linear-linear plot.
> When plotting up to 10 though, sage silently chose to make the y-axis 
> log10. This should not be the standard behavior as it leads to confusion.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/bb4caf03-3c82-4c8b-84af-360f42faaf9dn%40googlegroups.com.


[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 to avoid cache) for three different simplifying methods: the 
> standard, the simplify, and a function that just returns the expression. It 
> makes a huge difference.
>
> For the Kerr-Newman metric, without simplification is ~500x faster 
> (considering the wall time).
>
> - default
> CPU times: user 5min 6s, sys: 4.16 s, total: 5min 10s
> Wall time: 3min
>
> - simplify
> CPU times: user 40.1 s, sys: 359 ms, total: 40.4 s
> Wall time: 27.3 s
>
> - no simplification
> CPU times: user 468 ms, sys: 785 µs, total: 468 ms
> Wall time: 340 ms
>
>
> For the metric given by
>
> [-1, 0, 0, 0]
> [0, h11(t, r, th, ph), h12(t, r, th, ph), h13(t, r, th, ph)]
> [0, h12(t, r, th, ph), h22(t, r, th, ph), h23(t, r, th, ph)]
> [0, h13(t, r, th, ph), h23(t, r, th, ph), h33(t, r, th, ph)]
>
> the results are more even impressive. No simplification is ~4000x faster.
>
> - default
> CPU times: user 40min 26s, sys: 17.9 s, total: 40min 43s
> Wall time: 31min 29s
>
> - simplify
> CPU times: user 3min 10s, sys: 978 ms, total: 3min 11s
> Wall time: 2min 44s
>
> - no simplification
> CPU times: user 715 ms, sys: 14.2 ms, total: 729 ms
> Wall time: 573 ms
>
> Best wishes,
>
> Rogerio
>
> Em sábado, 3 de setembro de 2022 às 12:55:33 UTC-3, egourg...@gmail.com 
> escreveu:
>
>> 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 turn off these simplifications?
>>
>>
>> Yes, via the method M.set_simplify_function. It suffices to pass a fast 
>> function as argument, like simplify.  
>> For instance:
>>
>> sage: M = Manifold(4, 'M')
>> sage: X. = M.chart()
>> sage: M.set_simplify_function(simplify)
>>
>> NB: the call to M.set_simplify_function must be done after the chart(s) 
>> have been defined. It can also be done chartwise, via
>> X.calculus_method().set_simplify_function(simplify)
>>
>> See 
>>
>> https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/manifold.html#sage.manifolds.manifold.TopologicalManifold.set_simplify_function
>> for details. 
>>
>> 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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/af76ad88-21ab-44c8-a710-b4c09e6c4b77n%40googlegroups.com.


[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 turn off these simplifications?


Yes, via the method M.set_simplify_function. It suffices to pass a fast 
function as argument, like simplify.  
For instance:

sage: M = Manifold(4, 'M')
sage: X. = M.chart()
sage: M.set_simplify_function(simplify)

NB: the call to M.set_simplify_function must be done after the chart(s) 
have been defined. It can also be done chartwise, via
X.calculus_method().set_simplify_function(simplify)

See 
https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/manifold.html#sage.manifolds.manifold.TopologicalManifold.set_simplify_function
for details. 

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/33638357-b06e-4d02-9506-df39f75994dbn%40googlegroups.com.


[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.com a écrit :

> Hi all. I am relatively new to linux and I am trying to install sagemath 
> on ubuntu instead of using co-calc. I am attempting to install sage (and 
> hopefully make it communicable with emacs) on my new computer.  After 
> running 
>
> sudo apt update 
> sudo apt install sagemath 
> sage 
>
> I get the following error. Does anyone know how to read this and figure 
> out what I missed in trying to install sage? 
>
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/97ea05f2-541b-45af-8126-e051c3c717efn%40googlegroups.com.


[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 signs comes 
from...
Le dimanche 5 juin 2022 à 15:50:41 UTC+2, raymond@gmail.com a écrit :

> show('1_1=',2)
> Works fine in console mode.
> In jupyter and jupyterlab:
>
> 1-1=2
>
> It seems to be auto-corrected; I see the correct output momentarily then
> it gets "corrected".
> Where should I report it?
>
> Sagemath 9.6
> Linux Mate
> Google chrome and Firefox
>
> rrogers
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/eed42bec-6f61-4280-8ccf-b244b6eb77een%40googlegroups.com.


[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 code:
> view(crystals.Tableaux("A3",shape=[2,1]))
>
> I end up getting this long error: 
>
> An error occurred. This is pdfTeX, Version 3.141592653-2.6-1.40.24 (MiKTeX 
> 22.3) (preloaded format=pdflatex 2022.6.1) 1 JUN 2022 21:54 entering 
> extended mode restricted \write18 enabled. %&-line parsing enabled. 
> **\nonstopmode \input{sage.tex} (sage.tex 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\article.cls 
> Document Class: article 2021/10/04 v1.4n Standard LaTeX document class 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\size10.clo 
> File: size10.clo 2021/10/04 v1.4n Standard LaTeX file (size option) ) 
> \c@part=\count185 \c@section=\count186 \c@subsection=\count187 
> \c@subsubsection=\count188 \c@paragraph=\count189 \c@subparagraph=\count190 
> \c@figure=\count191 \c@table=\count192 \abovecaptionskip=\skip47 
> \belowcaptionskip=\skip48 \bibindent=\dimen138 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsmath.sty 
> Package: amsmath 2021/10/15 v2.17l AMS math features \@mathmargin=\skip49 
> For additional information on amsmath, use the `?' option. 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amstext.sty 
> Package: amstext 2021/08/26 v2.01 AMS text 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsgen.sty 
> File: amsgen.sty 1999/11/30 v2.0 generic functions \@emptytoks=\toks16 
> \ex@=\dimen139 )) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsbsy.sty 
> Package: amsbsy 1999/11/29 v1.2d Bold Symbols \pmbraise@=\dimen140 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsmath\amsopn.sty 
> Package: amsopn 2021/08/26 v2.02 operator names ) \inf@bad=\count193 LaTeX 
> Info: Redefining \frac on input line 234. \uproot@=\count194 
> \leftroot@=\count195 LaTeX Info: Redefining \overline on input line 399. 
> \classnum@=\count196 \DOTSCASE@=\count197 LaTeX Info: Redefining \ldots on 
> input line 496. LaTeX Info: Redefining \dots on input line 499. LaTeX Info: 
> Redefining \cdots on input line 620. \Mathstrutbox@=\box50 
> \strutbox@=\box51 \big@size=\dimen141 LaTeX Font Info: Redeclaring font 
> encoding OML on input line 743. LaTeX Font Info: Redeclaring font encoding 
> OMS on input line 744. \macc@depth=\count198 \c@MaxMatrixCols=\count199 
> \dotsspace@=\muskip16 \c@parentequation=\count266 \dspbrk@lvl=\count267 
> \tag@help=\toks17 \row@=\count268 \column@=\count269 \maxfields@=\count270 
> \andhelp@=\toks18 \eqnshift@=\dimen142 \alignsep@=\dimen143 
> \tagshift@=\dimen144 \tagwidth@=\dimen145 \totwidth@=\dimen146 
> \lineht@=\dimen147 \@envbody=\toks19 \multlinegap=\skip50 
> \multlinetaggap=\skip51 \mathdisplay@stack=\toks20 LaTeX Info: Redefining 
> \[ on input line 2938. LaTeX Info: Redefining \] on input line 2939. ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amssymb.sty 
> Package: amssymb 2013/01/14 v3.01 AMS font symbols 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/amsfonts\amsfonts.sty 
> Package: amsfonts 2013/01/14 v3.01 Basic AMSFonts support 
> \symAMSa=\mathgroup4 \symAMSb=\mathgroup5 LaTeX Font Info: Redeclaring math 
> symbol \hbar on input line 98. LaTeX Font Info: Overwriting math alphabet 
> `\mathfrak' in version `bold' (Font) U/euf/m/n --> U/euf/b/n on input line 
> 106. )) (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\
> graphicx.st y Package: graphicx 2021/09/16 v1.2d Enhanced LaTeX Graphics 
> (DPC,SPQR) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\keyval.sty 
> Package: keyval 2014/10/28 v1.15 key=value parser (DPC) \KV@toks@=\toks21 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\graphics.sty 
> Package: graphics 2021/03/04 v1.4d Standard LaTeX Graphics (DPC,SPQR) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics\trig.sty 
> Package: trig 2021/08/11 v1.11 sin cos tan (DPC) ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-cfg\graphics.c
>  
> fg File: graphics.cfg 2016/06/04 v1.11 sample graphics configuration ) 
> Package graphics Info: Driver file: pdftex.def on input line 107. 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/graphics-def\pdftex.def
>  
> File: pdftex.def 2020/10/05 v1.2a Graphics/color driver for pdftex )) 
> \Gin@req@height=\dimen148 \Gin@req@width=\dimen149 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/jknappen\mathrsfs.sty 
> Package: mathrsfs 1996/01/01 Math RSFS package v1.0 (jk) 
> \symrsfs=\mathgroup6 ) 
> (C:\Users\dbisa\AppData\Local\Programs\MiKTeX\tex/latex/base\inputenc.sty 
> Package: inputenc 2021/02/14 v1.3d Input encoding file 
> 

[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 
> space curves?)
>

Yes it works for curves in 3d space, an more generally in any dimension 
(but the plots are then projections to 2d or 3d spaces). 
An example of a 3d curve plotted with its tangent velocity field is the 
loxodrome of the sphere shown at
https://sagemanifolds.obspm.fr/gallery.html

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/78ff0934-5633-4f8e-bbd7-793c900226e9n%40googlegroups.com.


[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 plot ("Plot of the curve and its tangent vector field") at
https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/differentiable/curve.html

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/771ea3bf-89e8-41db-aed5-3168ff33c6dan%40googlegroups.com.


[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. To fix this,

1/ remove the Ubuntu package "sagemath"

2/ Install SageMath 9.5 by following these simple instructions:
https://sagemanifolds.obspm.fr/install_ubuntu.html

Then search_src, search_def and search_doc will work. 

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/6bfbaa0b-47dc-4646-bd08-37fdbe880e1an%40googlegroups.com.


[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 will be free of this bug. 
Thanks again for the report!

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/31d62bf5-0cb2-48b9-9984-2006430d4f1fn%40googlegroups.com.


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, you can install the Ubuntu package python-is-python3, which 
makes the symlink for you. 

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/a0080c4a-5861-4522-a751-5edb69b405a4n%40googlegroups.com.


[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. 
>
> After running the following command i get an error.
>
> CC=gcc-7 CXX=g++ FC=gfortran-7 ./configure
>
> The error that i get is. 
>
> configure: error: 
>
> Given --with-system-gcc=force, but no system package could be used.
> That's an error.  Please install the indicated package to continue.
> (To override this error, use ./configure --without-system-gcc)
>
> Does anyone have a solution for this ? (using -without-system-gcc does fix 
> this error but why could system package not be used)
>
> Thanks,
> Saksham.
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/4ddfbed9-22df-463f-b11b-6ef21b63db71n%40googlegroups.com.


[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.utilities import ExpressionNice
> sage: x,y,u,v = var('x y u v')
> sage: f = function('f')(x, y)
> sage: ExpressionNice(f.subs(x=u+v,y=u-v).diff(v).diff(u))
> d^2(f)/d(u + v)^2 - d^2(f)/du - v^2
>
> I expected the output to be
> d^2(f)/d(u + v)^2 - d^2(f)/d(u - v)^2 
> with parenthesis around  (u - v).
>
> Alex
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/d02b3899-54d1-4e29-853e-8bbbdfcd24cbn%40googlegroups.com.


[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" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/a6ca6c0c-98ba-48ab-ab25-a27dfa84f396n%40googlegroups.com.


[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 particular the comment "On macOS, the *spawn* start method is now the 
> default" and https://bugs.python.org/issue33725.)
>
>
Thank you John for pointing this!

Alan, could you try to run your notebook after having added the following 
lines at the top of it?

import multiprocessing as mp
mp.set_start_method('fork')

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ba792649-1a5c-4b34-8a39-fbd74a795d04n%40googlegroups.com.


[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 
> <http://alan.atstafford.co.uk/Sage9.5Problem.ipynb>*
>

Your notebook works well with tpar=4 on my Ubuntu computer running Sage 
9.5.rc4.
What kind of error do you get?

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/16e676c2-0731-4864-b1e5-fa834bd83f0an%40googlegroups.com.


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 while browsing directories in 
the window opened after CTRL+O.  

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/dd62df2d-4a09-4475-bdf6-62af5a3249e3n%40googlegroups.com.


[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)
> - results in a file access error with Chromium, after having selected the 
> latter by
>   sage: sage.misc.viewer.viewer.browser('chromium')
>   
> It turns out that one cannot even open the directory ~/.sage from Chromium 
> with a simple CTRL+O: this results in "Permission denied", while the same 
> CTRL+O works fine with Firefox. Actually, no hidden directory can be opened 
> from Chromium. So this is certainly a configuration issue on the Chromium 
> side. 
>
> Eric.
>

The Chromium issue with hidden files has been already reported here:
https://askubuntu.com/questions/1312932/cant-browse-access-hidden-files-and-folders-with-chromium
No solution has been proposed though...

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/f1100e73-cc70-46b3-adbe-1870d3d25af8n%40googlegroups.com.


[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: sage.misc.viewer.viewer.browser('chromium')
  
It turns out that one cannot even open the directory ~/.sage from Chromium 
with a simple CTRL+O: this results in "Permission denied", while the same 
CTRL+O works fine with Firefox. Actually, no hidden directory can be opened 
from Chromium. So this is certainly a configuration issue on the Chromium 
side. 

Eric.

Le lundi 8 novembre 2021 à 12:25:24 UTC+1, John Cremona a écrit :

> I don't often use 3D graphics, but when I run implicitplot3d() I get
> a file permissions error (on ubuntu 20.04):
>
> # example from the docstring
> sage: var('x,y,z')
> (x, y, z)
> sage: implicit_plot3d(x^2+y^2+z^2==4, (x,-3,3), (y,-3,3), (z,-3,3))
> Launched html viewer for Graphics3d Object
>
> Over in my browser (chromium-browser) I see the error message "Access
> to the file was deniedThe file at
> file:///home/john/.sage/temp/john-Latitude-E5470/2250012/tmp_x5e1jfy0.html
> is not readable. It may have been removed, moved or file permissions
> may be preventing access." I changed the permissions on .sage and
> everything under it to a+rx and reloaded, with no change. I deleted
> all of ~/.sage and restarted sage and reran the commands, but the same
> happened.
>
> I can view other html files in my home directory using the browser.
>
> What should I do?
>
> John
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/0f2b339b-f6e9-4b84-b3b3-7fcfdcbe9e83n%40googlegroups.com.


[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 searched 
> from the ASKSAGE etc., there's no such options within the apt installed 
> version. So is there alternatives to install packages for this kind of 
> sagemath environment? Or we need to start over and build a fresh local 
> sagemath environment from scratch?
>

Unfortunately, the last option is the only way out here. So please download 
one of the binary builds available at 
https://www.sagemath.org/download-linux.html. The bonus is that you'll get 
a version of SageMath newer than the system one. 



 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/5b8742cb-699c-4c8f-a981-44d7698c549en%40googlegroups.com.


[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 notebook, and the "download as .tex" option works 
> great for me.
> The only problem is, I want the output to be rendered.
> Inside the notebook, I have '%display latex' set, so all output is 
> rendered in latex. However to my great surprise, when I export the 
> worksheet into a .tex file, the output boxes revert to normal unformatted 
> text.
> Is there a way to make the latex formatting of outputs "survive" when 
> saving it as a LaTeX document?
>
> I'm not afraid of writing the LaTeX myself, but this workflow needs to 
> work for exams, where time is a factor.
> Thanks for your help
>
> SageMath version 9.0, Release Date: 2020-01-01 │
> │ Using Python 3.8.10.
> Running Linux.
>
> Here are pictures of how it looks in my notebook, and in the exported 
> LaTeX:
> [image: 2021-08-23_10-33.png][image: latex.png]
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/84ad0ed7-05f3-447f-b9db-1689b6162e34n%40googlegroups.com.


[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 BERGH a écrit :

> Dear all,
>
> I have this plot command which works fine
>
> var('x,y,z')
> G=implicit_plot3d(x^2+y^2-z^2==0.0001, (x,-1,1), (y,-1,1), 
> (z,-1,1),plot_points=200,frame=False,viewer="threejs")
>
> However I would like to change the default camera position and I cannot 
> figure out how to do this...  I would be very grateful to anyone that can 
> help me.
>
> Michel
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/070a2567-f11b-4389-a5e5-61cc419fed44n%40googlegroups.com.


[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 expression of the Kretschmann scalar 
> of  metric depending a non specified function m(r): how do I define such a 
> function? II have tried with
> def m(r) 
> but it is wrong since it expects a definition of the function
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8021ebb0-eddb-4102-84dc-81b38900e47cn%40googlegroups.com.


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 features:  
https://wiki.sagemath.org/ReleaseTours/sage-9.2
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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/e756d63c-5e97-4c95-abe7-fd698fa9805cn%40googlegroups.com.


[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: sage.version.version
> '9.2.beta13'
> sage: var('t')
> t
> sage: assume(x>0)
> sage: f(x)=integrate(sin(t)/t,t,0,x)
> sage: f
> x |--> sin_integral(x)
> sage: taylor(f(x),x,0,10)
> 1/3265920*x^9 - 1/35280*x^7 + 1/600*x^5 - 1/18*x^3 + x
>
> My platform is Debian testing running on core i7 + 16 GB RAM ; sage is 
> built to use as much system packages as possible. hat are your platforms ?
>
> HTH,
> Le lundi 28 septembre 2020 à 22:03:56 UTC+2, fqgo...@colby.edu a écrit :
>
>> I am trying to see how to do a standard calculus exercise in Sage. I want 
>> a power series for the integral of sin(x)/x. I tried:
>>
>> sage: var('t')
>> t
>> sage: assume(x>0)
>> sage: f(x)=integrate(sin(t)/t,t,0,x)
>> sage: f
>> x |--> sin_integral(x)
>> sage: taylor(f(x),x,0,10)
>> 73/466560*x^9 - 127/35280*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,0,10) gives the same answer.
>>
>> Fernando
>>
>>
>> -- 
>> ==
>> Fernando Q. Gouvea
>> Carter Professor of Mathematics  
>> Colby College
>> Mayflower Hill 5836
>> Waterville, ME 04901fqgo...@colby.edu   
>> http://www.colby.edu/~fqgouvea
>>
>> The object of opening the mind, as of opening the mouth, is to shut it
>> again on something solid.
>>   -- G. K. Chesterton, Autobiography.
>>
>>
>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fa8ad53c-16e3-46ad-8d73-c2b7a28224acn%40googlegroups.com.


[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 class of posets. 
The latter is FinitePoset (actually a subclass of it, name 
FinitePoset_with_category, which is constructed dynamically via Sage 
category mechanism). So you should do

sage: from sage.combinat.posets.posets import FinitePoset
sage: FinitePoset.upper_bounds = upper_bounds

Then
sage: X = Poset(...)
sage: X.upper_bounds(...)
shoud work.


Le lundi 28 septembre 2020 à 18:29:43 UTC+2, pong a écrit :

> For convenient, I would like to add an attribute, upper_bounds, to Poset 
> objects
>
> However, after writing the method and issue
> Poset.upper_bounds = upper_bounds
>
> X.upper_bounds(S) complains 
>
> 'FinitePoset_with_category' object has no attribute 'upper_bounds'
>
> When I try 
> FinitePoset_with_category.upper_bounds = upper_bounds
>
> I got 
> name 'FinitePoset_with_category' is not defined
>
> So how can one add an attribute to FinitePoset_with_category? 
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/7b4691ad-9bab-4f71-818d-371b8011a42dn%40googlegroups.com.


[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 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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/29f4748b-73a6-4627-ab03-7089aee10aa5o%40googlegroups.com.


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

Thanks for this good news. I am happy to see that this long standing issue 
with macOS is fixed!

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/69c83dfe-cdca-4f92-aba5-3dd620e30e06%40googlegroups.com.


[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 
> maxima if one has set the number of cores for tensor computations to other 
> than one. I will try this out by changing the code the I get some time.
>

Thank you for investigating this! I've opened the ticket
https://trac.sagemath.org/ticket/29755
Feel free to report any investigation / code change in the ticket.

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/54a3b0a6-d335-4822-b51f-f3a978fe60d3%40googlegroups.com.


[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.metric.PseudoRiemannianMetric.cotton

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/3857c32e-0ba5-4db6-93bb-a579c31216ab%40googlegroups.com.


[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 strange is that the doctests involving multiprocessing are passed 
on macOS. So there is something in the doctest framework that makes it 
work. But in an interactive session, it fails, as you noticed. I am not 
familiar at all with macOS and cannot help on this point. Sorry...

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/c1994de9-ad67-4454-80a3-03481b7e47c5%40googlegroups.com.


[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 + 1)^2/(s + t)^2 + 1
sage: a.simplify_full()
0




-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/fc472c89-015a-46b6-a239-6f5a5bad5288%40googlegroups.com.


[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 hours 
> with a single processor. 
> It seems that no new packages are distributed between the processors. 
>
>
>

This  behaviour is not so strange: the parallelization is performed on 
pairs of indices and it could that for one pair of indices the computation 
takes much longer time. Since most of the computational time is spent in 
the simplification of symbolic expressions, you could try to use a light 
simplifying function via the method M.set_simplify_function, where M is 
your manifold. The fastest one would be M.set_simplify_function(simplify), 
but it might not be efficient. See
https://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/manifold.html#sage.manifolds.manifold.TopologicalManifold.set_simplify_function
for examples.

Best wishes,

Eric.
  

> Il giorno mercoledì 22 gennaio 2020 07:43:52 UTC+1, Mattia Villani ha 
> scritto:
>>
>> 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?
>>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/48760cdf-e943-4480-a9c0-30c2208531f8%40googlegroups.com.


[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 suffices to type, before your code for contraction:


Parallelism().set(nproc=8)


Then the calculus of the contactions will be parallelized on 8 processes.
Of course, you can adapt the value of nproc to your computer.
An example is here 
<https://nbviewer.jupyter.org/github/sagemanifolds/SageManifolds/blob/master/Notebooks/SM_Kerr.ipynb>
.

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ce95b14e-f7bb-4db5-85b2-f50c7e7ad4d9%40googlegroups.com.


[sage-support] Re: Endomorphism Rings of Elliptic Curves

2020-01-22 Thread Eric Zhu
In the ordinary case, is it possible to get the regular function 
corresponding to some endomorphism?

On Wednesday, January 22, 2020 at 1:40:54 PM UTC-5, John Cremona wrote:
>
> I suspect the question might have been referring to elliptic curves over 
> finite fields. In the ordinary case you can ask for the Frobenius order and 
> know that the endomorphism ring is between that and the maximal order of 
> its field of fractions (an imaginary quadratic field) but as far as I know 
> Sage jas no implementation of finding the exact endomorphism ring such as 
> Kohel's algorithm.

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/0231708a-f73b-4ada-a5c0-edf80557b2c4%40googlegroups.com.


[sage-support] Endomorphism Rings of Elliptic Curves

2020-01-21 Thread Eric Zhu
Is there a way to get the endomorphism ring of an elliptic curve in Sage? 

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/ff46239b-4e71-4286-9e84-cda7db4641c4%40googlegroups.com.


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 :
>>
>>
>> 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, which has already mpmath 1.1.0. So the problem is 
> not due to the version of mpmath. Maybe a Python 2 / Python 3 issue?
> Another data point: the issue is there in Sage 9.0.beta5 (Python 3). 
>
> 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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/5a7d5bb4-c406-4b8f-a757-370578307ed1%40googlegroups.com.


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, which has already mpmath 1.1.0. So the problem is 
not due to the version of mpmath. Maybe a Python 2 / Python 3 issue?
Another data point: the issue is there in Sage 9.0.beta5 (Python 3). 

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/5d8b20d9-66b7-41e8-af08-6e3c82374856%40googlegroups.com.


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 use them. 
>
>
Basically, this is

bunzip2 sage-9.0-Ubuntu_18.04-x86_64.tar.bz2
tar xvf sage-9.0-Ubuntu_18.04-x86_64.tar
cd SageMath
./sage -n jupyter


You can combine the first two commands into a single one thanks to the 'j' 
option of tar:

tar jxvf sage-9.0-Ubuntu_18.04-x86_64.tar.bz2

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/1409fdfd-3274-4456-9806-d99b38642f97%40googlegroups.com.


[sage-support] Re: Jupiter Server fails to start on macOS Catalina

2020-01-06 Thread Eric Martin
I did not have ~/.sage. Removed org.sagemath.Sage.plist, but no difference 
for me.

On Monday, January 6, 2020 at 11:01:33 PM UTC+1, Stefano Brocco wrote:
>
> There is more to it: after doing all of the above, plus removing both 
> ~/.sage and org.sagemath.Sage.plist, the jupyter did start. Unfortunately I 
> don't know if the critical step in my case was the removal of ~/.sage or of 
> the plist file.
>
> On Monday, January 6, 2020 at 1:13:50 PM UTC-5, Eric Martin wrote:
>>
>> Same behaviour, with the same log, also after giving Sage Full Disk 
>> Access as suggested by Ralf Martin.
>>
>> On Monday, January 6, 2020 at 2:44:19 PM UTC+1, slelievre wrote:
>>>
>>>
>>> Mon 2020-01-06 10:04:35 UTC, Eric Martin:
>>>>
>>>> After installing sage-9.0-OSX_10.15.2-x86_64.app.dmg, doubling clicking
>>>>
>>> the Sage icon immediately results in a window popping up with the 
>>>> message:
>>>>
>>> "Jupiter Server fails to start. For some reason the Jupiter server ailed 
>>>> to start.
>>>>
>>> [...]
>>>>
>>>
>>> Try running the following commands in a terminal:
>>> 
>>> APP=/Applications/SageMath-9.0.app
>>> xattr -dr com.apple.quarantine $APP
>>>
>>> If it says you don't have the permissions for that,
>>> try the same with "sudo" as follows:
>>>
>>> APP=/Applications/SageMath-9.0.app
>>> sudo xattr -dr com.apple.quarantine $APP
>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/27e520ad-e181-4f38-8cde-4ac93b7573db%40googlegroups.com.


[sage-support] Re: Jupiter Server fails to start on macOS Catalina

2020-01-06 Thread Eric Martin
Same behaviour, with the same log, also after giving Sage Full Disk Access 
as suggested by Ralf Martin.

On Monday, January 6, 2020 at 2:44:19 PM UTC+1, slelievre wrote:
>
>
> Mon 2020-01-06 10:04:35 UTC, Eric Martin:
>>
>> After installing sage-9.0-OSX_10.15.2-x86_64.app.dmg, doubling clicking
>>
> the Sage icon immediately results in a window popping up with the message:
>>
> "Jupiter Server fails to start. For some reason the Jupiter server ailed 
>> to start.
>>
> [...]
>>
>
> Try running the following commands in a terminal:
> 
> APP=/Applications/SageMath-9.0.app
> xattr -dr com.apple.quarantine $APP
>
> If it says you don't have the permissions for that,
> try the same with "sudo" as follows:
>
> APP=/Applications/SageMath-9.0.app
> sudo xattr -dr com.apple.quarantine $APP
>
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/7c2543a3-25d8-478a-bc86-284f2fe9f712%40googlegroups.com.


[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 emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/1a1e6f3c-2104-4432-ae27-f9a0fccb4293%40googlegroups.com.


[sage-support] Jupiter Server fails to start on macOS Catalina

2020-01-06 Thread Eric Martin
After installing sage-9.0-OSX_10.15.2-x86_64.app.dmg, doubling clicking the 
Sage icon immediately results in a window popping up with the message: 
"Jupiter Server fails to start. For some reason the Jupiter server ailed to 
start. Please check the log for clues, and have that information handy when 
asking for help." The log shows:

Rewriting paths for your new installation directory
===

This might take a few minutes but only has to be done once.

patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/build/make/Makefile-auto
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/config.status
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/2to3-3.7
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/ESingular
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/NRswitchg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/QuadraticSieve
patching /Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/R
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/Rscript
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/Singular
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/TSingular
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/addedgeg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/adjacency
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/adjacency_gmp
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/allfaces
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/allfaces_gmp
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/amtog
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/annotate
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/biplabg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cas_help
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/catg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cddexec
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cddexec_gmp
patching /Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cl
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/complg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/converseg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/copyg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/countg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cu2
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cubex
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cubhamg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/curve_keygen
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cygdb
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cysignals-CSI
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cython
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/cythonize
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/deledgeg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/delptg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/directg
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/dreadnaut
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/dretodot
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/dretog
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/easy_install
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/easy_install-3.7
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/ecl
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/ecl-config
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/ecm
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/f2py
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/f2py3
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/f2py3.7
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/fai
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/fflas-ffpack-config
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/fourier
patching 
/Applications/SageMath-9.0.app/Contents/Resources/sage/local/bin/fourier_gmp
patching 

[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.irange():
for i in M.irange():
for j in M.irange():
for k in M.irange():
for l in M.irange():
kr += gc[[a, i]]*igc[[b, j]]*igc[[c, k]]*igc
[[d, l]] \
  *Rc[[i, b, c, d]]*Rc[[a, j, k, l]]
kr.expr()

It is certainly more efficient in term of memory, but less efficient in 
term of CPU time, since the symmetries of the Riemann tensor are not taken 
into account in the above writing.

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/9b401de7-166e-4471-9aa3-362c94cae3af%40googlegroups.com.


[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 9.0 should be out in 
one week or so.

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/a0493b75-edb9-493b-9da2-d4ff53876687%40googlegroups.com.


[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.
<https://wiki.sagemath.org/Python3-Switch>
As you say, your code examples are likely to work without any change, 
except for the print command, which must replaced by the print() function. 
A thing that certainly must be updated is the reference to Sage notebook in 
Sec. 1.8.1 (page 63): the default notebook is now Jupyter. It is launcher 
with
sage -n jupyter
not with notebook().
You can export your old Sage notebooks (*.sws) to the Jupyter format 
(*.ipynb) via the command
sage -n export

A big advantage of Jupyter notebooks is that it is very easy to share them 
online provided they are stored in some public repository, like github or 
gitlab: non-interactive versions are displayed with nbviewer.jupyter.org
while interactive ones are launched via  binder. <https://mybinder.org/>
You can see many examples here 
<https://sagemanifolds.obspm.fr/examples.html> (nbviewer) or here 
<https://github.com/egourgoulhon/SageMathTour/blob/master/README.md> 
(binder).

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/bae01e6d-4572-4c3e-ac5b-cf6bd50ee649%40googlegroups.com.


[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 single change, but it is hard for a normal user (not a 
> developer) to figure out if there was a change that is relevant for me ... 
> Many other software have both a full list of changes, but also an easy to 
> digest summary of important major changes.
>


There was a discussion in that direction on Trac #22176 
<https://trac.sagemath.org/ticket/22176>, but it seems stalled at the 
moment...

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...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/eb10719b-70e8-4fec-8afd-fb66a4051f21%40googlegroups.com.


[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 available from the 
download page.

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/7aad62c0-3c68-4b25-970c-1314d74c53a0%40googlegroups.com.


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 18.04, and you're 
> trying a tarball fot 16.04. 
>
> Tarball for 18.04 is not ready yet, I think. 
>


The SageMath 8.9 binaries for Ubuntu 18.04 are now available from the 
download page:
https://www.sagemath.org/download-linux.html

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/8589d46e-d664-45e4-8585-a5a6bb4ee1b9%40googlegroups.com.


[sage-support] Finite Field Zage Logs Larger than 2^16

2019-06-18 Thread Eric Zhu
It is possible to get element_givaro.py to create finite fields using zech 
logs for order larger than 2^16? The memory shouldn't be an issue.

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/cdd8d106-392f-4eb5-81c7-3134d4de4184%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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: spherical_harmonic(1, 1, theta, phi)
-1/4*sqrt(3)*sqrt(2)*sqrt(-sin(theta)^2)*e^(I*phi)/sqrt(pi)

The term sqrt(-sin(theta)^2) in the above expression is plain false. It 
should be sin(theta). 
This issue is related to the bug reported in
https://trac.sagemath.org/ticket/25034

As a workaround, I would recommend to use the function 
spin_weighted_spherical_harmonic with the spin weight set to zero instead 
of spherical_harmonic. The function spin_weighted_spherical_harmonic is not 
part of the main SageMath, but of the SageMath package kerrgeodesics_gw 
<https://pypi.org/project/kerrgeodesic-gw/>. So you have to install the 
later via
sage -pip install kerrgeodesic_gw

NB: on CoCalc, you have to add the option --user: 
sage -pip install --user kerrgeodesic_gw


Then, you will get (the first argument, i.e. 0, is the spin weight; if 
zero, one gets the standard spherical harmonics): 

sage: from kerrgeodesic_gw import spin_weighted_spherical_harmonic
sage: spin_weighted_spherical_harmonic(0, 2, 1, theta, phi)
-1/4*sqrt(15)*sqrt(2)*cos(theta)*e^(I*phi)*sin(theta)/sqrt(pi)
sage: spin_weighted_spherical_harmonic(0, 1, 1, theta, phi)
-1/4*sqrt(6)*e^(I*phi)*sin(theta)/sqrt(pi)


Both results agree with the standard values, as given e.g. in 
https://en.wikipedia.org/wiki/Table_of_spherical_harmonics

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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sage-support/633d5f7d-dbb1-441d-9688-cd12a7ac7720%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[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 automatically during the first push) must be of 
the form
u/gh-/
or
public/
where  is your GitHub name and  is any name you may choose to 
specify the branch. 

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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 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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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 is a dangerous thing. 
>

In order to minimize the error risk in the substitution, note that you can 
use the Python variable b defined as
b = sqrt(1-a^2)
in the argument of subs(), thereby avoiding any duplicate code. The whole 
code becomes then

sage: var('p,q,r,a')  # note: no b at this stage
(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: eq.subs({b: SR.var('b')})
a^2*p^2 + 2*a*b*p*r - a^2*r^2 + 2*a*p*q + 2*b*q*r + q^2 + r^2



-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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^2*r^2 + 2*a*p*q + 2*b*q*r + q^2 + r^2

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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 the 
> right. 
>
> Is this the intended behavior?
>
>
>
 Certainly not. 
Trying with algorithm='sympy' leads to two true solutions in the complex 
domain:

sage: solve(2*(x+sqrt(1-x^2))-7,x, algorithm='sympy')
[x == -1/4*I*sqrt(41) + 7/4, x == 1/4*I*sqrt(41) + 7/4]

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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


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 is visible by
sage -n jupyter -h
or equivalently
sage -n jupyter --help
I agree it would be better to have a link from both "sage -h" and "sage -n 
-h", or at least a setence like 
run "sage -n jupyter -h" for all options relative to the Jupyter notebook.

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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


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. 
>
>
Hopefully, some day threejs will replace jmol as the default 3d viewer:
https://trac.sagemath.org/ticket/22408


> Finally, is there a simple mechanism to enable Sage to plot vector fields 
> with singularities, such as a pole at the origin?  I've had no luck yet 
> trying to plot something like: 
>   E.vector_field((-y/(x^2+y^2),x/(x^2+y^2))) 
> I've tried piecing together nonsingular domains, although I'm possibly not 
> doing it correctly.  But there is surely a more elegant solution, such as 
> cutting off the vector field at some maximum magnitude. 
>

The cut off should definitely be added to the plot method of vector fields, 
among many other improvements to be done...
Meanwhile, you can define a subdomain of E, U say, where the vector field 
is everywhere regular and plot the restriction of the vector field to U. 
For your example, U can be E minus the disk x^2+y^2 <= 0.01:

sage: E. = EuclideanSpace()
sage: v = E.vector_field((-y/(x^2+y^2),x/(x^2+y^2)))
sage: U = E.open_subset('U', coord_def={E.cartesian_coordinates(): 
x^2+y^2>0.01})
sage: v.restrict(U).plot(max_range=1, scale=0.2)

In the above code,  "coord_def" stands for the coordinate definition of the 
open subset U and "v.restrict(U)" is the restriction of v to U.

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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: show(xy, orientation=(0,0,0,0), viewer='threejs')

to use threejs instead of jmol. 

More options of the vector field plot functions are described here, 
especially to control the arrow size are described here:
http://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/differentiable/vectorfield.html#sage.manifolds.differentiable.vectorfield.VectorField.plot

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


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 had missed the use of vector_frame in the 
> documentation of Affine Connections, although I note that 2 of your 
> subsequent 3 examples appear to define frames without using this class. 
>
> I expect that these examples will indeed provide the guidance I need, 
> and will work through them more carefully. 
>
> Again, thank you. 
>


You're welcome. 
If you find some missing functionalities and you would like to implement 
them, please visit 
https://sagemanifolds.obspm.fr/contrib.html

Best wishes,

  Eric.

>
> Tevian 
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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 coefficients with respect 
to a moving frame; see the documentation of the function "curvature_form" 
for an example of curvature 2-form expressed in a moving frame:
http://doc.sagemath.org/html/en/reference/manifolds/sage/manifolds/differentiable/affine_connection.html
At the end of the S^2 example
http://nbviewer.jupyter.org/github/sagemanifolds/SageManifolds/blob/master/Worksheets/v1.3/SM_sphere_S2.ipynb
you have the computation of the structure coefficients of an orthonormal 
frame.
You have also non-coordinate frames in the S^3 example:
http://nbviewer.jupyter.org/github/sagemanifolds/SageManifolds/blob/master/Worksheets/v1.3/SM_sphere_S3_vectors.ipynb
An example of curvature 2-form expressed in an orthonormal frame is in cell 
[87] of this notebook:
http://nbviewer.jupyter.org/github/sagemanifolds/SageManifolds/blob/master/Worksheets/v1.3/SM_Schwarzschild.ipynb

Best wishes,

Eric.

Le jeudi 6 décembre 2018 02:10:22 UTC+1, Tevian Dray a écrit :
>
> Such an implementation would have 2 parts:
>
> 1. *Defining the objects:*  The connection 1-forms, torsion 2-forms, and 
> curvature 2-forms are all indexed sets of differential forms.  They are not 
> tensorial, but the index labels behave in many ways like tensor components. 
>  In particular, there are "up" and "down" index versions, with particular 
> symmetries.  The case of an orthonormal basis is particularly nice, leading 
> to "down" index antisymmetry, which it would be nice to have built in.
>
> 2. *Computing the objects:*  The components of the connection 1-forms are 
> just the Christoffel symbols, but in an arbitrary frame.  So when working 
> with explicit examples, it would be enough to be able to compute the 
> Christoffel symbols, then use them to determine the connection forms.  But 
> this requires the ability to compute the connection in non-coordinate 
> frames.
>
> I'll settle for an implementation of question 2.  However, so far as I can 
> tell, sage.manifolds only calculates in a coordinate basis, and the 
> VectorFrame class doesn't do tensor derivatives.  If I'm missing something 
> here, or if there's some other known way to work in an arbitrary 
> (especially orthonormal) basis, please let me know -- ideally with an 
> example, such as polar coordinates in an orthonormal frame.
>
> Thank you.
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


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.
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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


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 packages required to 
build Sage and adapt it to your system (Scientific Linux from the log):
https://wiki.sagemath.org/prerequisitesUbuntu

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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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. "func" is the G-Function
 and "x0" is the point at which initial conditions are required.

 >>> from sympy.holonomic.holonomic import from_meijerg, 
DifferentialOperators
 >>> from sympy import symbols, meijerg, S
 >>> x = symbols('x')
 >>> from_meijerg(meijerg(([], []), ([S(1)/2], [0]), x**2/4))
 HolonomicFunction((1) + (1)*Dx**2, x, 0, [0, 1/sqrt(pi)])
Init docstring: x.__init__(...) initializes x; see help(type(x)) for 
signature
File: ~/sage/8.1/local/lib/python2.7/site-packages/sympy/holonomic/holonomic
.py
Type: function

Best wishes,

Eric. 

Le vendredi 13 avril 2018 00:06:17 UTC+2, Raymond Rogers a écrit :
>
> The sympy documentation
> http://docs.sympy.org/latest/modules/holonomic/convert.html
>  has the function from_meiljer and I do 
> from sympy import *
> from sympy.holonomic.holonomic import from_hyper, from_meijer, 
> DifferentialOperators
> (I think redundant)
> I get: "ImportError: cannot import name from_meijer" 
> Is this a versioning error or what?
>
>

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


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

numerical_integral(unit_step(x), -1, 1)
(1.0, 1.1102230246251565e-14)

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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 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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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 also note that
sage: RealSet(-oo,+oo).an_element()
...
SignError: cannot add infinity to minus infinity


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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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-29-20.ipynb

More generally online=True (which was introduced in SageMath 8.0) is 
necessary to share threejs plots on the web, e.g. via nbviewer.jupyter.org.

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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


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


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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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.show()
>
> however, this also does not show.
>
>
Works for me, provided the parentheses in the definition of f are well 
placed:
def f(x,y):
return math.sqrt(2**3)*exp(-(x**2 + y**2))

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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((sqrt(2**3))*exp(-(x**2 + y**2)), (x, 0, 5 ), (y, 0, 5))

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Error Building Sage 7.6 in Ubuntu

2017-06-21 Thread Eric
Dear all,

I am having trouble in installing Sage 7.6, in Ubuntu 14.04.

Could anyone help?

Here is the message.

Thank you all.

Eric

[sagelib-7.6] make[3]: Entering directory `/home/eric/Sage/SageMath/src'
[sagelib-7.6] (cd .\
[sagelib-7.6]  && export SAGE_ROOT=/doesnotexist\
[sagelib-7.6]SAGE_SRC=/doesnotexist\
[sagelib-7.6]SAGE_SRC_ROOT=/doesnotexist\
[sagelib-7.6]SAGE_DOC_SRC=/doesnotexist\
[sagelib-7.6]SAGE_SCRIPTS_DIR=/doesnotexist\
[sagelib-7.6]SAGE_BUILD_DIR=/doesnotexist\
[sagelib-7.6]SAGE_PKGS=/home/eric/Sage/SageMath/build/pkgs\
[sagelib-7.6]
SAGE_CYTHONIZED=/home/eric/Sage/SageMath/src/build/cythonized
\
[sagelib-7.6]  && python -u setup.py --no-user-cfg build install)
[sagelib-7.6] /home/eric/Sage/SageMath/local/bin/python: 1: 
/home/eric/Sage/SageMath/local/bin/python: Syntax error: word unexpected 
(expecting ")")
[sagelib-7.6] make[3]: *** [sage] Error 2
[sagelib-7.6] make[3]: Leaving directory `/home/eric/Sage/SageMath/src'
[sagelib-7.6] 
[sagelib-7.6] real0m0.017s
[sagelib-7.6] user0m0.000s
[sagelib-7.6] sys0m0.000s
make[2]: *** [sagelib] Error 2
make[2]: Leaving directory `/home/eric/Sage/SageMath/build/make'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/eric/Sage/SageMath/build/make'

real0m0.441s
user0m0.064s
sys0m0.084s
***
Error building Sage.

The following package(s) may have failed to build (not necessarily
during this run of 'make all'):

The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.

make: *** [all] Error 1

-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[sage-support] Error Building Sage 7.6

2017-06-21 Thread Eric
Dear all,

I am new to Sage. In installation part, I've got this message when
building the Sage.

Could you please help me?

Thank you very much.

make build/make/Makefile
make[1]: Entering directory `/home/eric/Sage/SageMath'
make[1]: `build/make/Makefile' is up to date.
make[1]: Leaving directory `/home/eric/Sage/SageMath'
build/bin/sage-logger \
"cd build/make && ./install 'all'" logs/install.log
*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***
CLUTTER_IM_MODULE=xim
COLORTERM=gnome-terminal
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-XWvPOj2kHc
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GDM_LANG=en_US
GDMSESSION=ubuntu
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-Ku5pqL
GNOME_KEYRING_PID=1767
GPG_AGENT_INFO=/run/user/1000/keyring-Ku5pqL/gpg:0:1
GTK_IM_MODULE=ibus
GTK_MODULES=overlay-scrollbar:unity-gtk-module
HOME=/home/eric
IM_CONFIG_PHASE=1
INSTANCE=Unity
JOB=gnome-session
LANG=en_US.UTF-8
LANGUAGE=en_US
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LOGNAME=eric
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAKEFLAGS=
MAKELEVEL=1
MAKE=make
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
MFLAGS=
PATH=/home/eric/Sage/SageMath/build/bin:/home/eric/Sage/SageMath/src/bin:/home/eric/Sage/SageMath/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/eric/Sage/SageMath/build/make
PYTHONPATH=/home/eric/Sage/SageMath/local
QT4_IM_MODULE=xim
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
SAGE_EXTCODE=/home/eric/Sage/SageMath/local/share/sage/ext
SAGE_LOCAL=/home/eric/Sage/SageMath/local
SAGE_LOGS=/home/eric/Sage/SageMath/logs/pkgs
SAGE_ORIG_PATH_SET=True
SAGE_ORIG_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
SAGE_ROOT=/home/eric/Sage/SageMath
SAGE_SHARE=/home/eric/Sage/SageMath/local/share
SAGE_SPKG_INST=/home/eric/Sage/SageMath/local/var/lib/sage/installed
SAGE_SRC=/home/eric/Sage/SageMath/src
SAGE_VERSION=7.6
SELINUX_INIT=YES
SESSIONTYPE=gnome-session
SHELL=/bin/bash
SHLVL=3
SSH_AUTH_SOCK=/run/user/1000/keyring-Ku5pqL/ssh
TERM=xterm
TEXTDOMAINDIR=/usr/share/locale/
TEXTDOMAIN=im-config
UPSTART_EVENTS=started starting
UPSTART_INSTANCE=
UPSTART_JOB=unity-settings-daemon
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1771
USER=eric
_=/usr/bin/env
V=1
VTE_VERSION=3409
WINDOWID=58720268
XAUTHORITY=/home/eric/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/eric
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SEAT=seat0
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_VTNR=7
XMODIFIERS=@im=ibus
***
make[1]: Entering directory `/home/eric/Sage/SageMath/build/make'
make base
make[2]: Entering directory `/home/eric/Sage/SageMath/build/make'
make[2]: Nothing to be done for `base'.
make[2]: Leaving directory `/home/eric/Sage/SageMath/build/make'
env SAGE_BUILD_TOOLCHAIN=yes make toolchain
make[2]: Entering directory `/home/eric/Sage/SageMath/build/make'
make[2]: Nothing to be done for `toolchain'.
make[2]: Leaving directory `/home/eric/Sage/SageMath/build/make'
make toolchain-deps
make[2]: Entering directory `/home/eric/Sage/SageMath/build/make'
make /home/eric/Sage/SageMath/local/var/lib/sage/installed/zlib-1.2.8.p0
make[3]: Entering directory `/home/eric/Sage/SageMath/build/make'
make[3]:
`/home/

[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 
> I missing?
>

After having selected the file from the file browser and clicked on "open", 
have you clicked on the "Upload" blue button on the right ?
(it might indeed be quite disturbing to have such a 2-stage procedure just 
for adding a new ipynb file).

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, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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.│
└┘
┏┓
┃ Warning: this is a prerelease version, and it may be unstable. ┃
┗┛
sage: integrate(x/(1+x^2),x,0,infinity)
---
ValueErrorTraceback (most recent call last)
...
ValueError: Integral is divergent.



-- 
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@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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: latex(df)
\frac{\partial}{\partial x}f\left(x\right)
sage: latex(df1)
{\rm diff}\left(f\left(x\right), x\right)

sage: df.operator()
D[0](f)
sage: df1.operator()
diff

sage: diff(df, x)
diff(f(x), x, x)
sage: diff(df1, x)
D[0](diff)(f(x), x)*diff(f(x), x) + D[1](diff)(f(x), x)

Any thoughts? Shouldn't SR(repr(df)) always give back df? If not, how to 
recover df from repr(df) in the current case?

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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


[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 work better for you ?

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...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.


  1   2   3   >