@@ -343,14 +343,16 @@ using BandedMatrices: rowrange, colrange
343
343
for d in Any[(), (0 .. 1 ,)]
344
344
for ST in Any[Chebyshev, Legendre,
345
345
(x... ) -> Jacobi (2 ,2 ,x... ), (x... ) -> Jacobi (1.5 ,2.5 ,x... )]
346
- S = ST (d... )
347
- @test Derivative (S) == Derivative (S,1 )
348
- @test Derivative (S)^ 2 == Derivative (S,2 )
349
- f = Fun (x-> x^ 3 , S)
350
- @test Derivative (S) * f ≈ Fun (x-> 3 x^ 2 , S)
351
- @test Derivative (S,2 ) * f ≈ Fun (x-> 6 x, S)
352
- @test Derivative (S,3 ) * f ≈ Fun (x-> 6 , S)
353
- @test Derivative (S,4 ) * f ≈ zeros (S)
346
+ S1 = ST (d... )
347
+ for S in [S1, NormalizedPolynomialSpace (S1)]
348
+ @test Derivative (S) == Derivative (S,1 )
349
+ @test Derivative (S)^ 2 == Derivative (S,2 )
350
+ f = Fun (x-> x^ 3 , S)
351
+ @test Derivative (S) * f ≈ Fun (x-> 3 x^ 2 , S)
352
+ @test Derivative (S,2 ) * f ≈ Fun (x-> 6 x, S)
353
+ @test Derivative (S,3 ) * f ≈ Fun (x-> 6 , S)
354
+ @test Derivative (S,4 ) * f ≈ zeros (S)
355
+ end
354
356
end
355
357
end
356
358
@test Derivative (Chebyshev ()) != Derivative (Chebyshev (), 2 )
0 commit comments