Skip to content

Commit 7807bfb

Browse files
committed
wip
1 parent af3b139 commit 7807bfb

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

docs/src/nondiff_points.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,16 @@ Further:
6464
plot(x-> x < 0 ? x : 5x)
6565
```
6666

67+
Here was have 3 main options, all are good.
68+
We could say there derivative at 0 is
69+
- 1: which agrees with backwards finite differencing
70+
- 5: which agrees with fowards finite differencing
71+
- 3: which is the mean of `[1, 5]`, and agrees with central finite differencing
72+
73+
All of these options are perfectly nice members of the [subderivative](https://en.wikipedia.org/wiki/Subderivative).
74+
Saying it is `3` is the arguably the nicest, but it is also the most expensive to compute; and it will
75+
76+
6777
### Derivative zero almost everywhere
6878

6979
```@example nondiff
@@ -75,9 +85,7 @@ plot(ceil)
7585
```@example nondiff
7686
plot(cbrt)
7787
```
78-
79-
80-
(derivative nonfinite and different on each side is not possible with a finite and defined primal.)
88+
s(derivative nonfinite and different on each side is not possible with a finite and defined primal.)
8189
### Primal and derivative Non-finite and same on both sides
8290
```@example nondiff
8391
plot(x->inv(x^2))

0 commit comments

Comments
 (0)