সম্পাদনা
from scipy import optimize result = optimize.minimize_scalar( lambda x: (x - 5) ** 2 + 3 ) print(result.x) print(result.fun)
পূর্বরূপ