Ticket #9958: trac_9958fixing_numericalnoisepart4.patch
File trac_9958fixing_numericalnoisepart4.patch, 3.5 KB (added by , 10 years ago) 


sage/categories/examples/semigroups.py
# HG changeset patch # User Francois Bissey <francois.bissey@canterbury.ac.nz> # Date 1303947692 43200 # Node ID 12bee39094fcfcd2816f72ab80640fd03b674136 # Parent 3b92588cf32615f3a1627fa5fd237699d526ead2 #9958 fixing numerical noise part 4  the forgotten one diff git a/sage/categories/examples/semigroups.py b/sage/categories/examples/semigroups.py
a b 30 30 This is the semigroup that contains all sorts of objects:: 31 31 32 32 sage: S.some_elements() 33 [3, 42, 'a', 3. 3999999999999999, 'raton laveur']33 [3, 42, 'a', 3.4, 'raton laveur'] 34 34 35 35 with product rule given by $a \times b = a$ for all $a, b$:: 36 36 … … 124 124 EXAMPLES:: 125 125 126 126 sage: Semigroups().example().some_elements() 127 [3, 42, 'a', 3. 3999999999999999, 'raton laveur']127 [3, 42, 'a', 3.4, 'raton laveur'] 128 128 129 129 """ 130 130 return [self(i) for i in [3, 42, "a", 3.4, "raton laveur"]] 
sage/categories/examples/semigroups_cython.pyx
diff git a/sage/categories/examples/semigroups_cython.pyx b/sage/categories/examples/semigroups_cython.pyx
a b 193 193 This is the semigroup which contains all sort of objects:: 194 194 195 195 sage: S.some_elements() 196 [3, 42, 'a', 3. 3999999999999999, 'raton laveur']196 [3, 42, 'a', 3.4, 'raton laveur'] 197 197 198 198 with product rule is given by $a \times b = a$ for all $a,b$. :: 199 199 
sage/misc/randstate.pyx
diff git a/sage/misc/randstate.pyx b/sage/misc/randstate.pyx
a b 255 255 sage: with seed(1): 256 256 ... rtest(); 257 257 ... rtest(); 258 (978, 0.184109262667515, 3*x^2  1/12, (4,5), [ 0, 1, 1, 0, 0 ], 1161603091, 60359, 0.8335077654199736 2) # 32bit259 (138, 0.247578366457583, 2*x  24, (), [ 1, 1, 1, 0, 1 ], 1966097838, 10234, 0.0033332230808060803) 260 (978, 0.184109262667515, 3*x^2  1/12, (4,5), [ 0, 1, 1, 0, 0 ], 807447831, 60359, 0.8335077654199736 2) # 64bit261 (138, 0.247578366457583, 2*x  24, (), [ 1, 1, 1, 0, 1 ], 1010791326, 10234, 0.0033332230808060803) 258 (978, 0.184109262667515, 3*x^2  1/12, (4,5), [ 0, 1, 1, 0, 0 ], 1161603091, 60359, 0.8335077654199736) # 32bit 259 (138, 0.247578366457583, 2*x  24, (), [ 1, 1, 1, 0, 1 ], 1966097838, 10234, 0.0033332230808060803) # 32bit 260 (978, 0.184109262667515, 3*x^2  1/12, (4,5), [ 0, 1, 1, 0, 0 ], 807447831, 60359, 0.8335077654199736) # 64bit 261 (138, 0.247578366457583, 2*x  24, (), [ 1, 1, 1, 0, 1 ], 1010791326, 10234, 0.0033332230808060803) # 64bit 262 262 sage: r2m == rtest() 263 263 True 264 264 
sage/symbolic/constants.py
diff git a/sage/symbolic/constants.py b/sage/symbolic/constants.py
a b 1107 1107 EXAMPLES:: 1108 1108 1109 1109 sage: float(twinprime) 1110 0.6601618158468696 21110 0.6601618158468696 1111 1111 sage: twinprime.n(digits=60) 1112 1112 0.660161815846869573927812110014555778432623360284733413319448 1113 1113 
sage/symbolic/expression.pyx
diff git a/sage/symbolic/expression.pyx b/sage/symbolic/expression.pyx
a b 5434 5434 sage: maxima('atan2(0.7,0.6)') 5435 5435 2.279422598922567 5436 5436 sage: float(SR(0).arctan2(0.6)) 5437 3.141592653589793 15437 3.141592653589793 5438 5438 sage: maxima('atan2(0,0.6)') 5439 5439 3.141592653589793 5440 5440 sage: float(SR(0).arctan2(0.6))