emsr / polynomial

A C++ polynomials and related algorithms.
6 stars 3 forks source link

Make member functions to evaluate the integral or derivative of the polynomial at a point. #12

Closed emsr closed 3 years ago

emsr commented 5 years ago
  /**
   * Evaluate the derivative polynomial at the point x.
   */
  template<typename _Up>
    auto
    derivative(_Up __x) const
    -> delctype(value_type{} * _Up{});

  /**
   * Evaluate the integral polynomial with given integration constant at the point x.
   */
  template<typename _Up>
    auto
    integral(value_type __c, _Up __x) const
    -> delctype(value_type{} * _Up{});
emsr commented 3 years ago

Done.