f = cw_swamee_jain(d,e,re)
Calculate the Swamee-Jain approximation of the Colebrook-White equation for flow in the region of as well as .
Pipe internal diameter ().
Pipe effective roughness .
Reynolds number
Returns Darcy friction factor , dimensionless.
The given Reynolds number is out of range.
The given pipe roughness/diameter fraction is out of range.
The given internal diameter of the pipe must be above zero.