Skip to content

Commit dda9457

Browse files
tjheiprj-
authored andcommitted
fix typos in optimization
1 parent 22eb38e commit dda9457

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/documentation/algorithms-and-optimization.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ The parameters of these three functions are:
8484
fespace Ph(Th, P0);
8585
Ph alpha; //store df(|nabla u|^2)
8686
87-
// The functionn J
87+
// The function J
8888
//J(u) = 1/2 int_Omega f(|nabla u|^2) - int_Omega u b
8989
func real J (real[int] & u){
9090
Vh w;
@@ -94,7 +94,7 @@ The parameters of these three functions are:
9494
return r;
9595
}
9696
97-
// The gradiant of J
97+
// The gradient of J
9898
func real[int] dJ (real[int] & u){
9999
Vh w;
100100
w[] = u;
@@ -224,7 +224,7 @@ Example of usage for BFGS or CMAES
224224
return s;
225225
}
226226
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)
228228
func real[int] DJ (real[int] &u){
229229
for (int i = 0; i < u.n; i++)
230230
u[i] = (i+1)*u[i];

0 commit comments

Comments
 (0)