Changeset 4393:1bf81c6cbca6
- Timestamp:
- 05/09/07 22:09:37 (6 years ago)
- Branch:
- default
- Children:
- 4394:f9c0bd1ddcc8, 4395:f08253cc52b2
- File:
-
- 1 edited
-
sage/calculus/calculus.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/calculus/calculus.py
r4313 r4393 3522 3522 return x.ceil() 3523 3523 except AttributeError: 3524 if isinstance(x, float):3525 return math.ceil(x)3524 if isinstance(x, (float, int, long, complex)): 3525 return int(math.ceil(x)) 3526 3526 return SymbolicComposition(self, SR(x)) 3527 3527 … … 3561 3561 return x.floor() 3562 3562 except AttributeError: 3563 if isinstance(x, float):3564 return math.floor(x)3563 if isinstance(x, (float, int, long, complex)): 3564 return int(math.floor(x)) 3565 3565 return SymbolicComposition(self, SR(x)) 3566 3566
Note: See TracChangeset
for help on using the changeset viewer.
