So just as the question states, I'm wondering how python calculates equations such as
def indeterminate(x):
return (x - math.sin(x)) / math.pow(x, 3)
where Limit approaches 0. I'm asking because when I input
>>> indeterminate(0.0000001)
0.17205356741102978
Where as
>>> indeterminate(0.00000001)
0.0
Shouldn't the output be approaching 1/6? And if it becomes too close, wouldn't a ZeroDivisionError message be more suitable than 0.0?
Another question I have is how do I calculate the actual number of
indeterminate(0.00000001)
The correct answer using L'hopital's rule should be 1/6 but (0.166666...) and not 0.1720...