|
| | Cos () |
| constexpr std::string | name_impl () const |
| bool | evaluate_impl (const Scalar x, Scalar &out) const |
| bool | first_derivative_impl (const Scalar x, Scalar &out) const |
| bool | second_derivative_impl (const Scalar x, Scalar &out) const |
| | Function () |
| constexpr std::string | name () const |
| bool | evaluate (const Scalar &x, Scalar &out) const |
| bool | jacobian (const Scalar &x, FirstDerivative &out) const |
| bool | hessian (const Scalar &x, SecondDerivative &out) const |
| | FunctionBase () |
| constexpr std::string | name () const |
| bool | evaluate (const Scalar &x, Scalar &out) const |
| bool | first_derivative (const Scalar &x, FirstDerivative &out) const |
| bool | second_derivative (const Scalar &x, SecondDerivative &out) const |
| constexpr Integer | input_dimension () const |
| constexpr Integer | output_dimension () const |
| const std::vector< Scalar > & | solutions () const |
| const std::vector< Scalar > & | guesses () const |
| const Scalar & | solution (const Integer i) const |
| const Scalar & | guess (const Integer i) const |
| bool | is_solution (const Scalar &x, const Scalar tol=FunctionBase::SQRT_EPSILON) const |
Class container for the cosine function, which is defined as:
\[f(x) = \cos(x) \text{.}
\]
The function has roots at \(x = i\pi\), with \(f(x) = 0\), and minima at \(x = -\pi + 2i\pi\), with \(f(x) = -1\) and \(i = 0, 1, \ldots,
n\). The initial guesses are generated on the range \(x \in \left[-\pi,
\pi\right]\).
- Template Parameters
-
| Scalar | Floating-point number type. |