Getting rid of cmath