Skip to content

Commit 69c583a

Browse files
authored
isapproxinteger_addhalf in jacobi-chebyshev coefficient transform (#228)
1 parent 38a2707 commit 69c583a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Spaces/Jacobi/jacobitransform.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,23 @@ end
3939

4040

4141
function coefficients(f::AbstractVector{T}, a::Jacobi, b::Chebyshev) where T
42-
if domain(a) == domain(b) && (!isapproxinteger(a.a-0.5) || !isapproxinteger(a.b-0.5))
42+
if domainscompatible(a, b) && !(isapproxinteger_addhalf(a.a) && isapproxinteger_addhalf(a.b))
4343
jac2cheb(f, strictconvert(T,a.a), strictconvert(T,a.b))
4444
else
4545
defaultcoefficients(f,a,b)
4646
end
4747
end
4848
function coefficients(f::AbstractVector{T}, a::Chebyshev, b::Jacobi) where T
4949
isempty(f) && return f
50-
if domain(a) == domain(b) && (!isapproxinteger(b.a-0.5) || !isapproxinteger(b.b-0.5))
50+
if domainscompatible(a, b) && !(isapproxinteger_addhalf(b.a) && isapproxinteger_addhalf(b.b))
5151
cheb2jac(f, strictconvert(T,b.a), strictconvert(T,b.b))
5252
else
5353
defaultcoefficients(f,a,b)
5454
end
5555
end
5656

5757
function coefficients(f::AbstractVector,a::Jacobi,b::Jacobi)
58-
if domain(a) == domain(b) && (!isapproxinteger(a.a-b.a) || !isapproxinteger(a.b-b.b))
58+
if domainscompatible(a, b) && !(isapproxinteger(a.a-b.a) && isapproxinteger(a.b-b.b))
5959
jac2jac(f,a.a,a.b,b.a,b.b)
6060
else
6161
defaultcoefficients(f,a,b)

0 commit comments

Comments
 (0)