math functions python has math module that provides most of the familiar mathematical functions before we can use the modulewe have to import itimport math this statement creates module object named math if you print the module objectyou get some information about itprint(maththe module object contains the functions and variables defined in the module to access one of the functionsyou have to specify the name of the module and the name of the functionseparated by dot (also known as periodthis format is called dot notation ratio signal_power noise_power decibels math log (ratioradians height math sin(radiansthe first example computes the logarithm base of the signal-to-noise ratio the math module also provides function called log that computes logarithms base the second example finds the sine of radians the name of the variable is hint that sin and the other trigonometric functions (costanetc take arguments in radians to convert from degrees to radiansdivide by and multiply by pdegrees radians degrees math pi math sin(radians the expression math pi gets the variable pi from the math module the value of this variable is an approximation of paccurate to about digits if you know your trigonometryyou can check the previous result by comparing it to the square root of two divided by twomath sqrt(