Skip to content

Commit cd400b6

Browse files
committed
add gif
1 parent 369b273 commit cd400b6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/src/nondiff_points.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ We are trying to accomplish some goal, and this approach works well.
139139
One way to think about this convention is to take an infinitely sharp discontinuity in a function and replace that discontinuty with a very (infinitesimally) small, smooth corner.
140140
Due to the intermediate value theorem, we can then say that over this tiny interval, any derivative between the two extremes is realized and we are free to pick any one of them that we find useful as the 'canonical' value.
141141

142+
![animation showing `abs(x)` transforming into `x^2`](https://user-images.githubusercontent.com/29157027/127267988-92ca0899-ca33-4dd6-af45-e5a085283c83.gif)
143+
142144
More specifically, consider our initial examples:
143145
`abs_left(x) = (x <= 0) ? -x : x`, and `abs_right(x) = (x < 0) ? -x : x`.
144146
These are a a primal level indistinguishable to the user.

0 commit comments

Comments
 (0)