Let a and b be two numbers between 0 and 1.
How to calculate `pow(a,10000)/(pow(a,10000)+pow(b,10000))`?

Ex:-
This following code gives -nan as output instead of 0.5

```
double a = 0.5,b = 0.5; 
cout<<pow(a,10000)/(pow(a,10000)+pow(b,10000)); 

```