Fixed not-squared-beta in approximation-condition
declared a number of function inline, no need to really have them around if they're inlined anyway