Added forgotten 'include math.h'