Changeset 7458:98dd6d68547a
- Timestamp:
- 12/01/07 10:32:17 (5 years ago)
- Branch:
- default
- File:
-
- 1 edited
-
sage/calculus/calculus.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
sage/calculus/calculus.py
r7448 r7458 3134 3134 return ring(f(*t)) 3135 3135 3136 def variables(self): 3137 """ 3138 Return sorted list of variables that occur in self. 3139 The ordering is alphabetic. 3140 3141 EXAMPLES: 3142 sage: R.<x> = QQ[]; S.<y> = R[] 3143 sage: f = x+y*x+y^2 3144 sage: g = SR(f) 3145 sage: g.variables() 3146 (x, y) 3147 """ 3148 P = self._obj.parent() 3149 variables = map(var, P.variable_names_recursive()) 3150 variables.sort() 3151 return tuple(variables) 3152 3136 3153 def polynomial(self, base_ring): 3137 3154 """ … … 3318 3335 op_vars = op.variables() 3319 3336 if len(op_vars) == 0: 3320 new_ops.append( op(args[0]) ) 3337 if len(args) != 0: 3338 new_ops.append( op(args[0]) ) 3339 else: 3340 new_ops.append( op ) 3321 3341 continue 3322 3342 else:
Note: See TracChangeset
for help on using the changeset viewer.
