Let's say, I want to define the following function:
sage: f(x)=mod(floor(x),5)
Then I get this error:
TypeError: unable to convert floor(x) to an integer
How can I solve this problem?
| 1 | initial version |
Let's say, I want to define the following function:
sage: f(x)=mod(floor(x),5)
Then I get this error:
TypeError: unable to convert floor(x) to an integer
How can I solve this problem?
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.