December 2017
Intermediate to advanced
386 pages
10h 42m
English
This code represents the execution of the function:
def F(x):... return np.cos(x) + x[::-1] - [1, 2, 3, 4] import scipy.optimize x = scipy.optimize.broyden1(F, [1,1,1,1], f_tol=1e-14) xarray([ 4.04674914, 3.91158389, 2.71791677, 1.61756251]) np.cos(x) + x[::-1] array([ 1., 2., 3., 4.])
Read now
Unlock full access