Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range 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: boostorg/math
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 45ae717e667ba339b0effc78631ba886be15e712
Choose a base ref
..
head repository: boostorg/math
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1c35f077b82b9d1100b31767003cd8103ec12c87
Choose a head ref
Showing with 3 additions and 2 deletions.
  1. +1 −0 include/boost/math/differentiation/autodiff.hpp
  2. +1 −1 test/cohen_acceleration_test.cpp
  3. +1 −1 test/cubic_hermite_test.cpp
1 change: 1 addition & 0 deletions include/boost/math/differentiation/autodiff.hpp
Original file line number Diff line number Diff line change
@@ -125,6 +125,7 @@ using get_type_at = typename type_at<RealType, Depth>::type;
// https://www.boost.org/libs/math/doc/html/math_toolkit/real_concepts.html
template <typename RealType, size_t Order>
class fvar {
protected:
std::array<RealType, Order + 1> v;

public:
2 changes: 1 addition & 1 deletion test/cohen_acceleration_test.cpp
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ void test_divergent()
{
auto g = Divergent<Real>();
Real x = -cohen_acceleration(g);
CHECK_ULP_CLOSE(log(pi<Real>()/2)/2, x, 80);
CHECK_ULP_CLOSE(log(pi<Real>()/2)/2, x, 135);
}

int main()
2 changes: 1 addition & 1 deletion test/cubic_hermite_test.cpp
Original file line number Diff line number Diff line change
@@ -175,7 +175,7 @@ void test_quadratic()
for (Real t = x0; t <= xmax; t+= 0.0125)
{
CHECK_ULP_CLOSE(t*t/2, s(t), 5);
CHECK_ULP_CLOSE(t, s.prime(t), 65);
CHECK_ULP_CLOSE(t, s.prime(t), 138);
}
}