Skip to content

Commit 07a1c78

Browse files
Update src/epsilons.jl
1 parent 5f53259 commit 07a1c78

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/epsilons.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ For complex step differentiation, the step size is simply the machine epsilon `e
8585
which provides optimal accuracy since complex step differentiation doesn't suffer from
8686
subtractive cancellation errors.
8787
88+
!!! warn
89+
90+
`f` must be a function of a real variable which also happens to be complex analytic when the input is complex!
91+
8892
# Arguments
8993
- `::Val{:complex}`: Finite difference type indicator for complex step differentiation
9094
- `x::T`: Point at which to compute the step size (unused, type determines epsilon)

0 commit comments

Comments
 (0)