MCPcopy Create free account
hub / github.com/Gecode/gecode / sin

Function sin

gecode/third-party/boost/numeric/interval/transc.hpp:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80template<class T, class Policies> inline
81interval<T, Policies> sin(const interval<T, Policies>& x)
82{
83 typedef interval<T, Policies> I;
84 if (interval_lib::detail::test_input(x))
85 return I::empty();
86 typename Policies::rounding rnd;
87 typedef typename interval_lib::unprotect<I>::type R;
88 I r = cos((const R&)x - interval_lib::pi_half<R>());
89 (void)&rnd;
90 return r;
91}
92
93template<class T, class Policies> inline
94interval<T, Policies> tan(const interval<T, Policies>& x)

Callers

nothing calls this directly

Calls 3

test_inputFunction · 0.85
emptyFunction · 0.70
cosFunction · 0.70

Tested by

no test coverage detected