Using cmath library