Skip to content

Commit

Permalink
A TODO.
Browse files Browse the repository at this point in the history
  • Loading branch information
pleroy committed Dec 26, 2023
1 parent 3a8ecc6 commit 287e973
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions numerics/чебышёв_series_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,8 @@ Value ЧебышёвSeries<Value, Argument>::Evaluate(Argument const& argument)
one_over_width_;
// We have to allow |scaled_argument| to go slightly out of [-1, 1] because of
// computation errors. But if it goes too far, something is broken.
// TODO(phl): This should use DCHECK but these macros don't work because the
// Principia projects don't define NDEBUG.
#ifdef _DEBUG
CHECK_LE(scaled_argument, 1.1);
CHECK_GE(scaled_argument, -1.1);
#endif
DCHECK_LE(scaled_argument, 1.1);
DCHECK_GE(scaled_argument, -1.1);

return helper_.EvaluateImplementation(scaled_argument);
}
Expand Down

0 comments on commit 287e973

Please sign in to comment.