Hani Al-hani - 4 months ago 7

Python Question

Answer

You should take a look to the mathematical functions in Python.

If `cot`

is the cotangent, this very simple script will do the work:

```
import math
def R(h):
return 1.02 / math.tan( h + 10.3 / (h + 5.11) )
print R(1)
```

Source (Stackoverflow)

Comments