A following code
from math import ceil
val = (3**38 / (2*3 - 1) - 1) / 2
print(ceil(val) - val)
return
38/5
But this is weird since the value should be $< 1$ by the definition of the ceil function.
| 1 | initial version |
A following code
from math import ceil
val = (3**38 / (2*3 - 1) - 1) / 2
print(ceil(val) - val)
return
38/5
But this is weird since the value should be $< 1$ by the definition of the ceil function.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.