Template Function sdsl::maxMinOnTrigRange
Defined in File math_utils.hpp
Function Documentation
-
template<typename FT>
void sdsl::maxMinOnTrigRange(FT a, FT b, FT x1, FT x2, FT &max, FT &min) Returns the maximum and minimum of the function h(x) = acos(x) + bsin(x)
Returns the maximum and minimum of the function h(x) = acos(x) + bsin(x) on the interval [x1, x2], where a, b are given contants.
Note
We assume that [x1, x2] \subseteq [0, 2pi]
- Template Parameters:
FT – Field type. Usually double.
- Parameters:
a –
b –
x1 –
x2 –
max – Reference to max output (de-facto return)
min – Reference to min output (de-facto return)