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

Commits on Jun 28, 2019

  1. Fix errors found on Linux.

    pleroy committed Jun 28, 2019
    Copy the full SHA
    b55c634 View commit details

Commits on Jun 29, 2019

  1. Merge pull request #2224 from pleroy/Linux

    Fix errors found on Linux
    pleroy authored Jun 29, 2019
    Copy the full SHA
    305e303 View commit details
Showing with 5 additions and 5 deletions.
  1. +5 −5 numerics/elliptic_integrals.cpp
10 changes: 5 additions & 5 deletions numerics/elliptic_integrals.cpp
Original file line number Diff line number Diff line change
@@ -178,14 +178,14 @@ class FukushimaEllipticDsBsMaclaurin {

template<typename Tuple, int... k>
struct Generator<Tuple, std::index_sequence<k...>> {
template<int k>
template<int j>
static double ComputeBsCoefficient(Tuple const& tuple) {
if constexpr (k == 0) {
if constexpr (j == 0) {
return 1.0;
} else {
return std::get<k>(tuple) -
std::get<k - 1>(tuple) * (static_cast<double>(2 * k - 1) /
static_cast<double>(2 * k + 1));
return std::get<j>(tuple) -
std::get<j - 1>(tuple) * (static_cast<double>(2 * j - 1) /
static_cast<double>(2 * j + 1));
}
}