On Thu, 27 Oct 2016, Vincent Delecroix wrote:

1) What is [a, b, c, d, e]?

Arghs, forgot the definition list:

R.<a, b, c, d, e> = QQ['a, b, c, d, e']

2) Your would better replace

 [a, b, c, d, e][randint(0,4)]

by

 choice([a,b,c,d,e])

That means using plain Python function to get a random number. I don't know if it plays well with Sage random state.

But in any case, this is just a test code to see how well Singular works.

--
Jori Mäntysalo

Reply via email to