Use MathHelper for equation evaluation