Function to calculate the L2 scalar product of a Legendre polynomial with itself on the reference element [-1,+1].

Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|

integer, | intent(in) | :: | ansFunc | The Legendre polynomial to calculate the scalar product for. The first Legendre polynomial has index 1. |

The scalar product on the refenece element [-1,+1].