Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 361476439d71
Choose a base ref
...
head repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cf7f1460d6be
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 7, 2020

  1. Adjust tolerances for Clang.

    pleroy committed Oct 7, 2020
    Copy the full SHA
    4bb26b2 View commit details
  2. Merge pull request #2754 from pleroy/Tolerances

    Adjust tolerances for Clang
    pleroy authored Oct 7, 2020
    Copy the full SHA
    cf7f146 View commit details
Showing with 4 additions and 4 deletions.
  1. +4 −4 numerics/frequency_analysis_test.cpp
8 changes: 4 additions & 4 deletions numerics/frequency_analysis_test.cpp
Original file line number Diff line number Diff line change
@@ -311,7 +311,7 @@ TEST_F(FrequencyAnalysisTest, PoissonSeriesVectorProjection) {
t_min, t_max);
for (int i = 0; i <= 100; ++i) {
EXPECT_THAT(projection4(t0_ + i * Radian / ω),
AlmostEquals(series(t0_ + i * Radian / ω), 0, 128));
AlmostEquals(series(t0_ + i * Radian / ω), 0, 384));
}

// Projection on a 5th degree basis is also accurate.
@@ -322,7 +322,7 @@ TEST_F(FrequencyAnalysisTest, PoissonSeriesVectorProjection) {
t_min, t_max);
for (int i = 0; i <= 100; ++i) {
EXPECT_THAT(projection5(t0_ + i * Radian / ω),
AlmostEquals(series(t0_ + i * Radian / ω), 0, 128));
AlmostEquals(series(t0_ + i * Radian / ω), 0, 384));
}

// Projection on a 3rd degree basis introduces significant errors.
@@ -494,7 +494,7 @@ TEST_F(FrequencyAnalysisTest, PoissonSeriesIncrementalProjectionSecular) {
: ω_index == 3
? AllOf(Gt(7.5e-3 * Metre), Lt(5.4 * Metre))
: AllOf(Gt(3.7e-15 * Metre),
Lt(2.1e-11 * Metre)))
Lt(4.4e-11 * Metre)))
<< ω_index;
}
if (ω_index == ωs.size()) {
@@ -515,7 +515,7 @@ TEST_F(FrequencyAnalysisTest, PoissonSeriesIncrementalProjectionSecular) {
EXPECT_THAT(
projection4(t_min + i * (t_max - t_min) / 100),
RelativeErrorFrom(series(t_min + i * (t_max - t_min) / 100),
AllOf(Gt(1.9e-16), Lt(1.3e-12))));
AllOf(Gt(1.9e-16), Lt(3.5e-12))));
}
}