Need to link with maths library.