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: aa789a2f3879
Choose a base ref
...
head repository: mockingbirdnest/Principia
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 33e0b7749051
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Oct 17, 2020

  1. Copy the full SHA
    deaec7c View commit details
  2. Merge pull request #2767 from pleroy/Tolerances

    Adjust tolerances for Linux/macOS
    pleroy authored Oct 17, 2020

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    33e0b77 View commit details
Showing with 6 additions and 6 deletions.
  1. +6 −6 numerics/poisson_series_test.cpp
12 changes: 6 additions & 6 deletions numerics/poisson_series_test.cpp
Original file line number Diff line number Diff line change
@@ -488,11 +488,11 @@ TEST_F(PiecewisePoissonSeriesTest, Action) {
auto const d1 = p_ - pp_;
auto const d2 = pp_ - p_;
EXPECT_THAT(d1(t0_ + 0.5 * Second),
AlmostEquals((2 + Sqrt(2)) / 4, 1));
AlmostEquals((2 + Sqrt(2)) / 4, 1, 2));
EXPECT_THAT(d1(t0_ + 1.5 * Second),
AlmostEquals((6 + 5 * Sqrt(2)) / 4, 1));
EXPECT_THAT(d2(t0_ + 0.5 * Second),
AlmostEquals((-2 - Sqrt(2)) / 4, 1));
AlmostEquals((-2 - Sqrt(2)) / 4, 1, 2));
EXPECT_THAT(d2(t0_ + 1.5 * Second),
AlmostEquals((-6 - 5 * Sqrt(2)) / 4, 1));
}
@@ -516,11 +516,11 @@ TEST_F(PiecewisePoissonSeriesTest, ActionMultiorigin) {
auto const s1 = p + pp_;
auto const s2 = pp_ + p;
EXPECT_THAT(s1(t0_ + 0.5 * Second),
AlmostEquals((10 - 3 * Sqrt(2)) / 4, 0));
AlmostEquals((10 - 3 * Sqrt(2)) / 4, 0, 1));
EXPECT_THAT(s1(t0_ + 1.5 * Second),
AlmostEquals((6 + Sqrt(2)) / 4, 1));
EXPECT_THAT(s2(t0_ + 0.5 * Second),
AlmostEquals((10 - 3 * Sqrt(2)) / 4, 0));
AlmostEquals((10 - 3 * Sqrt(2)) / 4, 0, 1));
EXPECT_THAT(s2(t0_ + 1.5 * Second),
AlmostEquals((6 + Sqrt(2)) / 4, 1));
}
@@ -530,11 +530,11 @@ TEST_F(PiecewisePoissonSeriesTest, ActionMultiorigin) {
EXPECT_THAT(d1(t0_ + 0.5 * Second),
AlmostEquals((2 + Sqrt(2)) / 4, 0, 2));
EXPECT_THAT(d1(t0_ + 1.5 * Second),
AlmostEquals((6 + 5 * Sqrt(2)) / 4, 0));
AlmostEquals((6 + 5 * Sqrt(2)) / 4, 0, 1));
EXPECT_THAT(d2(t0_ + 0.5 * Second),
AlmostEquals((-2 - Sqrt(2)) / 4, 0, 2));
EXPECT_THAT(d2(t0_ + 1.5 * Second),
AlmostEquals((-6 - 5 * Sqrt(2)) / 4, 0));
AlmostEquals((-6 - 5 * Sqrt(2)) / 4, 0, 1));
}
{
auto const p1 = p * pp_;