function octave_mistake_test03 ( )

%*****************************************************************************80
%
%% octave_mistake_test03() tries to create an array using cos() and sin().
%
%  Discussion:
%
%    We want to create the vector:
%
%     [ cos ( alpha ), sin ( alpha ) ]
%
%    but our statement is not accepted.
%
%    Then we try some variations, and they work.  Why?
%
%    Do spaces matter?  Sometimes!
%
%  Licensing:
%
%    This code is distributed under the MIT license.
%
%  Modified:
%
%    04 July 2016
%
%  Author:
%
%    John Burkardt
%
  fprintf ( 1, '\n' );
  fprintf ( 1, 'octave_mistake_test03():\n' );
  fprintf ( 1, '  v = [ cos ( alpha ), sin ( alpha ) ] fails.\n' );

  alpha = pi / 3.0
%
%  #1:
%
  v1 = [ cos(alpha), sin(alpha) ]
%
%  #2:
%
  ca = cos ( alpha )
  sa = sin ( alpha )
  v2 = [ ca, sa ]
%
%  #3:  Causes an error!
%
  fprintf ( 1, '\n' );
  fprintf ( 1, '  The statement "v3 = [ cos ( alpha ), sin ( alpha ) ]"\n' );
  fprintf ( 1, '  will cause an error:\n' );
  fprintf ( 1, '  Error using cos.  Not enough input arguments.\n' );

  return
end

