Skip to content

About

Cubature Atlas – best known quadrature and cubature rules with few points and positive weights on interval, triangle, square, tetrahedron and cube

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Cubature Atlas

DOI

How few points do you need to integrate a polynomial exactly? The Cubature Atlas collects the answers for the interval, triangle, square, tetrahedron and cube — complete for every degree from 1 to 30 and continuously extended to higher degrees. Every rule has positive weights, and every rule comes with a computer-assisted proof.

→ Explore it on the website: https://jukzi.github.io/cubature_atlas/ (interactive viewer, tables, charts, downloads)

Four rules of the atlas: triangle degree 20 with 78 nodes, square degree 20 with 77 nodes, tetrahedron degree 12 with 116 nodes, cube degree 12 with 114 nodes. Marker area proportional to the weight.

The idea in one picture

A cubature rule replaces an integral by a weighted sum over a few points:

∫ f(x) dx ≈ w₁ f(x₁) + w₂ f(x₂) + … + w_N f(x_N)

A rule of degree n gets this exactly right for every polynomial up to degree n. Fewer points means less work every time the rule is used, which is why finite-element codes, simulations and numerical libraries care about rules that are as small as possible.

The 2-point Gauss–Legendre rule integrates every cubic exactly: a randomly changing cubic is shown with its area, and two bars (width = weight, height = value at the node) always have the same total area.
Two points are enough for every cubic on an interval: the bars (width = weight, height = value at the node) always enclose the same area as the curve.

In one dimension the answer has been known since Gauss. On triangles, squares, tetrahedra and cubes it is a hard, mostly open search problem, and the published tables stop at moderate degrees.

What makes this atlas different

Complete. All 5 domains × degrees 1–30 (150 core cells, shown in the charts below) are filled, and the atlas continues to higher degrees with hundreds of proven rules in total.

Proven, not just computed. Floating-point searches can be wrong in the last digits, or worse. Here every rule is checked with interval arithmetic: the proof shows that an exact rule, with positive weights and with its nodes where the file says they are, exists within about 10-10 of the stored numbers (tools/verify_rigorous.py). A rule without such a proof is not accepted.

Smaller than the published rules, and never larger. In 100 of the 150 cells there is a published rule to compare with (Xiao–Gimbutas, and the fully symmetric rules of Witherden–Vincent, Jaśkowiec–Sukumar and Diallo–Worku). The atlas matches it everywhere and needs fewer nodes in 78 of these cells: for example, degree 20 on the tetrahedron takes 446 nodes instead of 552.

Often provably optimal. In 54 cells the number of nodes equals a proven lower bound, so no rule with positive weights can do better.

Map of the 150 cells, domains in rows and degrees 1 to 30 in columns: provably optimal cells, cells where the atlas has fewer nodes than the published rules, cells with the same number, and cells without a published comparison.

How close to the limit?

A natural yardstick is the counting value Z: the number of equations divided by the unknowns per node. A rule with fewer than Z nodes is only possible thanks to special structure such as symmetry. From degree 8 on, the atlas stays within about 10 % of Z, mostly within 1–2 %, and on the cube it even goes below Z in ten cells. The published rules (orange) are typically 5–30 % above it; the proven lower bound (dashed) shows how much room theory still leaves.

Nodes divided by the counting value Z for degrees 1 to 30 on triangle, square, tetrahedron and cube: the atlas stays close to 1, the published rules lie above it, and the proven lower bound lies below.
Degree 20 Atlas best published tensor-product Gauss
Triangle 78 79 121
Square 77 81 121
Tetrahedron 446 552 1331
Cube 440 495 1331

Sometimes the best rule steps outside

The degree-8 square rule with 15 nodes; one node lies just outside the square.

Allowing nodes outside the domain (quality PO) saves nodes in 40 cells. The degree-8 square rule on the right needs only 15 nodes, but one of them sits just outside the square. With all nodes inside, the best known rule has 16 nodes. These rules are useful whenever the integrand is defined beyond the domain, and they are kept in their own family.


Use a rule

Every rule is a small JSON file with nodes and weights; the website offers each one as a download (and all of them as a ZIP).

import json, math

rule = json.load(open("rules/minimal_pointcount_for_degree_n_PI/triangle/CA-T2-20-78-PI-MPC.json"))
f = lambda x, y: math.exp(x) * math.cos(y)
approx = sum(w * f(x, y) for (x, y), w in zip(rule["nodes"], rule["weights"]))
print(approx)   # 0.668254268891508..., error about 4e-15 with 78 points

Domains: interval [−1,1], triangle (0,0),(1,0),(0,1), square [−1,1]2, tetrahedron (0,0,0),(1,0,0),(0,1,0),(0,0,1), cube [−1,1]3. The weights sum to the volume.

Open questions

The atlas marks the places where the truth is not known yet. Three examples:

  • Triangle, degree 9: is 19 nodes minimal? The proven lower bound is 17.
  • Cube, degree 6: are 22 nodes inside (21 with nodes outside) minimal? The lower bound is 20.
  • Square, degree 8: a 15-node rule inside the square would be optimal. Numerically, the only 15-node rules are the one shown above and its mirror images, with a node outside; an exact proof is still missing.

Ideas, better rules and proofs are welcome.

How it was made

AI-generated. The search, the computations, the proofs, the code and the texts were produced by an AI (Claude, Anthropic), commissioned and directed by Dr. rer. nat. Jörg Kubitz (Dipl.-Math.).

The rules come from numerical searches: symmetric orbit searches, node elimination from larger rules, cannonball-packing starts, and combinations of these (see code/README.md). Their results are accepted only after the interval proof. The website and the per-rule pages are generated from the rule files on every change.

Contributing

Pull requests are welcome. CONTRIBUTING.md describes the workflow; DEVELOPMENT.md describes the rule files, the families, the checks and proofs, the automatic searches and the translations; literature.md lists the literature used and tried. SEARCH_PROMPT.md is a prompt for AI agents that search for better rules.

Citing

Please cite the atlas with its DOI and the rule by its id, e.g.

Jörg Kubitz: Cubature Atlas: best known quadrature and cubature rules with positive weights. Zenodo. https://doi.org/10.5281/zenodo.24037245, rule CA-T2-13-35-PI-MPC.

The DOI 10.5281/zenodo.24037245 always resolves to the latest version. To cite one exact version, use its version DOI from Zenodo (v1.0.0: 10.5281/zenodo.24037246). See CITATION.cff. Rules taken from the literature must be cited with their original publication (given in the rule file and in family.json).

License

Copyright © 2026 Jörg Kubitz. The Cubature Atlas (rules, data, texts, website and code) is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0), see LICENSE. You may use, share and adapt it for any purpose, including commercially, as long as you give appropriate credit (see Citing) and indicate if changes were made.

Exception: the rules in the literature families (every directory under rules/ whose family.json has "role": "literature", including witherden_vincent_2015, jaskowiec_sukumar_2020, jaskowiec_sukumar_2020_nonsym, chuluunbaatar_2022, diallo_worku_2026, pinkse_2026, festa_sommariva_2012, omelyan_solovyan_2006, worku_hicken_zingg_2024, wandzura_xiao_2003, xiao_gimbutas_2010, albrecht_collatz_1958) are reproduced from the cited publications for comparison and are not covered by this license; their original terms apply.

About

Cubature Atlas – best known quadrature and cubature rules with few points and positive weights on interval, triangle, square, tetrahedron and cube

Resources

Contributing

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages