OK, one more time I feel stupid and one more time thanks to answer. But now look at this
R = PolynomialRing(RR, 'c', 20) c = R.gens() c=vector([c[i] for i in (0..2)]) Z1=matrix([[1, 2],[3,4]])*vector([c[1],c[2]]) show(Z1)<--- correct display But c and c[1] is not recognized. So I do not know how to call the c's. solve(Z1[0]==0,c) solve(Z1[0]==0,c[1]) On Sunday, June 6, 2021 at 12:14:15 PM UTC+2 slelievre wrote: > 2021-06-06 10:47:24 UTC+2, Cyrille Piatecki: > > > > [c[i] for i in range(0..2)] <-- this doesn't work > > You are mixing two different options: > > - range: > [c[i] for i in range(2)] > [c[i] for i in range(0, 2)] > > - ellipsis: > [c[i] for i in (0 .. 2)] > > -- 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/827e65e0-f2ea-4ef7-bf6c-2cb9eeed105en%40googlegroups.com.