Converting hard integral to lambda function with lambdify
问题 I would like to lambdify the function Integral(t**t,(t,0,x)) . It works, but my new function, which was returned by lambdify , doesn't return a number but only sympy.integrals.integrals.Integral class. But I don't want that, I want it to return a float number. Here is my code: import sympy as sp import numpy as np f = sp.lambdify(x,sp.integrate(t**t,(t,0,x))) print(f(2)) #return Integral(t**t, (t, 0, 2)) #but i want 2.83387674524687 回答1: lambdify doesn't support scipy.integrate.quad directly