Skip to content

Commit

Permalink
typo correction
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Razoumov committed Sep 23, 2024
1 parent b34c8cd commit e53093a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions episodes/04-conditionals.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@ while (c < niter && delta >= tolerance) do

Essentially, what we want is to repeat all the code inside the curly brackets until the number of iterations
is greater than or equal to `niter`, or the difference of temperature between iterations is less than
`tolerance`. (Note that in our case, as `delta` was not initialised when declared -and thus Chapel assigned it
the default real value 0.0-, we need to assign it a value greater than or equal to 0.001, or otherwise the
`tolerance`. (Note that in our case, as `delta` was not initialised when declared -- and thus Chapel assigned it
the default real value 0.0 -- we need to assign it a value greater than or equal to 0.001, or otherwise the
condition of the while statement will never be satisfied. A good starting point is to simple say that `delta`
is equal to `tolerance`).

Expand Down

0 comments on commit e53093a

Please sign in to comment.