Skip to content

Commit

Permalink
more ints
Browse files Browse the repository at this point in the history
  • Loading branch information
eggrobin committed Mar 28, 2024
1 parent a6a1991 commit 5a8e786
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion numerics/approximation_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ bool StreamingAdaptiveЧебышёвPolynomialInterpolantImplementation(
Difference<Value<Argument, Function>> upper_error_estimate;
Difference<Value<Argument, Function>> lower_error_estimate;
auto const midpoint =
Barycentre(std::pair(lower_bound, upper_bound), std::pair(1, 1));
Barycentre(std::pair(lower_bound, upper_bound), std::pair(1.0, 1.0));
bool const lower_interpolants_stop =
StreamingAdaptiveЧебышёвPolynomialInterpolantImplementation<max_degree>(
f,
Expand Down
2 changes: 1 addition & 1 deletion numerics/polynomial_in_чебышёв_basis_body.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ RealRootsOrDie(double const ε) const {
// Rescale from [-1, 1] to [lower_bound_, upper_bound_].
absl::btree_set<Argument> real_roots;
auto const midpoint =
Barycentre(std::pair{lower_bound_, upper_bound_}, std::pair{1, 1});
Barycentre(std::pair{lower_bound_, upper_bound_}, std::pair{1.0, 1.0});
auto const half_width = 0.5 * (upper_bound_ - lower_bound_);
for (auto const& scaled_real_root : scaled_real_roots) {
// Чебышёв polynomials don't make sense outside of [-1, 1] but they may
Expand Down

0 comments on commit 5a8e786

Please sign in to comment.