Révision 80 pobysoPythonSage/src/sageSLZ/sageRationalOperations.sage

sageRationalOperations.sage (revision 80)
6 6
- Serge Torres: first operations set (2013-04) 
7 7
"""
8 8

  
9
def denominators(rationalList = None):
9
def sro_denominators(rationalList = None):
10 10
    """
11 11
    Compute the list of the denominators of a rational numbers list.
12 12
    """
......
37 37
                    "has no \"denominator()\" member." 
38 38
            return([])
39 39
    return(denominatorsList)
40
# End sro_denominators
40 41

  
41
def lcmm(rationalList = None):
42
def sro_lcmm(rationalList = None):
42 43
    """ 
43 44
    Compute the lcm of an sequence (list, tuple) of rational numbers.
44 45
    """
......
62 63
    except Exception:
63 64
        print "Exception raised in lcmm!"
64 65
        return(0)
65
    
66
def numerators(rationalList = None):
66
# End sro_lcmm
67

  
68
def sro_numerators(rationalList = None):
67 69
    """
68 70
    Compute the list of the numerators of a rational numbers list.
69 71
    """
......
93 95
            print "numerators:", rationalList[i], \
94 96
                    "has no \"numerator()\" member." 
95 97
            return([])
96
    return(numeratorsList)
98
    return(numeratorsList)
99
# End sro_numerators

Formats disponibles : Unified diff