Skip to main content

LagrangeDegree

Returns the polynomial space for constructing the Lagrange polynomials.

A Lagrange polynomial is given by

p(x,y)=a=0b=0xaybp(x,y) = \sum_{a=0}\sum_{b=0} x^{a} y^{b}

Here span of xaybx^{a}y^{b} is called the LagrangeDegree.

  • as are given by first column of ans.
  • bs are given by second column of ans.

For example for order = 3, we have the following degrees:

x0y0,x,x2,x3,y,xy,x2y,y2,xy2,y3x^{0}y^{0}, x, x^2, x^3, y, xy, x^2 y, y^2, x y^2, y^3

which is representd by:

ab
00
10
20
30
01
11
21
02
12
03

Interface

INTERFACE
MODULE PURE FUNCTION LagrangeDegree_Triangle(order) RESULT(ans)
INTEGER(I4B), INTENT(IN) :: order
INTEGER(I4B), ALLOCATABLE :: ans(:, :)
END FUNCTION LagrangeDegree_Triangle
END INTERFACE
order

Order of Lagrange polynomial

ans
  • The first col of ans denotes the exponent of x
  • The second col of ans denotes the exponent of y