By intrinsics we mean built-in functions of Python. These functions operate on all the different kinds of numbers:
abs(x)Returns the absolute value of
. For complex values,
returns the magnitude.x
coerce(a,b)Returns a tuple
(
of the arguments coerced to the same type.a',b')
divmod(a,b)Returns a tuple
( where
q,
r) is the quotient
qa/b and
is the remainder
ra%b.
pow(x,y[,z])Computes to the x power. If the optional third
argument is given, it computes
y(.x**y)%z
round(x)Returns rounded up or down to the nearest
integral float, e.g.,
xround(-3.5) yields -4.
For common transcendental functions like square root
and logarithm, see the math
module below.