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 won’t be Latex rendered.
I apologize that it was terribly worded. It was just a dumb question that occured while trying to understand how the `table` function outputs data into a jupyter notebook cell. I basically wanted the left hand-side to contain [image: x^k-1] in place of [image: x^k+2] for different values of [image: k] i.e. [image: x-1] in place of [image: x+2] [image: x^2-1] in place of [image: x^2+2] and so on. I *know* of course -1 and 2 are identical in Z/3Z, but I was wondering if there was a way to *display* (-1) in place of 2 while using the `table` command and working Z/3Z. Regards G On Sun, Nov 20, 2022 at 3:36 PM Emmanuel Charpentier < emanuel.charpent...@gmail.com> wrote: > > 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 mailing list, > newsgroup, forum or whatever... > > > Also is it possible for me to write x^k-1 for various powers of k in > latex in place of 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 won’t be > Latex rendered. > > I cant't make head or tail of this gibberish. Could you rephrase ? > > HTH, > > Le dimanche 20 novembre 2022 à 07:39:27 UTC+1, gauri...@gmail.com a > écrit : > >> I want to create a neat table of the factorization of several polynomials >> of the form [image: x^n-1] in the ring Z/3Z [x]. >> >> This is my code, which I am using inside of a Jupyter notebook that works >> as expected: >> >> R = IntegerModRing(3) >> x = PolynomialRing(R, 'x').gen() >> >> rows = [] >> for k in range(1,10): >> f = x^k - 1 >> factor = f.factor() >> rows.append((f,factor)) >> >> table(rows, header_row=["Polynomial ", "Factorization"], frame=True) >> >> However, the output produced is ugly and looks like the one in the >> attachment; it leaves a lot of space on the right but the factorization is >> spread across multiple rows. How can I ask Sage to place each factorization >> in the right column on a single line. >> >> 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 won’t be Latex rendered. >> >> >> > -- > 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/a737f888-3397-4be7-aab6-1e9e8230b20en%40googlegroups.com > <https://groups.google.com/d/msgid/sage-support/a737f888-3397-4be7-aab6-1e9e8230b20en%40googlegroups.com?utm_medium=email&utm_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/CAC4%2BK-QWoZJYbbsm7C8k_3-9pfj%2BFghVTLAvEtqrkO41WMj8-Q%40mail.gmail.com.