I wrote a crule1.py as follows.
def exp_rule1 (mu1, h, alpha): return h**2/(4*mu1**2) Then I run it in the Interpreter. I got
Python 2.7.6 |Anaconda 1.9.1 (64-bit)| (default, Nov 11 2013, 10:49:15) [MSC v.1500 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. Imported NumPy 1.8.0, SciPy 0.13.3, Matplotlib 1.3.1 Type "scientific" for more details. >>> import crul1 as c1 >>> c1.exp_rule1(1, 1, 0) 0 Then I copy the code into interpreter. The result is
>>> def exp_rule1 (mu1, h, alpha): ... return h**2/(4*mu1**2) ... >>> exp_rule1(1, 1, 0) 0.25 It makes me very confused and I cannot fix it. You are very appreciated to point out the problem in this code.
import cru1 as c1,c1.exp_rule1(1, 1, 0)lines?