Commit cf94695
authored
New method for derivative of constant ImmutableDensePolynomial (#615)
* Include a method for derivative of constant `ImmutableDensePolynomial` (N=1). The method returns the zero `ImmutableDensePolynomial. This is a possible fix of a bug, since previously derivative of an `ImmutablePolynomial` returned an unusable polynomial of type `ImmutablePolynomial{Union{},:x,0}`.
* Improved derivative for constant `ImmutablePolynomial`. `derivative(p)` now returns `zero(p)`.1 parent 607acca commit cf94695
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
| 145 | + | |
| 146 | + | |
145 | 147 | | |
146 | 148 | | |
| 149 | + | |
147 | 150 | | |
148 | 151 | | |
149 | 152 | | |
| |||
0 commit comments