Figure 2.29:

Hat functions for N=2.

Code for Figure 2.29

Text of the GNU GPL.

main.m


1
2
3
points = [ 0,   0, 0.5,   1,   0, 1, 0.5, 0,   0, 0, 0.5, 0
           0.5, 1,   1,   0, 0.5, 0,   1, 0, 0.5, 0,   1, 1];
save "hatfunc.dat" points