""" Example from lecture 22 aug. How can we use more advanced mathematical formulae in our programs? The answer is to import them from a Python module named "math", as illustrated by the import statement in the first line of the code. Lot's of important Python functionality is contained in various models, and most programs we write in IN1900 will start with one or more import statements. """ from math import * #import everything from the math module x = 1.2 Q = sin(x) * cos(x) + 4 * log(x) #log is the natural logaorithm (i.e. ln) print(Q) """ Usage and output: Terminal> python formula0.py 1.0670178174513938 """