invhartley
-
constexpr Complex invhartley(Complex (*f)(Complex), const Complex &z) noexcept
Performs the inverse Hartley integral transform [1] of a complex function.
Parameters
Returns
- type Complex
A complex number.
As the Hartley transform is its own inverse, this function simply performs the hartley transform.
Example
auto fn = [](Complex t) { return exp(-t * t); };
Complex z = 1;
std::cout << invhartley(fn, z) << "\n";
Output:
0.550782 + 0j // True result: 0.550695 + 0j
References