I'm a student of mechanical engineering, and this is the first year I've met with the Python environment, or the distribution of it Anaconda. I was given a task to find the zeroes of this function:
⋅sin()cos()+⋅cos()sin()2−⋅cos()−ℎ⋅sin()=0
With the parameters:
D = 220mm,
h = 1040mm,
l = 1420mm,where
n = 81
is the number of equally distanced points on the function and the function is limited to :
∈[0,2] where is a np.array.
plotted function
The issue is, when I try to insert the function in bisect(fun, a, b)
, the error says
'numpy.ndarray' object is not callable
Can someone aid a noob programer ? Thanks.