Indian Math Bhaskara and extensions fit to normalized cosine and residuals