Skip to content

Commit

Permalink
negminabs test
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlap committed Oct 8, 2023
1 parent 01e194d commit fae5bc2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions include/kyosu/types/impl/math.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ namespace kyosu::_
auto p = pure(z);
auto az = abs(p);
auto c = expm1(complex(real(z), az));

// auto r = exp(real(z));
// auto w = r*eve::sinc(az);
return real(c) + ipart(c)*sign(p);
}
}
Expand Down
2 changes: 1 addition & 1 deletion test/unit/function/negminabs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@ TTS_CASE_WITH ( "Check kyosu::negminabs over quaternion"
using type = kyosu::quaternion_t<T>;
auto q0 = type(r0,i0,j0,k0);
auto q1 = type(r1,i1,j1,k1);
TTS_RELATIVE_EQUAL(kyosu::negminabs(q0, q1), eve::negmin(kyosu::abs(q0), kyosu::abs(q1)), 1e-5);
TTS_RELATIVE_EQUAL(kyosu::negminabs(q0, q1), -eve::min(kyosu::abs(q0), kyosu::abs(q1)), 1e-5);
};

0 comments on commit fae5bc2

Please sign in to comment.