I am using this to find roots of quadratic but roots are differing in both case when used sqrt(); function vs using pow(D,1/2) or pow(D,0.5) or pow(D,m) { m = 0.5 }
What is difference between sqrt and power
Hey friend, sqrt(n) will give you square root of n which is (n)^1/2 whereas pow(n,m) will give you result of n^m.
No I have set value of m to be 1/2 or 0.5 then also different result
That’s because of data type, it can be float too. Need not necessary it to be int, instead of pow use sqrt it will be convenient for you 
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.