Skip to content

Commit

Permalink
Merge pull request #56 from KronosTheLate/fix_string_concatenation_error
Browse files Browse the repository at this point in the history
Fix string concatenation error
  • Loading branch information
ChrisRackauckas authored Mar 10, 2022
2 parents 2fada7a + d1cac9b commit 70eef21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bisection.jl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ function perform_step(solver::BracketingImmutableSolver, alg::Bisection, cache)
if cache.state == 0
fzero = zero(fl)
fl * fr > fzero && error("Bracket became non-containing in between iterations. This could mean that "
+ "input function crosses the x axis multiple times. Bisection is not the right method to solve this.")
* "input function crosses the x axis multiple times. Bisection is not the right method to solve this.")

mid = (left + right) / 2

Expand Down
2 changes: 1 addition & 1 deletion src/falsi.jl
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function perform_step(solver, alg::Falsi, cache)

fzero = zero(fl)
fl * fr > fzero && error("Bracket became non-containing in between iterations. This could mean that "
+ "input function crosses the x axis multiple times. Bisection is not the right method to solve this.")
* "input function crosses the x axis multiple times. Bisection is not the right method to solve this.")

mid = (fr * left - fl * right) / (fr - fl)

Expand Down

0 comments on commit 70eef21

Please sign in to comment.