2 % automatic generation with sage
4 % OptFEM2DP1 [V1.2b1] - Copyright (C) 2013 CJS (LAGA)
6 % This file is part of OptFEM2DP1.
7 % OptFEM2DP1 is free software: you can redistribute it and/or modify
8 % it under the terms of the GNU General Public License as published by
9 % the Free Software Foundation, either version 3 of the License, or
10 % (at your option) any later version.
12 % OptFEM2DP1 is distributed in the hope that it will be useful,
13 % but WITHOUT ANY WARRANTY; without even the implied warranty of
14 % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 % GNU General Public License
for more details.
17 % You should have received a copy of the GNU General Public License
18 % along with
this program. If not, see <http:
20 Test(i).u=@(x,y) x + y;
22 Test(i).v=@(x,y) x - y;
24 Test(i).w=@(x,y) 2.*x + y;
26 Test(i).Mass=0.0000000000000000;
27 Test(i).MassW=0.08333333333333333;
28 Test(i).Stiff=0.0000000000000000;
31 Test(i).u=@(x,y) 3.*x + 2.*y - 1;
32 Test(i).cu=
'3*x + 2*y - 1';
33 Test(i).v=@(x,y) 2.*x - 2.*y + 1;
34 Test(i).cv=
'2*x - 2*y + 1';
35 Test(i).w=@(x,y) 2.*x - 5.*y;
36 Test(i).cw=
'2*x - 5*y';
37 Test(i).Mass=1.666666666666667;
38 Test(i).MassW=-1.083333333333333;
39 Test(i).Stiff=2.000000000000000;
42 Test(i).u=@(x,y) 3.*x.^2 - x.*y + 2.*y.^2;
43 Test(i).cu=
'3*x^2 - x*y + 2*y^2';
44 Test(i).v=@(x,y) 2.*x.^2 + x.*y - 3.*y.^2 - y;
45 Test(i).cv=
'2*x^2 + x*y - 3*y^2 - y';
46 Test(i).w=@(x,y) x.*y;
48 Test(i).Mass=-0.7500000000000000;
49 Test(i).MassW=-0.3416666666666667;
50 Test(i).Stiff=0.8333333333333333;
53 Test(i).u=@(x,y) 3.*x.^2 - 4.*x.*y + 2.*y.^2 - x + 4.*y + 4;
54 Test(i).cu=
'3*x^2 - 4*x*y + 2*y^2 - x + 4*y + 4';
55 Test(i).v=@(x,y) 2.*x.^2 + 2.*x.*y - 3.*y.^2 - 2.*y + 1;
56 Test(i).cv=
'2*x^2 + 2*x*y - 3*y^2 - 2*y + 1';
57 Test(i).w=@(x,y) x.^2 + y.^2 - 3;
58 Test(i).cw=
'x^2 + y^2 - 3';
59 Test(i).Mass=-0.3611111111111111;
60 Test(i).MassW=0.2805555555555556;
61 Test(i).Stiff=-17.33333333333333;
64 Test(i).u=@(x,y) 3.*x.^3 - 2.*x.*y + 2.*y.^2 + 3.*x;
65 Test(i).cu=
'3*x^3 - 2*x*y + 2*y^2 + 3*x';
66 Test(i).v=@(x,y) -3.*y.^3 + 2.*x.^2 + 2.*x.*y - 2.*y;
67 Test(i).cv=
'-3*y^3 + 2*x^2 + 2*x*y - 2*y';
68 Test(i).w=@(x,y) x.^2.*y + x.*y.^2 - 2.*x.*y + 1;
69 Test(i).cw=
'x^2*y + x*y^2 - 2*x*y + 1';
70 Test(i).Mass=-0.5708333333333333;
71 Test(i).MassW=-0.4377380952380952;
72 Test(i).Stiff=10.33333333333333;
75 Test(i).u=@(x,y) 3.*x.^4 + 3.*x.^3 + 2.*y.^2;
76 Test(i).cu=
'3*x^4 + 3*x^3 + 2*y^2';
77 Test(i).v=@(x,y) 2.*y.^4 - 3.*y.^3 + 2.*x.^2;
78 Test(i).cv=
'2*y^4 - 3*y^3 + 2*x^2';
79 Test(i).w=@(x,y) x.^4 + y.^3 - 3;
80 Test(i).cw=
'x^4 + y^3 - 3';
81 Test(i).Mass=1.400515873015873;
82 Test(i).MassW=-3.020477994227994;
83 Test(i).Stiff=16.00000000000000;
86 Test(i).u=@(x,y) x.^5 + 3.*x.^3.*y.^2 - y.^5;
87 Test(i).cu=
'x^5 + 3*x^3*y^2 - y^5';
88 Test(i).v=@(x,y) 3.*x.^5 + 2.*x.^3.*y.^2 + 2.*y.^5 + 2.*x.^2.*y.^2;
89 Test(i).cv=
'3*x^5 + 2*x^3*y^2 + 2*y^5 + 2*x^2*y^2';
90 Test(i).w=@(x,y) -3.*x.^3.*y.^2 + x.^2 + y.^2 + 1;
91 Test(i).cw=
'-3*x^3*y^2 + x^2 + y^2 + 1';
92 Test(i).Mass=0.9669672919672920;
93 Test(i).MassW=1.011666243809101;
94 Test(i).Stiff=18.73777777777778;
97 Test(i).u=@(x,y) x.^6 - x.^5 + 3.*x.^3.*y.^2 - y.^5;
98 Test(i).cu=
'x^6 - x^5 + 3*x^3*y^2 - y^5';
99 Test(i).v=@(x,y) y.^6 + 3.*x.^5 + 2.*x.^3.*y.^2 + 2.*y.^5 + 2.*x.^2.*y.^2;
100 Test(i).cv=
'y^6 + 3*x^5 + 2*x^3*y^2 + 2*y^5 + 2*x^2*y^2';
101 Test(i).w=@(x,y) 4.*x.^6 - 3.*x.^3.*y.^3 - y.^6;
102 Test(i).cw=
'4*x^6 - 3*x^3*y^3 - y^6';
103 Test(i).Mass=0.4305452484023913;
104 Test(i).MassW=0.5553725794902266;
105 Test(i).Stiff=6.920317460317460;
108 Test(i).u=@(x,y) cos(15.*x - 30.*y);
109 Test(i).cu=
'cos(15*x - 30*y)';
110 Test(i).v=@(x,y) sin(x + y);
111 Test(i).cv=
'sin(x + y)';
112 Test(i).w=@(x,y) sin(y).*cos(x);
113 Test(i).cw=
'sin(y)*cos(x)';
114 Test(i).Mass=-0.0003585152055318015;
115 Test(i).MassW=-0.001053631412661409;
116 Test(i).Stiff=-0.02035172033430347;