function F = nlsf1a(x)
%NLSF1A Nonlinear vector function
%

%   Copyright 1990-2000 The MathWorks, Inc.
%   $Revision: 1.3 $  $Date: 2000/06/16 22:25:01 $
%   Thomas F. Coleman 7-1-96

%
% Evaluate the vector function
  n = length(x);
  F = zeros(n,1);
  i=2:(n-1);
  F(i)= (3-2*x(i)).*x(i)-x(i-1)-2*x(i+1)+1;
  F(n)= (3-2*x(n)).*x(n)-x(n-1)+1;
  F(1)= (3-2*x(1)).*x(1)-2*x(2)+1;
