Re: [sage-support] Set(L) == L and Set(L) != L are True at the same time?!

2023-02-23 Thread 'Alan Stafford' via sage-support
Bernards Paradox. Anything is a set even the empty set. And the empty set contains itself. Axiom 11 is the source of the paradox. Regards Alan On Thursday, 23 February 2023 at 13:13:33 GMT, Dima Pasechnik wrote: I opened https://github.com/sagemath/sage/issues/35178 on this On Thu,

Re: [sage-support] 3d graphics crash (on Mac)

2022-07-13 Thread 'Alan Stafford' via sage-support
I am using Safari on MacBook Pro (13-inch, 2017, Two Thunderbolt 3 ports). On Wednesday, July 13, 2022 at 7:32:41 PM UTC+1 Alan Stafford wrote: > How does this look? http::///alan.atstafford.co.uk/Penrose/graphic.html > > On Wednesday, July 13, 2022 at 6:35:48 PM UTC+1 dim...@gmail.com wrote: >

Re: [sage-support] 3d graphics crash (on Mac)

2022-07-13 Thread 'Alan Stafford' via sage-support
How does this look? http::///alan.atstafford.co.uk/Penrose/graphic.html On Wednesday, July 13, 2022 at 6:35:48 PM UTC+1 dim...@gmail.com wrote: > > > On Wed, 13 Jul 2022, 16:02 harald@gmail.com, > wrote: > >> Hi, >> >> I am running Sagemath on a Mac Mini (2018; Intel). >> >> I used to have

Re: [sage-support] Re: Sage ImportError: canot load Singular library

2022-06-10 Thread 'Alan Stafford' via sage-support
sudo cd / sudo rm -r *.* On Friday, 10 June 2022, 10:41:59 BST, Vegard Lima wrote: Hi, there should be a fix for this in updates-testing for Fedora 36: $ sudo dnf update sagemath --enablerepo=updates-testing You might have to do this first: $ sudo dnf erase sagemath-doc-en Cheers,

Re: [sage-support] Create the groups which are given as the vector space (or module) over integers.

2022-06-10 Thread 'Alan Stafford' via sage-support
Burgers vector - Wikipedia | | | | | | | | | | | Burgers vector - Wikipedia The vector's magnitude and direction is best understood when the dislocation-bearing crystal structure is first ... | | | On Friday, 10 June 2022, 11:10:36 BST, Hongyi Zhao wrote: For

Re: [sage-support] Re: Kerr_Schild.ipynb link and 9.6

2022-05-21 Thread 'Alan Stafford' via sage-support
> On 5/20/22 16:05, 'Alan Stafford' via sage-support wrote: > > You need to do a save link as on [ipnyb] not just click on it. > Regards > Alan > > On Friday, May 20, 2022 at 6:29:39 PM UTC+1 raymond@gmail.com wrote: > >> Hi, I downloaded Kerr_Schild.ipynb at &

[sage-support] Re: Kerr_Schild.ipynb link and 9.6

2022-05-20 Thread 'Alan Stafford' via sage-support
You need to do a save link as on [ipnyb] not just click on it. Regards Alan On Friday, May 20, 2022 at 6:29:39 PM UTC+1 raymond@gmail.com wrote: > Hi, I downloaded Kerr_Schild.ipynb at > https://luth.obspm.fr/~luthier/gourgoulhon/bh16/sage.html > It complains about JSON formatting. > > A

[sage-support] Re: Quaternions and Lorentz Transformations

2022-04-22 Thread 'Alan Stafford' via sage-support
I was trying to look at the link between quaternions and twistor space. I did a little notebook. Not exactly what you are looking at but it might help. On Saturday, April 16, 2022 at 10:55:31 AM UTC+1 ny22...@gmail.com wrote: > I am trying to understand how to use Quaternions within sagemath

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

2022-02-09 Thread 'Alan Stafford' via sage-support
Interact is broken for SageMath 9.5, it works in 9.4 so I don't understand the pull request. On Wednesday, February 9, 2022 at 10:01:01 AM UTC slelievre wrote: > Pull request to fix Sage interacts on the CoCalc side: > > - https://github.com/sagemathinc/cocalc/pull/5721 > -- You received this

