Skip to content

Commit 6de0677

Browse files
committed
edits
1 parent 99dbc08 commit 6de0677

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/polynomials/Poly.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,4 +176,7 @@ Polynomials.polyint(p::Poly, C = 0) = integrate(p, C)
176176
Polynomials.polyint(p::Poly, a, b) = integrate(p, a, b)
177177
Polynomials.polyder(p::Poly, ord = 1) = derivative(p, ord)
178178

179+
polyfit(x, y, n = length(x) - 1, sym=:x) = fit(Poly, x, y, n; var = sym)
180+
polyfit(x, y, sym::Symbol) = fit(Poly, x, y, var = sym)
181+
179182
end

0 commit comments

Comments
 (0)