Re: [sage-support] Re: \ZZ not defined

2022-04-18 Thread G. M.-S.
Thanks Emmanuel, this is
https://trac.sagemath.org/ticket/33729

Guillermo

On Mon, 18 Apr 2022 at 23:14, Emmanuel Charpentier <
emanuel.charpent...@gmail.com> wrote:

> This means that Mathjax, which is used by Jupyter to interpret LaTeX
> expressions, has no definition of a `\ZZ` LaTeX macro.
>
> On 9.6.rc0, I get `\Bold푍/6\Bold푍`, which is not interpreted by
> `mathjax` either. I don't know how to work around this with Mathjax.
>
> Would you mind filing a ticket ?
>
> Le lundi 18 avril 2022 à 13:11:22 UTC+2, list...@gmail.com a écrit :
>
>>
>> This is on SageMath 9.5, Jupyter notebook.
>>
>> Am I missing something?
>>
>> Guillermo
>>
>

-- 
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/CANnG1888sQTc94-iUbFB%2BGm_0kq2nMONKo2YGN%2BMFf_fG8cZuw%40mail.gmail.com.


[sage-support] Re: \ZZ not defined

2022-04-18 Thread Emmanuel Charpentier
This means that Mathjax, which is used by Jupyter to interpret LaTeX 
expressions, has no definition of a `\ZZ` LaTeX macro.

On 9.6.rc0, I get `\Bold푍/6\Bold푍`, which is not interpreted by `mathjax` 
either. I don't know how to work around this with Mathjax.

Would you mind filing a ticket ?

Le lundi 18 avril 2022 à 13:11:22 UTC+2, list...@gmail.com a écrit :

>
> This is on SageMath 9.5, Jupyter notebook.
>
> Am I missing something?
>
> Guillermo
>
>

-- 
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/f0d17420-2dbd-4b77-bf83-b3053a668a05n%40googlegroups.com.


Re: [sage-support] Re: Removing packages and different versions of python

2022-04-18 Thread Jean-Florent Raymond

Thanks, that answers my questions!

Le 15/04/2022 à 20:00, Matthias Koeppe a écrit :

On Friday, April 15, 2022 at 12:39:23 AM UTC-7 Jean-Florent Raymond wrote:


In order to test something I would like to remove from my sage install a
python package that I installed (and updated) some time ago.

First question:
How can I remove a package installed with "sage -i"? I found
instructions in the doc to install packages, but nothing to remove them.
Is "sage -i" the same as "sage -pip install" (and "pip install" in a
"sage -sh" session), so I can simply do "sage -pip uninstall"?



To uninstall a package SPKG, use either "make SPKG-clean" or "make
SPKG-uninstall" - depending on the package source type (see
https://doc.sagemath.org/html/en/developer/packaging.html#package-source-types).
(We are in the process of unifying this -
https://trac.sagemath.org/ticket/29097)

When checking if there remain some files named after this package after

the "sage -pip uninstall" command, I can see that the package is still
installed in:

sage/local/lib/python3.7/site-packages/
sage/local/lib/python3.9/site-packages/

I guess because I installed it when the python version of my sage
install was 3.7 or 3.9 (currently it is 3.10.3).


I don't think there is a reason to keep this, hence my second question :

how to remove this given that I don't have python3.7 or python3.9
anymore in sage-sh ? Can I just rm everything in
sage/local/lib/python3.7 and sage/local/lib/python3.9?



Yes, you can safely "rm" it.
  


Last question: what does "spkg" mean :) ?



I think it just means "Sage package".
  


Is it just any package that
can be installed to use with Sage, some of which are standard python
(pip-installable) packages and some with different install scripts?



Yes.



--
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/b34e8687-012a-195c-fbd4-e9bb21a47824%40uca.fr.


Re: [sage-support] Matrix logarithm

2022-04-18 Thread Oscar Benjamin
On Mon, 18 Apr 2022 at 14:30, GUSTAVO TERRA BASTOS  wrote:
>
> Hi guys.
>
> Given two n x n matrices M, N, we know it is a big problem to find the 
> positive integer "i" such that M^i = N (There are other hypothesis involved). 
> In my particular case, I would like to do the same for 3 x 3 matrices M , N 
> over F_{11^2} (finite field with 121 elements).

Note that finding this integer i here is something different from what
is usually referred to as the "matrix logarithm" (the inverse of the
matrix exponential) which gives a matrix rather than an integer as the
result.

Is it prohibitive to just compute powers of M until you find that M^i = N?

Any i would need to satisfy det(M)^i = det(N) which should be faster
to solve for large i unless det(M) and det(N) are both zero or one.
Otherwise I think you can generalise the approach to other
coefficients in the characteristic polynomial.

Oscar

-- 
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/CAHVvXxSX2maPwn2Q9De-C7Jheb8NTqeAVAvenkmLxL5e%3DON2Fg%40mail.gmail.com.


Re: [sage-support] Matrix logarithm

2022-04-18 Thread David Joyner
On Mon, Apr 18, 2022 at 9:31 AM GUSTAVO TERRA BASTOS
 wrote:
>
> Hi guys.
>
> Given two n x n matrices M, N, we know it is a big problem to find the 
> positive integer "i" such that M^i = N (There are other hypothesis involved). 
> In my particular case, I would like to do the same for 3 x 3 matrices M , N 
> over F_{11^2} (finite field with 121 elements).
>

FYI, some options are mentioned in
https://math.stackexchange.com/questions/3116315/is-there-a-matrix-logarithm-in-sage

> Is it possible to do in a regular PC ?
>
> Best regards!
> Gustavo
>
> --
> 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/d6dfeea7-edac-4805-91e0-5a26ecaefa5dn%40googlegroups.com.

-- 
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/CAEQuuAWm%2BF45JRR6Hk%2BA_BKno9W%3DbMyK_of8JJBEuFrMUVF%2B-g%40mail.gmail.com.


[sage-support] Matrix logarithm

2022-04-18 Thread GUSTAVO TERRA BASTOS
Hi guys. 

Given two n x n matrices M, N, we know it is a big problem to find the 
positive integer "i" such that M^i = N (There are other hypothesis 
involved). In my particular case, I would like to do the same for 3 x 3 
matrices M , N over F_{11^2} (finite field with 121 elements). 

Is it possible to do in a regular PC ?

Best regards!
Gustavo

-- 
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/d6dfeea7-edac-4805-91e0-5a26ecaefa5dn%40googlegroups.com.


[sage-support] \ZZ not defined

2022-04-18 Thread G. M.-S.
This is on SageMath 9.5, Jupyter notebook.

Am I missing something?

Guillermo

-- 
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/CANnG18_jr_-D%2BBk5FTo%3DSZMimdMOHDN%2BOdQi8RJEQuPOmAsBiA%40mail.gmail.com.