File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ The parameters of these three functions are:
84
84
fespace Ph(Th, P0);
85
85
Ph alpha; //store df(|nabla u|^2)
86
86
87
- // The functionn J
87
+ // The function J
88
88
//J(u) = 1/2 int_Omega f(|nabla u|^2) - int_Omega u b
89
89
func real J (real[int] & u){
90
90
Vh w;
@@ -94,7 +94,7 @@ The parameters of these three functions are:
94
94
return r;
95
95
}
96
96
97
- // The gradiant of J
97
+ // The gradient of J
98
98
func real[int] dJ (real[int] & u){
99
99
Vh w;
100
100
w[] = u;
@@ -224,7 +224,7 @@ Example of usage for BFGS or CMAES
224
224
return s;
225
225
}
226
226
227
- //the gradiant of J (this is a affine version (the RHS is in)
227
+ //the gradient of J (this is a affine version (the RHS is in)
228
228
func real[int] DJ (real[int] &u){
229
229
for (int i = 0; i < u.n; i++)
230
230
u[i] = (i+1)*u[i];
You can’t perform that action at this time.
0 commit comments