Function
|
Returns (description)
|
Abs(x)
|
The absolute value of x: the (positive) distance between x and zero.
|
Ceil(x)
|
The ceiling of x: the smallest integer not less than x
|
Cmp(x, y)
|
-1 if x<y, 0 if x==y, or 1 if x>y
|
Exp()
|
The exponential of x:ex
|
Fabs(x)
|
The absolute value of x.
|
Floor(x)
|
The floor of x: the largest integer not greater than x
|
Log(x)
|
The natural logarithm of x, for x>0
|
Log10(x)
|
The base-10 logarithm of x, for x>0
|
Max(x1,x2,…)
|
The largest of its arguments: the value closest to positive infinity
|
Min(x1,x2,…)
|
The smallest of its arguments: the value closest to negative infinity
|
Modf(x)
|
The fractional and integer parts of x in a two-item tuple. Both parts
have the same sign as x. the integer part is returned as a float.
|
Pow(x,y)
|
The value of x**y
|
Round(x [,n])
|
X rounded to n digits from the decimal point. Python rounds away from
zero as a tie-breaker
|
Sqrt(x)
|
The square root of x for x>0
|
Thursday, 5 July 2012
Mathematical Functions:
Labels:
Python
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment