First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

answered 13 years ago

Kelvin Li gravatar image

Sorry, no Trac ticket:

sage: f(x) = ceil(sqrt(2*x) - 1/2)
sage: [0 .. f(3).simplify_radical()]
[0, 1, 2]
click to hide/show revision 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]