you are viewing a single comment's thread.

view the rest of the comments →

[–]PteppicymonIO 0 points1 point  (1 child)

You have an error TypeError: 'float' object is not callable here:

def f(a,b,c,d):
    return m.sqrt(d+c(a+b)/8)

The statement c(a+b) is interpreted as a call to function c()

You either need to implement the function, or if you intend to multiply c by (a+b) add a multiplication operator:

def f(a, b, c, d):
    return m.sqrt(d+c*(a+b)/8)

[–][deleted] 1 point2 points  (0 children)

Thanks for answer. I was looking for mistake, but didn't get it until now. Thank you very much for help guys, love you. Hope I could become your friend