Skip to content

Commit 021c197

Browse files
committed
Update jacobi.jl
1 parent 90fa93f commit 021c197

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classical/jacobi.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ basis_singularities(w::JacobiWeight) = Weighted(Jacobi(w.a, w.b))
217217
computes the `n`-th Jacobi polynomial, orthogonal with
218218
respec to `(1-x)^a*(1+x)^b`, at `z`.
219219
"""
220-
jacobip(n::Integer, a, b, z) = Base.unsafe_getindex(Jacobi{polynomialtype(typeof(a), typeof(b), typeof(z))}(a,b), z, n+1)
221-
normalizedjacobip(n::Integer, a, b, z) = Base.unsafe_getindex(Normalized(Jacobi{polynomialtype(typeof(a), typeof(b), typeof(z))}(a,b)), z, n+1)
220+
jacobip(n::Integer, a, b, z) = Base.unsafe_getindex(Jacobi{polynomialtype(promote_type(typeof(a), typeof(b)), typeof(z))}(a,b), z, n+1)
221+
normalizedjacobip(n::Integer, a, b, z) = Base.unsafe_getindex(Normalized(Jacobi{polynomialtype(promote_type(typeof(a), typeof(b)), typeof(z))}(a,b)), z, n+1)
222222

223223
OrthogonalPolynomial(w::JacobiWeight) = Jacobi(w.a, w.b)
224224
orthogonalityweight(P::Jacobi) = JacobiWeight(P.a, P.b)

0 commit comments

Comments
 (0)