Skip to content

Commit 3a23527

Browse files
committed
add tldr
1 parent 1242e74 commit 3a23527

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/src/nondiff_points.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# What to return for non-differentiable points
2-
2+
!!! info "What is the short version?"
3+
If the function is not differentiable due to e.g. a branch, like `abs`, your rule can reasonably claim the derivative at that point is the value from either branch, *or* any value in-between (e.g. for `abs` claiming 0 is a good idea).
4+
If it is not differentiable due to the primal not being defined on one side, you can set it to what ever you like.
5+
Your rule should claim a derivative that is *useful*.
36
In calculus one learns that if the derivative as computed by approaching from the left,
47
and the derivative one computes as approaching from the right are not equal then the derivative is not defined,
58
and we say the function is not differentiable at that point.

0 commit comments

Comments
 (0)