Problem with arduino maths

You shouldn't be using either double OR float unless you REALLY have to.

Without a floating point unit, all floating point maths will be very slow.

If at all possible use integer maths (multiply up to use bigger values) or fixed point arithmetic (like Q15 etc).