Ask Your Question

Revision history [back]

1)

sage: f[0,1,2,3].expr().coefficient(x^2)
3

2)

sage: List = [f]*3
sage: show(LatexExpr('[' + ','.join(latex(f.display()) for f in List) + ']'))

$$[f = 3 \, x^{2} \mathrm{d} x\wedge \mathrm{d} y\wedge \mathrm{d} z\wedge \mathrm{d} w,f = 3 \, x^{2} \mathrm{d} x\wedge \mathrm{d} y\wedge \mathrm{d} z\wedge \mathrm{d} w,f = 3 \, x^{2} \mathrm{d} x\wedge \mathrm{d} y\wedge \mathrm{d} z\wedge \mathrm{d} w]$$