I'm trying to plot the friction factor for Darcy-Weisbach formula based on the von Karman-Nikuradse formula for subsonic compressible flow:
$$ \frac{1}{\sqrt{f}}=2 \log \left(\operatorname{Re} \, \sqrt{f} \right)-0.8 \tag{1}$$
So I defined a function using NSolve:
fKN[R_] := NSolve[(1/Sqrt[f] == (2*Log[R*Sqrt[f]] - 0.8)), f]
And tried to plot it using
Plot[fKN[R], {R, 10^5, 10^6}]
But I get a bunch of errors:
NSolve::ifun
General::stop
I would apreciate if you could help me know what is the problem and how I can solve it?


NSolvedo not agree, what is the correct? – José Antonio Díaz Navas Feb 07 '18 at 15:02