Skip to content

Commit f70fc60

Browse files
committed
Fix Lobatto exactness
Closes gh-162
1 parent 8900463 commit f70fc60

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

modepy/quadrature/jacobi_gauss.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ class JacobiGaussLobattoQuadrature(Quadrature):
313313
314314
I[f] = \int_{-1}^1 f(x) (1 - x)^\alpha (1 + x)^\beta\, \mathrm{d}x,
315315
316-
There will be *N+1* nodes. Exact to degree :math:`2N - 3`.
316+
There will be *N+1* nodes. Exact to degree :math:`2N - 1`.
317317
318318
.. versionadded:: 2024.2
319319
"""
@@ -382,7 +382,7 @@ def __init__(self,
382382
if force_dim_axis:
383383
nodes = nodes.reshape(1, -1)
384384

385-
super().__init__(nodes, weights, 2*N - 3)
385+
super().__init__(nodes, weights, 2*N - 1)
386386

387387

388388
class LegendreGaussLobattoQuadrature(JacobiGaussLobattoQuadrature):

0 commit comments

Comments
 (0)