SA2 Reviewew Flashcards
are used for integer or real type objects but not for complex numbers.
math() function
Return the value of pi: 3.141592
Pi
Return the value of natural base e. e is 0.718282
E
Returns the value of tau. tau = 6.283185
tau
Returns the infinite
inf
Not a number type
nan
It returns the ceiling value which is the smallest value, greater or equal to the number x.
Ceil(x)
Returns the number of x and copy the sign of y to x.
copysign(x, y)
Return absolute value of x.
fabs(x)
Returns factorial of x where x>=0
factorial(x)
Returns the floor value which is the largest integer, less or equal to the number x
floor(x)
Returns sum of the elements in an iterable object
fsum(iterable)
Returns the greatest common divisor of x and y.
gcd(x,y)
Checks whether x is neither an infinity nor nan
isfinite(x)
Checks if x is infinity
isinf(x)