16 N[0] = r[0] * (r[0] + 1) * r[1] * (r[1] + 1) / 4;
17 N[1] = r[0] * (r[0] - 1) * r[1] * (r[1] + 1) / 4;
18 N[2] = r[0] * (r[0] - 1) * r[1] * (r[1] - 1) / 4;
19 N[3] = r[0] * (r[0] + 1) * r[1] * (r[1] - 1) / 4;
20 N[4] = r[1] * (r[1] + 1) * (1 - r[0] * r[0]) / 2;
21 N[5] = r[0] * (r[0] - 1) * (1 - r[1] * r[1]) / 2;
22 N[6] = r[1] * (r[1] - 1) * (1 - r[0] * r[0]) / 2;
23 N[7] = r[0] * (r[0] + 1) * (1 - r[1] * r[1]) / 2;
24 N[8] = (1 - r[0] * r[0]) * (1 - r[1] * r[1]);
30 dN[0] = (r[0] + 0.5) * r[1] * (r[1] + 1) / 2;
31 dN[1] = (r[0] - 0.5) * r[1] * (r[1] + 1) / 2;
32 dN[2] = (r[0] - 0.5) * r[1] * (r[1] - 1) / 2;
33 dN[3] = (r[0] + 0.5) * r[1] * (r[1] - 1) / 2;
34 dN[4] = -r[0] * r[1] * (1 + r[1]);
35 dN[5] = (1 - r[1] * r[1]) * (r[0] - 0.5);
36 dN[6] = r[0] * r[1] * (1 - r[1]);
37 dN[7] = (1 - r[1] * r[1]) * (r[0] + 0.5);
38 dN[8] = 2 * r[0] * (r[1] * r[1] - 1);
40 dN[10] = (r[1] + 0.5) * r[0] * (r[0] - 1) / 2;
41 dN[11] = (r[1] - 0.5) * r[0] * (r[0] - 1) / 2;
42 dN[12] = (r[1] - 0.5) * r[0] * (r[0] + 1) / 2;
43 dN[13] = (1 - r[0] * r[0]) * (r[1] + 0.5);
44 dN[14] = r[0] * r[1] * (1 - r[0]);
45 dN[15] = (1 - r[0] * r[0]) * (r[1] - 0.5);
46 dN[16] = -r[0] * r[1] * (1 + r[0]);
47 dN[17] = 2 * r[1] * (r[0] * r[0] - 1);
48 dN[9] = (r[1] + 0.5) * r[0] * (r[0] + 1) / 2;