Skip to content

Commit d1cfad2

Browse files
authored
semicolon after e
1 parent 63668dd commit d1cfad2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/num_methods/simulated_annealing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ int main() {
185185
- The effect of the difference in energies, $E_{next} - E$, on the PAF can be increased/decreased by increasing/decreasing the base of the exponent as shown below:
186186
```cpp
187187
bool P(double E, double E_next, double T, mt19937 rng) {
188-
double e = 2 // set e to any real number greater than 1
188+
double e = 2; // set e to any real number greater than 1
189189
double prob = pow(e,-(E_next-E)/T);
190190
if (prob > 1)
191191
return true;

0 commit comments

Comments
 (0)