I am using asin to calculate the angle. The code is as below :
double FindAngle(const double theValue) { return asin(theValue); }
Find
double FindAngle(const double theValue) { return abs(asin(value)); }