function output = F1(x) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % here is the definition of function f % %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% output = cos(x);