created utility method that validates and corrects floating points
inaccuracies for arcsine and arccosine if out of range