Doctor of Science in Information Technology (DScIT) Repository

8-9. Mathematical Function

This module provides access to common mathematical functions and constants

The following functions are provided by this module

Math module should be imported

import math

Example:

Output: 

Square root of 16 is 4.0
Ceiling of 4.3: 5
Factorial of 5: 120
Sine of 90 degrees: 1.0
n value: 3.141592653589793

 

Last updated: August 07, 2026

AI Code Explainer

Paste any Python code below and get a plain-English explanation.