Commit fa14ce3
Iojea master (#616)
* 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)`.
* subtract, not add; add simple tests
* test display
---------
Co-authored-by: Ignacio Ojea <[email protected]>1 parent cf94695 commit fa14ce3
File tree
2 files changed
+9
-2
lines changed- src/polynomials/standard-basis
- test
2 files changed
+9
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | 148 | | |
151 | 149 | | |
152 | 150 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1094 | 1094 | | |
1095 | 1095 | | |
1096 | 1096 | | |
| 1097 | + | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
| 1105 | + | |
1097 | 1106 | | |
1098 | 1107 | | |
1099 | 1108 | | |
| |||
0 commit comments