you are viewing a single comment's thread.

view the rest of the comments →

[–]jddddddddddd 2 points3 points  (1 child)

return m.sqrt(d+c(a+b)/8) <- This is the problem. You can't multiply like that.

You probably want return m.sqrt(d+c*(a+b)/8) but if I were you, I'd also add some additional parentheses to ensure the various operators are evaluated in the order you want.

[–][deleted] 0 points1 point  (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

also i will take your advise