Answer: much faster than average (11% or higher)
Explanation:
Playing a game or watching YouTube videos while charging because it is too much power used by your phone at once so your phone can't generate enough energy (charge) to make up for the power being used
B. Short, personal messages.
def dx(fn, x, delta=0.001):
return (fn(x+delta) - fn(x))/delta
def solve(fn, value, x=0.5, maxtries=1000, maxerr=0.00001):
for tries in xrange(maxtries):
err = fn(x) - value
if abs(err) < maxerr:
return x
slope = dx(fn, x)
x -= err/slope
raise ValueError('no solution found')