SCIPY 常数
SCIPY 优化器
SCIPY 稀疏数据
SCIPY 图形
SCIPY 空间数据
SCIPY 插值
SCIPY Matlab 数组
SCIPY 显著性测试

Menu
×
×
正确

练习:

插入缺失部分以最小化方程,使用TNC方法:

from scipy.optimize import minimize def eqn(x): return x**2 + x + 2 mymin = minimize(eqn, 0, method='TNC')
from scipy.optimize import minimize def eqn(x): return x**2 + x + 2 mymin = minimize(eqn, 0, method="TNC")
from scipy.optimize import minimize def eqn(x): return x**2 + x + 2 mymin = minimize(eqn, 0, method = 'TNC')
from scipy.optimize import minimize def eqn(x): return x**2 + x + 2 mymin = minimize(eqn, 0, method = "TNC")

不正确

点击 此处 重试

正确

下一题 ❯
from scipy.optimize import minimize

def eqn(x):
  return x**2 + x + 2

mymin = (eqn, 0, )







×

重置分数?