C - separate function for approx. Lambda computation