(sqrt(x*5.8)-(x*0.5*5.8)^2+x*5.8)/5 code example Example 1: sqrt(14^2+5^2) sqrt(14^2+5^2) =~ 14.866 Example 2: 1/2+sqrt(5)/2 Golden Ratio!!