> 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...
I just wanted to add, I noticed that t
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’
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 i
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
I am afraid I cannot seem to find the answer to the following question in
the docs.
Suppose I have finite ring? How do I list all its elements? e.g.
```
R = PolynomialRing(GF(97),'x')
x = R.gen()
p = lambda x: x^2+2
S = R.quotient(p(x), 'a')
```
I would like to list all the elements of the qu
Thanks so much!
On Wednesday, October 19, 2022 at 7:59:36 PM UTC+5:30 Emmanuel Charpentier
wrote:
> That can be done in Sage in a variety of ways . Here’s one :
>
> var("x, y")
> L = 3# Plotted function
> f =lambda x,y:cos(x)-2*y# Coloring# Colormap
> cm=colormaps["RdBu"]# We have to scale the
I want to plot the solution of my differential equation. However, the
solution returned by `desolve` is in implicit form (as should be expected,
the docs say most solution returned are like that)
Here is my current broken code.
```
x = var ('x')
y = function ('y')(x)
sol = desolve(diff(y,x)==
I want to create heat maps of a scalar field in SAGE. Here is equivalent
code in Matplotlib that does the job along with the resulting output. The
matplotlib code uses the .pcolormesh function. Is there an equivalent in
SAGE?
The closest I can see are the functions that create contour plots
I am studying Lissajous curves with the following code, that works as
expected.
```
import numpy as np
tmin = -30*np.pi
tmax = 30*np.pi
@interact
def _(a= slider(np.linspace(-1,1,100),default=0.39),
b= slider(np.linspace(-1,1,100),default=0.49),
delta= slider(np.linspace(