Extends: grid
This is a table indexed by triples $(i,j,k)$; the values are the integrals over $F_{16}$ of $z_1^iz_2^j|n|^k$
Constructor: `new/E_grid`()Method: create_samples()::void
This invokes the create_samples method for each face.
The argument $f$ is assumed to be a polynomial in $x_1,\dotsc,x_4$. The method returns an approximation to the integral over $EX(a)$ of $f$, or of $f |n|^k$ if $k$ is given as an additional argument. Here $n$ is the gradient of $g$.
The argument $f$ is assumed to be an expression in $z_1$ and $z_2$. The method returns an approximation to the integral over F16 of $f$, or of $f |n|^k$ if $k$ is given as an additional argument. Note that this is 1/16 times the integral over $EX(a)$.
This sets one value in int_table
This assumes that $f$ is a polynomial in $z_1$ and $z_2$. It calculates the integral of $f$ over $F_{16}$ by looking up the integrals of the individual monomials in int_table. If any of the required integrals are missing from int_table, then they will be calculated and saved there.
Calculate and save integrals for all monomials in $z_1$ and $z_2$ of degree at most $d$
This returns the total area of $F_{16}$
This returns the integral of the curvature over $F_{16}$
If the integration rule is accurate, then the result of this method should be zero, by the Gauss-Bonet Theorem.
Here ff should be a list $(f_1,f_2)$ of two expressions in $z_1$ and $z_2$. The method returns the approximated integral of the exterior derivative of $f_1\alpha_1+f_2\alpha_2$, where the forms $\alpha_i$ are defined in embedded/roothalf/forms.mpl. If the integration rule is accurate, then the result should be zero, by Stokes's Theorem.