Long Equation

You can. The difference might be due to the fact that the Arduinos use float instead of double. But difficult to say without seeing your code.