Re: [sage-support] Re: Rendering tables in jupyter notebook

2022-11-20 Thread Emmanuel Charpentier
Le dimanche 20 novembre 2022 à 19:16:44 UTC+1, gauri...@gmail.com a écrit : > Thanks! I will ask on the Jupyter mailing list. > >> >> Also is it possible for me to write [image: x^k-1] for various powers of >> [image: >> k] in latex in place of [image: x^k+2]. i.e. I want to write -1 wherever

Re: [sage-support] Re: Listing elements of a finite ring.

2022-11-20 Thread John H Palmieri
You can also do `list(S)`, or depending on what you're doing it might be better to iterate over its elements, as Emmanuel wrote: `for u in S...` On Sunday, November 20, 2022 at 8:54:25 AM UTC-8 gauri...@gmail.com wrote: > Oh wow! That was easy! > > Thanks so much! > G > > On Sun, Nov 20,

[sage-support] Strange bug connected to GAP as a backend

2022-11-20 Thread 'Peter Mueller' via sage-support
Start with g = SymmetricGroup(3) chi = g.trivial_character() u = g.subgroup([]) Next reg = u.trivial_character().induct(g) print(chi.scalar_product(reg)) yields as expected the answer 1. Now repeat the very same two lines, but before doing so compute the representatives of conjugacy classes

Re: [sage-support] Re: Rendering tables in jupyter notebook

2022-11-20 Thread Gaurish Telang
Thanks! I will ask on the Jupyter mailing list. > > Also is it possible for me to write [image: x^k-1] for various powers of > [image: > k] in latex in place of [image: x^k+2]. i.e. I want to write -1 wherever > there is a 2 in the left column. Sure I can do this with print, but the > output

Re: [sage-support] Re: Listing elements of a finite ring.

2022-11-20 Thread Gaurish Telang
Oh wow! That was easy! Thanks so much! G On Sun, Nov 20, 2022 at 3:12 PM Emmanuel Charpentier < emanuel.charpent...@gmail.com> wrote: > No predefined method, but listing S’s elements seems easy : > > sage: R1.=GF(97)[] > sage: p=lambda x:x^2+2 > sage: S=R1.quotient(p(t),'a') > sage: L=[u for u

[sage-support] Re: Rendering tables in jupyter notebook

2022-11-20 Thread Emmanuel Charpentier
> How can I ask Sage to place each factorization in the right column on a single line. Both the display in a console and the LaTeX display given by `view` are single-lined. I can reproduce your problem in Jupyter ; therefore, I think that the question should be directed to a Jupyter-centered

[sage-support] Re: Listing elements of a finite ring.

2022-11-20 Thread Emmanuel Charpentier
No predefined method, but listing S’s elements seems easy : sage: R1.=GF(97)[] sage: p=lambda x:x^2+2 sage: S=R1.quotient(p(t),'a') sage: L=[u for u in S] sage: len(L) 9409 HTH, ​ Le dimanche 20 novembre 2022 à 07:39:27 UTC+1, gauri...@gmail.com a écrit : > I am afraid I cannot seem to find