Skip to content

Commit c16d49f

Browse files
authored
fix call to _fit, close issue #295 (#296)
* fix call to _fit, close issue #295 * version bump [ci skip]
1 parent f556a80 commit c16d49f

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name = "Polynomials"
22
uuid = "f27b6e38-b328-58d1-80ce-0feddd5e7a45"
33
license = "MIT"
44
author = "JuliaMath"
5-
version = "1.1.11"
5+
version = "1.1.12"
66

77
[deps]
88
Intervals = "d8418881-c3e1-53bb-8760-2df7ec849ed5"

src/common.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function fit(P::Type{<:AbstractPolynomial},
9191
deg::Integer = length(x) - 1;
9292
weights = nothing,
9393
var = :x,) where {T}
94-
_fit(P, x, y, deg, weights, var)
94+
_fit(P, x, y, deg; weights=weights, var=var)
9595
end
9696

9797
fit(P::Type{<:AbstractPolynomial},

test/ChebyshevT.jl

+10
Original file line numberDiff line numberDiff line change
@@ -201,3 +201,13 @@ end
201201
@test q == [1]
202202
@test r == [0]
203203
end
204+
205+
206+
@testset "closed issues" begin
207+
208+
# issue #295
209+
x = BigFloat[-2/3, -1/3, 1/3, 2/4]
210+
y = BigFloat[1, 2, 3, 4]
211+
fit(ChebyshevT, x, y, 1)
212+
213+
end

0 commit comments

Comments
 (0)