@@ -10,6 +10,8 @@ using ApproxFunBaseTest: testbandedbelowoperator, testbandedoperator, testspace,
10
10
using ApproxFunOrthogonalPolynomials: jacobip
11
11
using StaticArrays: SVector
12
12
using Static
13
+ using HalfIntegers
14
+ using OddEvenIntegers
13
15
14
16
@verbose @testset " Jacobi" begin
15
17
@testset " Basic" begin
@@ -531,24 +533,25 @@ using Static
531
533
testspace (Ultraspherical (1 ); haslineintegral= false )
532
534
testspace (Ultraspherical (2 ); haslineintegral= false )
533
535
# minpoints is a tempory fix a bug
534
- @time testspace (Ultraspherical (1 // 2 ); haslineintegral= false , minpoints= 2 )
535
- @test norm (Fun (exp,Ultraspherical (1 // 2 ))- Fun (exp,Jacobi (0 ,0 ))) < 100 eps ()
536
+ for m in (1 // 2 , half (Odd (1 )))
537
+ @time testspace (Ultraspherical (m); haslineintegral= false , minpoints= 2 )
538
+ @test norm (Fun (exp,Ultraspherical (m))- Fun (exp,Jacobi (0 ,0 ))) < 100 eps ()
539
+ end
536
540
537
541
C= Conversion (Jacobi (0 ,0 ),Chebyshev ())
538
542
@time testbandedbelowoperator (C)
539
543
@test norm (C* Fun (exp,Jacobi (0 ,0 )) - Fun (exp)) < 100 eps ()
540
544
541
545
542
- C= Conversion (Ultraspherical (1 // 2 ),Chebyshev ())
543
- @time testbandedbelowoperator (C)
544
- @test norm (C* Fun (exp,Ultraspherical (1 // 2 )) - Fun (exp)) < 100 eps ()
545
-
546
-
547
-
548
- C= Conversion (Chebyshev (),Ultraspherical (1 // 2 ))
549
- @time testbandedbelowoperator (C)
550
- @test norm (C* Fun (exp)- Fun (exp,Legendre ())) < 100 eps ()
546
+ for m in (1 // 2 , half (Odd (1 )))
547
+ C= Conversion (Ultraspherical (m),Chebyshev ())
548
+ @time testbandedbelowoperator (C)
549
+ @test norm (C* Fun (exp,Ultraspherical (m)) - Fun (exp)) < 100 eps ()
551
550
551
+ C= Conversion (Chebyshev (),Ultraspherical (m))
552
+ @time testbandedbelowoperator (C)
553
+ @test norm (C* Fun (exp)- Fun (exp,Legendre ())) < 100 eps ()
554
+ end
552
555
553
556
C= Conversion (Chebyshev (),Jacobi (0 ,0 ))
554
557
@time testbandedbelowoperator (C)
@@ -560,8 +563,10 @@ using Static
560
563
@test norm (C* Fun (exp) - Fun (exp,Jacobi (1 ,1 ))) < 100 eps ()
561
564
562
565
563
- C= Conversion (Ultraspherical (1 // 2 ),Ultraspherical (1 ))
564
- @time testbandedbelowoperator (C)
566
+ for m in (1 // 2 , half (Odd (1 )))
567
+ C= Conversion (Ultraspherical (m),Ultraspherical (1 ))
568
+ @time testbandedbelowoperator (C)
569
+ end
565
570
566
571
λ1 = ApproxFunOrthogonalPolynomials. order (domainspace (C))
567
572
λ2 = ApproxFunOrthogonalPolynomials. order (rangespace (C))
@@ -577,7 +582,9 @@ using Static
577
582
578
583
@test norm (Cex - C[1 : 20 ,1 : 20 ]) < 100 eps ()
579
584
580
- @test norm (C* Fun (exp,Ultraspherical (1 // 2 ))- Fun (exp,Ultraspherical (1 ))) < 100 eps ()
585
+ for m in (1 // 2 , half (Odd (1 )))
586
+ @test norm (C* Fun (exp,Ultraspherical (m))- Fun (exp,Ultraspherical (1 ))) < 100 eps ()
587
+ end
581
588
582
589
C= Conversion (Jacobi (0 ,0 ),Ultraspherical (1 ))
583
590
testbandedbelowoperator (C)
0 commit comments