Why is complex-step differentiation unreliable for a function containing abs(x) or real-only clipping?
MathematicsLevel: AdvancedDerivative and probability numerics
Why is complex-step differentiation unreliable for a function containing abs(x) or real-only clipping?
Hints
- Check complex analyticity.
- Follow the imaginary component.
Answer
This answer is part of mentoring
Advanced questions come with a full breakdown and a mock interview with a working quant researcher. The first call is free.
Source and licence: SciPy — numerical differentiation · BSD-3-Clause · answer: Quantoros editorial