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

Commits on Dec 31, 2020

  1. Correct expected value.

    pleroy committed Dec 31, 2020
    Copy the full SHA
    a649313 View commit details
  2. Copy the full SHA
    1c20ddb View commit details
  3. Merge pull request #2835 from pleroy/Tolerances

    Tolerances for macOS and Linux
    pleroy authored Dec 31, 2020
    Copy the full SHA
    365aef3 View commit details
Showing with 6 additions and 5 deletions.
  1. +6 −5 numerics/poisson_series_test.cpp
11 changes: 6 additions & 5 deletions numerics/poisson_series_test.cpp
Original file line number Diff line number Diff line change
@@ -51,6 +51,7 @@ using testing_utilities::IsNear;
using testing_utilities::VanishesBefore;
using testing_utilities::RelativeErrorFrom;
using testing_utilities::operator""_⑴;
using ::testing::AnyOf;

class PoissonSeriesTest : public ::testing::Test {
protected:
@@ -385,14 +386,14 @@ TEST_F(PoissonSeriesTest, PoorlyConditionedInnerProduct2) {
{/*sin=*/Degree0::PeriodicPolynomial({}, t_mid),
/*cos=*/Degree0::PeriodicPolynomial({1}, t_mid)}}});


{
auto const product = InnerProduct(f, g,
apodization::Dirichlet<HornerEvaluator>(t_min, t_max),
t_min, t_max);
EXPECT_THAT(
product,
RelativeErrorFrom(+2.026745255082731e-11, IsNear(0.33_⑴)));
EXPECT_THAT(product,
RelativeErrorFrom(
+2.0267451184776034270e-11,
AnyOf(IsNear(0.26_⑴), IsNear(0.33_⑴), IsNear(0.38_⑴))));
}
{
auto const product = (PointwiseInnerProduct(f, g) *
@@ -401,7 +402,7 @@ TEST_F(PoissonSeriesTest, PoorlyConditionedInnerProduct2) {
(t_max - t_min);
EXPECT_THAT(
product,
RelativeErrorFrom(+2.026745255082731e-11, IsNear(4010_⑴)));
RelativeErrorFrom(+2.0267451184776034270e-11, IsNear(4010_⑴)));
}
}