Skip to content

Commit

Permalink
Reorganization and small bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanJxie committed Dec 6, 2023
1 parent 2988f3f commit 256c810
Show file tree
Hide file tree
Showing 10 changed files with 1,628 additions and 1,378 deletions.
1 change: 1 addition & 0 deletions calc.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ func (p Poly) Derivative() Poly {
return NewPoly([]float64{0})
}

// Formal derivative.
// For nonconstant p, if deg(p) = n, then deg(p') = n - 1.
derivCoef := make([]float64, p.deg)
for i := 0; i < p.deg; i++ {
Expand Down
Loading

0 comments on commit 256c810

Please sign in to comment.