scipys quadrature function complains about perfectly sane lambda?
scipys quadrature function complains about perfectly sane lambda? Question: I have 2 versions of a snippet one works one doesn’t, this works: f = lambda x : x * 2.0 * pi print(scipy.integrate.quadrature(f, 0.0, 1.0)) This fails: f = lambda x : math.exp(x * 2.0 * pi)` print(scipy.integrate.quadrature(f, 0.0, 1.0)) With error: TypeError: only size-1 …