0

For some weird odd reason, sqrt(2/num) does not work.

```
cout << " sqrt(2): " << sqrt(2) << endl;
cout << " sqrt(num): " << sqrt(num) << endl;
cout << " sqrt(2)/sqrt(num): " << sqrt(2)/sqrt(num) << endl;
cout << " sqrt(2/num): " << sqrt(2/num) << endl;
```

results in

```
sqrt(2): 1.41421
sqrt(num): 2.82843
sqrt(2)/sqrt(num): 0.5
sqrt(2/num): 0
```

Can anybody tell me why? I am currently using sqrt(2)/sqrt(num) but I can't really think of a good reason why sqrt(2/num) shoudn't work..