Changeset 7452:bd479d911573
- Timestamp:
- 11/28/07 22:53:12 (5 years ago)
- Branch:
- default
- Location:
- sage/rings
- Files:
-
- 2 edited
-
mpfr.pxi (modified) (1 diff)
-
real_mpfr.pyx (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
sage/rings/mpfr.pxi
r7425 r7452 123 123 #define mpfr_abs(a,b,r) mpfr_set4(a,b,r,1) 124 124 #define mpfr_sgn(x) mpfr_cmp_ui(x,0) 125 int mpfr_cmp_ui(mpfr_t, unsigned int n) 125 126 126 127 int mpfr_round (mpfr_ptr rop, mpfr_srcptr op) -
sage/rings/real_mpfr.pyx
r7428 r7452 2034 2034 """ 2035 2035 cdef RealNumber x 2036 if self>= 0:2036 if mpfr_cmp_ui(self.value, 0) >= 0: 2037 2037 x = self._new() 2038 2038 _sig_on
Note: See TracChangeset
for help on using the changeset viewer.
