Ticket #3962: trac_3962-3.patch
| File trac_3962-3.patch, 2.3 kB (added by jason, 3 months ago) |
|---|
-
a/sage/calculus/calculus.py
old new 4091 4091 if isinstance(self._obj, int): 4092 4092 return True 4093 4093 4094 def __index__(self): 4095 """ 4096 EXAMPLES: 4097 sage: a = range(10) 4098 sage: a[:SR(5)] 4099 [0, 1, 2, 3, 4] 4100 """ 4101 return int(Integer(self)) 4102 4094 4103 def _fast_float_(self, *vars): 4095 4104 """ 4096 4105 Returns an object which provides fast floating point evaluation of -
a/sage/modules/free_module.py
old new 3887 3887 sage: W = V.submodule_with_basis([[1,1,0],[0,2,1]]) 3888 3888 sage: W._echelonized_basis(V,W.basis()) 3889 3889 [(1, 0, -1/2), (0, 1, 1/2)] 3890 sage: V = SR^3 3891 sage: W = V.submodule_with_basis([[1,0,1]]) 3892 sage: W._echelonized_basis(V,W.basis()) 3893 [(1, 0, 1)] 3894 3890 3895 """ 3891 3896 # Return the first rank rows (i.e., the nonzero rows). 3892 3897 d = self._denominator(basis) -
a/sage/structure/element.pyx
old new 1456 1456 1457 1457 TESTS: 1458 1458 sage: 2r**(SR(2)-1-1r) 1459 1 1460 sage: 2r**(SR(1/2)) 1459 1461 Traceback (most recent call last): 1460 1462 ... 1461 NotImplementedError: non-integral exponents not supported 1462 sage: 2r**(Integer(SR(2)-1-1r)) 1463 1 1464 1465 1463 NotImplementedError: non-integral exponents not supported 1466 1464 """ 1467 1465 if dummy is not None: 1468 1466 raise RuntimeError, "__pow__ dummy argument not used"