I have this function that takes in an x value and returns an output y value.
def function(x):
y = math.cos(x**2/2)/(math.log(x+2,2))
return y
When I call the function, I get:
print function(1)
>> 0.630929753571
But WolframAlpha has the value at x = 1 to be 0.553693
Which is the correct value?