Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

what is the output of this code? *in python* thank you please help!! import math def func(x): f math . sin(x + e.2) return float(f)

what is the output of this code?
*in python*
thank you please help!!
image text in transcribed
import math def func(x): f math . sin(x + e.2) return float(f) for i in range(0, 1ee): func (x) fprime math.cos (x+0.2) newton func(x) + (orig-x) * fprime print("newton: "newton) n=1 a=-1 b 2.5 for n in range (1, 54): C = (a + b)/2 print("Bisection: , func(c)) print("a: ", a) print("b:", b) if(func(c)--o): break elif(func(c) func(a) e) b=c else

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

Recommended Textbook for

Database Reliability Engineering Designing And Operating Resilient Database Systems

Authors: Laine Campbell, Charity Majors

1st Edition

978-1491925942

Students also viewed these Databases questions