''' Purpose: naming allows abstraction Author: Jim Cohoon ID: jpc ''' # get access to Python math computational resources import math # gives the program access to the math library # demonstrate the two math constants print( 'Python approximation of pi:', math.pi ) # To get something out of the library, you must type math. The dot represents selection. print( 'Python approximation of Euler\'s number:', math.e ) print() print() # show some math computation a = math.radians( 30 ) b = math.radians( 45 ) sin_a = math.sin( a ) # You can't use a space or else it won't be one variable and without it it looks messy. tan_b = math.tan( b ) print( 'sin( 30 degrees ):', sin_a ) print( 'tan( 45 degrees ):', tan_b )