Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Listing 1: newton.py 1 f = lambda x: x**6 - x - 1 2 fp = lambda x: 6*( 5) -1 3 4 def fpa(f)

image text in transcribedimage text in transcribedimage text in transcribed

image text in transcribedimage text in transcribedimage text in transcribed

Listing 1: newton.py 1 f = lambda x: x**6 - x - 1 2 fp = lambda x: 6*( 5) -1 3 4 def fpa(f) h- .000001 6 return lambda x: (f (x+h)-f(x-h))/(2h) 7 8 def newton(f,fp,x, tau): 9 def n(x,i): 10 while f(x) tau print("o 1.5f 12:.5f.format(i,x,f(x))) x = x-f(x)/p(x) 1+= 1 12 13 14 15 n(x,0) 16 17 newton(f,fp, 1.5,.0001) 18 newton(f,fpa(f),1.5,.0001) return X

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions