import numpy as np import matplotlib.pyplot as plt # 目標函數:y=x^2 def func(x): return np.square(x) # 目標函數一階導數:dy/dx=2*x def dfunc(x): return 2 * x ...
確定! 回上一頁