I am running a definite integral but the sympy gives me a different answer. I don't know what went wrong.
The equation integrated by Wolfram, the result is as expected 1.097

import sympy as sp
y=sp.Symbol('y')
fy=(y-2.4)**2*sp.sqrt(y)*0.1875
print(sp.integrate(fy,(y,0,4)))
This is giving me 0.485255751108899
This looks like a bug to do with floats that can be problematic in integration:
Firstly don't use floats with sympy unless you have a good reason e.g. use
Rational('0.1')orS(1)/10etc rather than0.1. Thensimplifyfunction can be used to convert float to Rational (it tries to guess what rational you really meant).Secondly this is a bug so it should be reported to github rather than SO: https://github.com/sympy/sympy/issues