function y = funk2(x)
% funk2 - function y=x'*x
%   
% 
%   Syntax: 
%           y = funk2(x)
%   Arguments: 
%           x - an nx1 matrix
%   Returns: 
%           y - a real number
%           
%   Description:
%
%           Computes the function y=x'*x .
%           
%   See also:
%

%----------------------------------------------------------------------
%   Bugs:
%
%   Date created: 
%          2000-10-21
%   Author:
%          Stig Larsson
%
%   Change history:
%
%                              +---------------------------------------+ 
%                              |     Matematik Kf/Kb                   | 
%                              |     Copyright (c) 2000                | 
%                              |                                       | 
%                              |     Stig Larsson                      | 
%                              |     Mathematics                       | 
%                              |     Chalmers University of Technology | 
%                              |     SE-412 96 Goteborg                | 
%                              |     SWEDEN                            |     
%                              |     stig@math.chalmers.se             |     
%                              |     http://www.math.chalmers.se/~stig |     
%------------------------------+---------------------------------------+
y=x'*x;

