Why can't my program output the results?

I want to implement a function calculation process, but when writing, there will be syntax errors for return and print functions
can someone tell me what this is all about?

import numpy as np
def H_D(D, D_0, fi):
    D_tmp1 = D_0/(D*np.cos(fi))
    H_D = 0.5*D*np.cos(fi)*1(/(np.cosh(D_tmp1))-1/(np.cosh(1/np.cos(fi)))
    return H_D
if __name__ == "__main__":
    print(H_D(0.7, 0.5, 0.04166))

the result is that the return side is red. It is not clear why

clipboard.png

Mar.25,2021

clipboard.png

pycharm is good at writing python, and the error prompt is also very friendly

Menu