invhartley

constexpr Complex invhartley(Complex (*f)(Complex), const Complex &z) noexcept

Performs the inverse Hartley integral transform [1] of a complex function.

Parameters

Complex (*f)(Complex)

A complex function.

const Complex &z

A complex number.

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