From: Bjørn Rustad Date: Fri, 30 Sep 2011 20:09:54 +0000 (+0200) Subject: Uncomment graphing imports X-Git-Url: http://git.rustad.me/?a=commitdiff_plain;h=dd3d20cd97900effcbe5f849907d9fba1c0bd8c8;p=nummat1 Uncomment graphing imports --- diff --git a/main.py b/main.py index bafd504..2477c2d 100644 --- a/main.py +++ b/main.py @@ -1,7 +1,7 @@ -#from enthought.mayavi import mlab +from enthought.mayavi import mlab import time import numpy as np -#import matplotlib.pyplot as plt +import matplotlib.pyplot as plt import surf from steepest import steepest from function import function_g diff --git a/newton.py b/newton.py index 9eb559a..c639229 100644 --- a/newton.py +++ b/newton.py @@ -1,9 +1,9 @@ -#from enthought.mayavi import mlab +from enthought.mayavi import mlab from function import function_g, gradient_g, hessian_g import generate import surf import numpy as np -#import matplotlib.pyplot as plt +import matplotlib.pyplot as plt from numpy.linalg import norm, inv # Calculate the next iteration of the Newton method diff --git a/steepest.py b/steepest.py index 2d5d401..976388c 100644 --- a/steepest.py +++ b/steepest.py @@ -1,9 +1,9 @@ -#from enthought.mayavi import mlab +from enthought.mayavi import mlab from function import function_g, gradient_g, _C import generate import surf import numpy as np -#import matplotlib.pyplot as plt +import matplotlib.pyplot as plt import time from numpy.linalg import norm