Here are guidelines for proper construction
The Colebrook equation can be solved by using the Lambert W function. Algorithmic routines are also given to do the calculation