File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -115,13 +115,20 @@ We do not have to worry about what to return for the side where it is not define
115
115
As we will never be asked for the derivative at e.g. ` x=-2.5 ` since the primal function errors.
116
116
But we do need to worry about at the boundary -- if that boundary point doesn't error.
117
117
118
+ Since we will never be asked about the left-hand side (as the primal errors), we can use just the right-hand side derivative.
119
+ In this case giving 0.0.
120
+ `
121
+ Also nice in this case is that it agrees with the symbolic simplification of ` x->exp(2log(x)) ` into ` x->x^2 ` .
122
+
123
+
124
+
118
125
### Not defined on one side, non-finite on the other
119
126
``` @example nondiff
120
127
plot(log)
121
128
```
122
129
123
130
### sub/super-differential convention
124
- ** TODO: Incorperate this with rest of the document.
131
+ ** TODO: Incorperate this with rest of the document. Or move to design notes **
125
132
126
133
Instead we introduce what we call the ** sub/super-differential convention** :
127
134
You can’t perform that action at this time.
0 commit comments