''' Purpose: naming allows abstraction Author: Jim Cohoon ID: jpc ''' # get access to Python math comutational resources import math # demonstrate the two math constants print( 'Python approximation of pi:', math.pi ) 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 ) tan_b = math.tan( b ) print( 'sin( 30 degrees ):', sin_a ) print( 'tan( 45 degrees ):', tan_b )