File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change 85
85
@test companion (c)[1 , 1 ] == - 0.5
86
86
end
87
87
88
- @testset " Arithmetic $i , $j " for i in 1 : 5 , j in 1 : 5
88
+ @testset " Vander" begin
89
+ x = 0 : 3
90
+ v = vander (ChebyshevT, x, 5 )
91
+ @test size (v) == (length (x), 6 )
92
+ @inbounds for i in eachindex (x)
93
+ coef = push! (zeros (i - 1 ), 1 )
94
+ c = ChebyshevT (coef)
95
+ @test v[:, i] ≈ c .(x)
96
+ end
97
+ end
98
+
99
+ @testset " Arithmetic $i , $j " for i in 0 : 5 , j in 0 : 5
89
100
# multiplication
90
101
target = zeros (i + j + 1 )
91
102
target[end ] += 0.5
125
136
@test gcd (c1, c2) ≈ ChebyshevT (6 )
126
137
end
127
138
128
- @testset " z-series" for i in 1 : 5
139
+ @testset " z-series" for i in 0 : 5
129
140
# c to z
130
141
input = append! ([2 ], ones (i))
131
142
target = append! (push! (0.5 .* ones (i), 2 ), 0.5 .* ones (i))
You can’t perform that action at this time.
0 commit comments