adding 2 arcsin(1) algorithm