# Changeset 7553:1065b01a711e

Ignore:
Timestamp:
12/05/07 18:48:52 (5 years ago)
Branch:
default
Message:

Fixed #1243.

Location:
sage
Files:
7 edited

Unmodified
Removed
• ## sage/misc/misc.py

 r7351 [0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20] Sometimes one or more ranges is emtpy. Sometimes one or more ranges is empty. sage: ellipsis_range(100,Ellipsis,10,Ellipsis,20,step=2) [10, 12, 14, 16, 18, 20] The following example is similar to one in the MAGMA handbook.  We check whether certain integers are a some of two (small) cubes: check whether certain integers are a sum of two (small) cubes: sage: cubes = [t**3 for t in range(-10,11)] sage: v = [1,2,3] The following use to fail in SAGE <= 1.3.7.  Now it works fine: The following used to fail in SAGE <= 1.3.7.  Now it works fine: sage: v[ZZ(1)] 2
• ## sage/rings/polynomial/polynomial_element.pyx

 r7541 def _pow(self, right): # TODO: fit __pow__ into the arithmatic structure # TODO: fit __pow__ into the arithmetic structure if self.degree() <= 0: return self.parent()(self[0]**right)
• ## sage/schemes/elliptic_curves/ell_point.py

 r5945 def make_point(X, v): # TODO: Unpickled parents with base sometimes have thier base set to None. # This causes a segfault in the module arithmatic architecture. # This causes a segfault in the module arithmetic architecture. # # sage: H = HomsetWithBase(QQ, RR, base=ZZ); H
• ## sage/structure/coerce.pxi

 r7241 ################################################################################# # Inline arithmatic dispatchers for ModuleElements and RingElements # Inline arithmetic dispatchers for ModuleElements and RingElements ################################################################################# cdef enum: # 3 references: handle, scope container, and arithmatic call stack # 3 references: handle, scope container, and arithmetic call stack inplace_threshold = 0
• ## sage/structure/coerce.pyx

 r7525 We can read of this data that the most expensive operation was the creation of the action of $\Q$ on $\Z[x]$ (whose result lies in $\Q[x]$. This has been cached as illistrated below. been cached as illustrated below. sage: coerce.flush()
• ## sage/structure/element.pyx

 r7454 For speed, there are also {\bf inplace} version of the arithmatic commands. For speed, there are also {\bf inplace} version of the arithmetic commands. DD NOT call them directly, they may mutate the object and will be called when and only when it has been determined that the old object will no longer
• ## sage/structure/parent_base.pyx

 r6606 # TODO: Unpickled parents with base sometimes have thier base set to None. # This causes a segfault in the module arithmatic architecture. # This causes a segfault in the module arithmetic architecture. # # sage: H = HomsetWithBase(QQ, RR, base=ZZ); H
Note: See TracChangeset for help on using the changeset viewer.