Hani Al-hani - 2 years ago 106

Python Question

I want ask how to implementation the bennett atmospheric equation in Python. The equation is:

where

`h`

`R`

Recommended for you: Get network issues from **WhatsUp Gold**. **Not end users.**

Answer Source

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)
```

Recommended from our users: **Dynamic Network Monitoring from WhatsUp Gold from IPSwitch**. ** Free Download**