Computational Physics, Python, Interpolation, Differentiation, Integration.
lambda function this time optimize.newton(lambda x:x**2+2*x+1,1) Out: -0.9999999805834525 This is why it is nice to have these lambda functions. We save our functions for things that are actually useful. What do we think of this answer? This is a pretty simple equation and while we are close, this