linearApproximation
-
constexpr Complex linearApproximation(Complex (*f)(Complex), const Complex &z) noexcept
Evaluates the linear Taylor approximation of a complex function at a point \(z\) [1].
Parameters
Returns
- type Complex
A complex number.
This function simply returns the linear approximation of \(f\) evaluated at a point \(z\), that is:
\[f(z) \approx f(z_0) + f'(z_0)(z - z_0)\]
Example
auto fn = [](Complex z) { return sin(z); };
std::cout << linearApproximation(fn, 1 + 1_j, 1) << "\n";
Output:
0.30956 - 0.198766j
References