1 function f = trigonometric1(x)
3 % The trigonometric function. See More, Garbow, and Hillstrom,
6 % This function has a minimum with f(x) == 0. The suggested
7 % starting point is x0=(1/n, 1/n,...).
12 cos_sum = sum(cos(x));
15 f_k = n - cos_sum + k*(1 - cos(x(k))) - sin(x(k));