Skip to content

Commit cbc7424

Browse files
committed
Clarify
1 parent 00fb966 commit cbc7424

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/classical/ultraspherical.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ function \(A::Ultraspherical, B::Jacobi)
200200
end
201201
function \(A::Jacobi, B::Ultraspherical)
202202
if B == Ultraspherical(-1/2) && (A == Jacobi(-1, 0) || A == Jacobi(0, -1))
203+
# In this case, Jacobi(-1, -1) is (currently) undefined, so the conversion via B̃ = Jacobi(B) leads to NaNs
204+
# from evaluating in B̃[1, :]
203205
T = promote_type(eltype(A), eltype(B))
204206
n = -2one(T) ./ (2 .* (2:∞) .- one(T))
205207
sgn = A == Jacobi(-1, 0) ? one(T) : -one(T)

0 commit comments

Comments
 (0)