Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

mon script toto

Views: 116
Kernel: SageMath (stable)
def f(x): return x**2
f(4)
16
2+2
4
x
x
%display typeset
x
R.<x1, x2, x3, x4, x5>= QQ[]
R
f= x1^2*(x2*x5 + x3*x4);f
X= [0] + list(R.gens()); X
g= lambda i, j, k, l, m : X[i]^2*(X[j]*X[k] + X[l]*X[m])
g(1, 2, 5, 3, 4)
F= g(1, 2, 5, 4, 3) + g(2, 1, 3, 4, 5) + g(3, 1, 5, 2, 4) + g(4, 1, 2, 3, 5) + g(5, 1, 4, 2, 3)
F
L= [F, F(X[2], X[1], X[3], X[4], X[5]), F(X[3], X[2], X[1], X[4], X[5]), F(X[4], X[2], X[3], X[1], X[5]) , F(X[5], X[2], X[3], X[4], X[1]), F(X[1], X[5], X[3], X[4], X[2]) ]
len(L)
S.<T>= R[]
graal= prod([T - foo for foo in L])
c= graal.coefficients()
c[6]
c[0]
WARNING: Some output was deleted.
symmetrize(c[0])