I need to do a Riemann upper sum with python that resolve this function x^2+2 1,4 n=3
Manually the result is 27 but with the code is 20
def f(x): return