# UVa 11241

## 11241 - Humidex[edit]

## Summary[edit]

This a **mathematical simulation** problem. The **Formula** is given in the question. You have to **simulate** the Formula.

## Explanation[edit]

Actually, no explanation needed. Everything is given.Let the three parametres are **Humidex,Temperature** and **Dewpoint**. Find out the **formula** for them.

**Humidex**

humidex = temperature + h;

h = (0.5555) * (e - 10.0);

e = 6.11 * exp[5417.7530 * ((1/273.16) - (1/( dewpoint + 273.16)))]

**Temperature**

temperature = humidex - h;

h = (0.5555) * (e - 10.0)

e = 6.11 * exp[5417.7530 * ((1/273.16) - (1/( dewpoint + 273.16)))]

**Dewpoint**

dewpoint = (1.0/((1.0/273.16) - (log(e/6.11)/5417.7530))) - 273.16;

e = (h/0.5555)+10.0

h = humidex - temperature

now calculate for **all possible pairs**. You are given **any two of the parameters,find the other one**.

## Gotchas[edit]

Carefully do the calculations.They are complex.
Calculate for all possible pairs. **TD,DT,DH,HD,TH,HT**

## Notes[edit]

**Careful about the input.**

## Input[edit]

T 30 D 15 T 30.0 D 25.0 E

## Output[edit]

T 30.0 D 15.0 H 34.0 T 30.0 D 25.0 H 42.3