1 | initial version |
Sorry, no Trac ticket:
sage: f(x) = ceil(sqrt(2*x) - 1/2)
sage: [0 .. f(3).simplify_radical()]
[0, 1, 2]
2 | improved hack |
Sorry, no Trac ticket:Calling simplify
is a hack:
sage: f(x) = ceil(sqrt(2*x) - 1/2)
sage: [0 .. f(3).simplify_radical()]
f(3).simplify()]
[0, 1, 2]