Importing Numpy into functions
<p>I do not know the right way to import modules. Not sure what to "google".</p>

<p>I have a main file which initializes the code, does some preliminary calculations etc.,</p>

<p>I also have 5 functions f1, f2, ... f5. The main code and all functions need Numpy.
If I define all functions in the main file, the code runs fine.
(Importing with : import numpy as np)</p>

<p>If I put the functions in a separate file, I get an error. 
Error : Global name 'linalg' is not defined. </p>

<p>What is the right way to import modules such that the functions f1 - f5 can access the Numpy functionality?</p>
