The math module does not support complex data types. In python, some mathematical operations can be performed with ease of the math module. After that, you can call any method of that module. To use the Math module in your Python application, first, you need to import the module using import math statements in your program. This function works in python 3.5 and above. gcd():- This function is used to compute the greatest common divisor of 2 numbers mentioned in its arguments.factorial():- It returns the factorial of x.floor():- It returns the largest integer less than or equal to x.ceil():- It returns the smallest integer value greater than or equal to x.fabs(x): It returns the absolute value of x.So if we want to use mathematical functions like evaluating some complex mathematical operations such, trigonometric operations, logarithmic operations, etc., under the math module, then use the Python math functions. Python math is a built-in standard module that is used to work with complex scientific calculations.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |