acos.s fix: use the formula acos(x) = atan2(sqrt(1-x),sqrt(1+x))