1 function lcoords = lagrange_nodes_lcoord(pdeg);
2 %
function lcoords = lagrange_nodes_lcoors(pdeg);
4 %
function returning the local coordinates of the Lagrange nodes of
5 % the reference triangle. Result is a numlagrangepoints x 3 matrix
7 % Bernard Haasdonk 12.1.2011
10 error(
'pdeg not supported!');
15 lcoords = [0,0; 1,0; 0,1];
17 lcoords = [0,0; 0.5,0; 1,0; 0,0.5; 0.5,0.5; 0,1];
19 lcoords = [0,0; 1,0; 2,0; 3,0; 0,1; 1,1; 2,1; ...
22 % lcoords = zeros((pdeg+1)*(pdeg+2)/2,3);
23 c1 = (0:pdeg)
'*ones(1,pdeg+1);
27 lcoords = [c1(i),c2(i)]/pdeg;