Re: [sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-06 Thread 'Alan Stafford' via sage-support
No, it works with the 9.4 kernel but not with the 9.5 beta. -- 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

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-06 Thread 'Alan Stafford' via sage-support
My point is that it is the same on Apple Mac, that it isn't related to the recent interface and multiprocessing problems but has just appeared with the 9.5 kernel beta release as it works with the 9.4 kernel. On Sunday, February 6, 2022 at 8:53:51 AM UTC Emmanuel Charpentier wrote: > That was

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-05 Thread 'Alan Stafford' via sage-support
M.eigenvalues() never returns. On Saturday, February 5, 2022 at 11:48:47 AM UTC Emmanuel Charpentier wrote: > What exactly fails in the example ? > > Le vendredi 4 février 2022 à 13:20:26 UTC+1, alan_thoma...@yahoo.co.uk a > écrit : > >> >> On Apple Mac the example above runs on the 9.4 kernel

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-04 Thread 'Alan Stafford' via sage-support
On Apple Mac the example above runs on the 9.4 kernel using either the 9.4 or 9.5 interface but not on the 9.5 kernel from either Interface. On Thursday, February 3, 2022 at 6:44:47 AM UTC Emmanuel Charpentier wrote: > Le mercredi 2 février 2022 à 22:15:00 UTC+1, Nils Bruin a écrit : > > On

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-02 Thread 'Alan Stafford' via sage-support
Do you mean, V =vector(list(var("v0", n=2))+[SR(1)]) Also, what is E0? On Wednesday, February 2, 2022 at 6:08:20 PM UTC Emmanuel Charpentier wrote: > See lines #7-8 of the "Minimal example" : > > Le mercredi 2 février 2022 à 11:57:41 UTC+1, alan_thoma...@yahoo.co.uk a > écrit : > >> >> What is

[sage-support] Re: Eigen spaces of algebraic matrices broken ?

2022-02-02 Thread 'Alan Stafford' via sage-support
What is v0? When I run the above it isn't defined. On Monday, January 31, 2022 at 11:19:49 PM UTC Emmanuel Charpentier wrote: > As advertised, an atempt at a minimal (non-)working example : > > # Reproducible minimal example > with seed(0): M = matrix(AA, 3, 3, lambda u,v: AA.random_element()) >

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

2022-02-02 Thread 'Alan Stafford' via sage-support
If I restart the kernel multiprocessing gets reset back to spawn. Rather than have to set it back to fork in every cell it should be set to fork by the kernel restart code. On Friday, January 28, 2022 at 2:04:43 PM UTC egourg...@gmail.com wrote: > Le jeudi 27 janvier 2022 à 18:59:36 UTC+1,

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

2022-02-01 Thread 'Alan Stafford' via sage-support
geMath releases >> from git. I do not get widgets should I start the 9.4 or 9.5 kernel using >> the 9.5 interface, but I do when I use the 9.4 interface. >> On Monday, January 31, 2022 at 12:45:31 PM UTC dim...@gmail.com wrote: >> >>> On Mon, Jan 31, 2022 at 3:59

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

2022-01-31 Thread 'Alan Stafford' via sage-support
31, 2022 at 3:59 AM 'Alan Stafford' via sage-support > wrote: > > > > I have found that it doesn't work if I launch from the SageMath 9.5 icon > for any kernel 9.4 or 9.5. If I launch from the SageMath 9.4 interface it > works for either kernel. > > I am not sure I follow

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

2022-01-30 Thread 'Alan Stafford' via sage-support
I have found that it doesn't work if I launch from the SageMath 9.5 icon for any kernel 9.4 or 9.5. If I launch from the SageMath 9.4 interface it works for either kernel. >> >> -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe

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

2022-01-29 Thread 'Alan Stafford' via sage-support
Exactly the same using Google Chrome. On Saturday, January 29, 2022 at 8:09:36 PM UTC dim...@gmail.com wrote: > On Sat, Jan 29, 2022 at 8:05 PM 'Alan Stafford' via sage-support > wrote: > > > > I only used Safari. Safari supports widgets at Cocalc so I can't think > that

[sage-support] Interact broken. SageMath 9.5 on Apple Mac OSX 12.1 . SageMath-9.5_x86_64

2022-01-28 Thread 'Alan Stafford' via sage-support
Interact just calls the function but no Interact widgets appear. Example attached. It works at Cocalc. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to

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

2022-01-27 Thread 'Alan Stafford' via sage-support
mp.set_start_method('fork',force=True) lets one rerun the notebook without restarting. On Thursday, January 27, 2022 at 5:59:36 PM UTC Alan Stafford wrote: > That works. I get all cores used. > On Thursday, January 27, 2022 at 1:20:26 PM UTC egourg...@gmail.com wrote: > >> Le mardi 25 janvier

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

2022-01-27 Thread 'Alan Stafford' via sage-support
if mp.get_start_method() != 'fork' : mp.set_start_method('fork') Lets one rerun the notebook without restarting the kernel. On Thursday, January 27, 2022 at 5:59:36 PM UTC Alan Stafford wrote: > That works. I get all cores used. > On Thursday, January 27, 2022 at 1:20:26 PM UTC

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

2022-01-27 Thread 'Alan Stafford' via sage-support
Adding : import multiprocessing as mp if mp.get_start_method != 'fork' : mp.set_start_method('fork') Lets one rerun the notebook without restarting the kernel. One can delete the line: os.environ['SAGE_NUM_THREADS'] = '4' On Thursday, January 27, 2022 at 5:59:36 PM UTC Alan Stafford wrote: >

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

2022-01-27 Thread 'Alan Stafford' via sage-support
That works. I get all cores used. On Thursday, January 27, 2022 at 1:20:26 PM UTC egourg...@gmail.com wrote: > 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

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

2022-01-27 Thread 'Alan Stafford' via sage-support
ImportError: cannot import name 'NumberField' from partially initialized module 'sage.rings.number_field.number_field' (most likely due to a circular import)

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

2022-01-26 Thread 'Alan Stafford' via sage-support
SageMath 9.1 works with the 9.5 version of ncpus.py so one can disregard my tinkering with it. On Wednesday, January 26, 2022 at 10:12:33 AM UTC Alan Stafford wrote: > I am using Mac OS 12.1 Monterey. The notebook works on Sagemath 9.1 if I > hack ncpus.py to return 4. > > On Tuesday,

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

2022-01-26 Thread 'Alan Stafford' via sage-support
I am using Mac OS 12.1 Monterey. The notebook works on Sagemath 9.1 if I hack ncpus.py to return 4. On Tuesday, January 25, 2022 at 10:59:20 PM UTC John H Palmieri wrote: > Are you using OS X? Could this possibly be due to how Python handles > multiprocessing on OS X vs. other platforms? (See

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

2022-01-25 Thread 'Alan Stafford' via sage-support
Process SpawnPoolWorker-1: Traceback (most recent call last): File "/private/var/tmp/sage-9.5-current/local/var/lib/sage/venv-python3.9.9/lib/python3.9/multiprocessing/process.py", line 315, in _bootstrap self.run() File

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

2022-01-25 Thread 'Alan Stafford' via sage-support
() > > On Tue, Jan 25, 2022 at 11:55 AM 'Alan Stafford' via sage-support > wrote: > > > > 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/Sa

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

2022-01-25 Thread 'Alan Stafford' via sage-support
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* Regards Alan -- You received this message because you are subscribed to the Google Groups "sage-support" group.

[sage-support] Re: multiprocessing_sage

2020-06-13 Thread 'Alan Stafford' via sage-support
I was able to run this but I have hacked ncpus.py to give the correct result 4 for my laptop (2 core hyper-threaded). I think it causes problems with the multiprocessing interface even though one doesn't explicitly call it. sage src ncpus.py . *def* ncpus(): """ Detects the number

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

2020-05-30 Thread 'Alan Stafford' via sage-support
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. -- You received this message because you are subscribed to the Google

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

2020-05-30 Thread 'Alan Stafford' via sage-support
How do I make sure the changes I have made to the code are present. Do I need to restart sage or even recompile it? Or just restart the Kernel? The change I have made is to ncpus.py . Indeed Mac OS has no hasattr(os, "sysconf"): . It should execute "sysctl -n hw.ncpu" which on my machine

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

2020-05-30 Thread 'Alan Stafford' via sage-support
> > It is the Schouten Tensor that has a dimension dependent definition not > the Cotton Tensor. > The logical conventions are defined by Rij = Rkikj and the condition that the Euclidean n-sphere has R > 0. -- You received this message because you are subscribed to the Google Groups

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

2020-05-29 Thread 'Alan Stafford' via sage-support
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

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

2020-05-24 Thread 'Alan Stafford' via sage-support
Multiprocessing of Tensors is not working for Macintosh. show(version()) #MacBook Pro dual core i5, hyper-threaded. Should support 4 ply multiprocessing. %display latex # LaTeX rendering turned on Parallelism().set('tensor',4) #Only works if set to one. Parallelism().set('linbox',4)

[sage-support] Cotton Tensor gives wrong result.

2020-05-19 Thread 'Alan Stafford' via sage-support
If I compute the Bach Tensor using the definition via the cotton tensor I get a different result to that using an alternative definition. M = Manifold(4, 'M') MChart = M.open_subset('MChart') Chart. = MChart.chart(r'u:(-oo,+oo) v:(-oo,+oo) x:(-oo,+oo) y:(-oo,+oo)') gT=