Computational Physics, Python, Interpolation, Differentiation, Integration.
point numbers. Presumably if we want to do better, we are going to have to make the working precision higher. my_newton2(f,lambda x:2*x+2,10,1.48e-64) Let’s try increasing the working precision of our code using high precision numbers from decimal import Decimal def my_newton3(f,fprime,x0,err):