Answered step by step
Verified Expert Solution
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?
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 *in python*
thank you please help!!
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started