Skip to main content

LobattoMonomialExpansionAll

Returns all the monomial expansion of all Lobatto polynomials.

Interface

INTERFACE
MODULE PURE FUNCTION LobattoMonomialExpansionAll(n) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: n
REAL(DFP) :: ans(1:n + 1, 1:n + 1)
END FUNCTION LobattoMonomialExpansionAll
END INTERFACE
  • n : is the order of the polynomial
  • ans(:,i) contains the coefficient of monomials for polynomial order=i-1

for example, n=5, we have the following structure of ans.

P0P1P2P3P4P5
10-0.5-00.3750
010-1.5-01.875
001.50-3.75-0
0002.50-8.75
00004.3750
000007.875