function density = p03_density ( m, n, point ) %% P03_DENSITY returns the density for problem 03. % % Modified: % % 09 February 2006 % % Author: % % John Burkardt % % Reference: % % Per-Olof Persson and Gilbert Strang, % A Simple Mesh Generator in MATLAB, % SIAM Review, % Volume 46, Number 2, June 2004, pages 329-345. % % Parameters: % % Input, integer M, the spatial dimension. % % Input, integer N, the number of points. % % Input, real POINT(M,N), the coordinates of the points. % % Output, real DENSITY(N), the mesh density at each point. % density = ones ( 1, n );