Posts by Giovane Ramos • 3 points
1 post
-
-1
votes3
answers115
viewsQ: Why doesn’t this equation compile?
import math def f(x): eq = (4-8*x)*math.cosh(2x) return eq a= 0 b= 1 erro = math.pow(10,-3) if f(a)*f(b) < 0: x=(a+b)/2 while (math.fabs(f(x)) > erro): x=(a+b)/2 if f(a)*f(x)<0: b=x g = (b…
pythonasked Giovane Ramos 3