Manuscript Offprint
arXiv:2609.37844Running error bounds in finite element kernels
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
PREPRINT
Michal HABERA
Department of Engineering
University of Luxembourg
Paul T. KÜHNER
Department of Engineering
University of Luxembourg
Matteo CROCI
Basque Center for Applied Mathematics
Ikerbasque
University of the Basque Country
Andreas ZILIAN
Department of Engineering
University of Luxembourg
September 2026
ABSTRACT
Rounding errors in finite element computations can lead to a complete loss of accuracy, stalled convergence, and incorrect results. Moreover, the effects of rounding errors accumulated within automatically generated and compiled kernels are difficult to analyze a priori. We present the first software framework for automated rounding error estimation within finite element kernels. The proposed methodology is based on an a posteriori technique called Running Error Analysis (REA), where a forward error estimate is automatically computed concurrently with the value. An open-source implementation is provided for the FEniCS Form Compiler (FFCx), based on a C++ backend for generating type-generic templated kernels over a custom arithmetic type that tracks both the value and its error estimate.
We demonstrate REA on two examples. First, we use it to detect catastrophic cancellation in the assembly of a Neo-Hooke hyperelastic model in the small deformation regime. A series expansion circumvents the cancellation problem and the computed error estimates show this. Second, we study the assembly of the Laplace operator on a near-degenerate mesh. We demonstrate that our REA implementation typically incurs only 2-4x performance overhead. Applications of this work include robust reduced-precision computations in embedded systems, numerical debugging of new, possibly ill-conditioned or unstable PDE formulations, and guiding the design of mixed-precision kernels.
Keywords Catastrophic Cancellation, Finite Element Method, Reduced Precision Computing, Rounding Error, Running Error Analysis
1 Introduction
Rounding errors can limit the accuracy of finite element computations and stall the convergence of iterative solvers. Estimating the magnitude of these errors is crucial when using lower-precision arithmetic, but the effects of rounding errors accumulated within automatically generated and compiled kernels are difficult to analyze a priori. In this work, we present a method for automated rounding error estimation in the assembly of finite element operators. We propose a software framework that combines code generation, i.e., the translation of the mathematical description of Partial Differential Equations (PDEs) to a lower-level programming language (Kirby and Logg, 2006; Alnæs et al., 2014), with running error analysis (REA) for a posteriori rounding error bounds, see Wilkinson (1986, § 3) and Higham (2002, § 3.3). The resulting algorithm automatically computes rounding error bounds alongside the assembled values and reveals accuracy loss due to numerical instability and ill-conditioning, with modest overhead in most of the tested cases.
PREPRINT
Double precision was available from the dawn of the computer Finite Element Method (FEM) in the 1960s, but memory constraints encouraged single precision storage (Melosh and Palacol, 1969). The IEEE single- and double-precision arithmetic became widely supported in hardware during the late 1980s and 1990s (Higham and Mary, 2022, § 2), making the 64-bit arithmetic increasingly practical. As a consequence, double precision became the conservative default in many engineering finite element software packages.
This conservatism can be justified when rounding errors limit the accuracy of constitutive evaluations or the convergence of iterative solvers. In solid mechanics, for example, evaluating finite-strain constitutive models near the undeformed state can involve cancellation, as illustrated by the Neo-Hooke example in Section 4. Contact algorithms (Wriggers, 2006, Ch. 10) and non-smooth, multi-surface plasticity algorithms (Simo, Kennedy, and Govindjee, 1988; Simo and Hughes, 1998) also use contact gaps and yield-function values to determine which constraints are active. Rounding errors near activation thresholds can alter these decisions. In addition, industrial CAD geometries may lead to ill-shaped elements and poorly conditioned element-local operators (Shewchuk, 2002, § 3), increasing sensitivity to rounding errors. Higher working precision can reduce these errors and help keep them below the tolerances required by the simulation.
The development of Artificial Intelligence (AI) and Large Language Models (LLMs) is shaping the landscape of available hardware and the numerical formats it supports (Jouppi et al., 2017; Micikevicius et al., 2022). In particular, double precision is not prioritized by AI hardware manufacturers, and developers and researchers wanting to harness the latest hardware capabilities are forced to adapt their algorithms to lower-precision computations. The result is a wide range of reduced- and mixed-precision algorithms, which leverage the performance gains of low-precision computations while controlling rounding error accumulation. We refer to the review articles of Abdelfattah et al. (2021) and Higham and Mary (2022) for an overview of existing methods. The advantage of using lower precision is that these formats favor not only the applications with high arithmetic intensity (Williams, Waterman, and Patterson, 2009), but also applications that are memory bandwidth bound, due to improved memory traffic utilization.
Overall, the rounding error behaviour in a typical finite element industrial simulation is complex, and we only try to address a small part of it in this work.
Rounding error detection in numerical software This complexity motivates the use of automated tools to assess how rounding errors propagate through numerical software. The estimation of rounding errors in a program is addressed by an extensive list of libraries. Based on the technique that these tools follow, one can distinguish the following approaches.
Dynamic local-error propagation techniques augment each floating-point operation so that it returns a pair of the computed value and an estimate of its accumulated error, and update after each operation. The local rounding error can be estimated from a floating-point model or computed using error-free transformations or higher-precision values, see subsections below. Examples include CENA (Braconnier and Langlois, 2002; Hovland and Hückelheim, 2021), Shaman (Demeure et al., 2022), EFTSanitizer (Chowdhary and Nagarakatte, 2022), Accurate Residues (He and Panchekha, 2026), ADAPT (Menon et al., 2018), CHEF_FP (Singh et al., 2023), ATOMU (Zou et al., 2020), and FPCC (Yi et al., 2024). Advantages are that this approach provides error information for intermediate operations, computation happens alongside values in one execution, and error-free transformations can be used to avoid expensive high-precision arithmetic. Disadvantages are the additional arithmetic and storage overhead, potentially overestimated errors for unsigned bounds, and the requirement to implement special rules for every relevant operation.
High-precision shadow execution methods evaluate the floating-point program twice: once for the floating-point value , and once for a higher-precision reference value . The difference is then used as an estimate of the accumulated error. Examples include FPDebug (Benz, Hildebrandt, and Hack, 2012), FPSanitizer and PFPSanitizer (Chowdhary, Lim, and Nagarakatte, 2020; Chowdhary and Nagarakatte, 2021), NSan (Courbet, 2021), Herbgrind (Sanchez-Stern et al., 2018), and SHVAL (Lam and Rountree, 2016). Advantages include a directly interpretable, signed difference between the computed value and reference, and no need for first-order error-propagation approximations. On the other hand, high-precision arithmetic and shadow storage can be expensive, in particular when precision is emulated. The reference still has rounding errors and can itself suffer numerical instability.
Stochastic methods repeatedly evaluate the program while randomly perturbing rounding decisions or mantissas. The outcomes are used to estimate variance, confidence intervals, or numerical instabilities. These methods are implemented in CADNA (Jézéquel and Chesneaux, 2008), Verificarlo (Denis, Oliveira Castro, and Petit, 2016), VERROU (Févotte and Lathuilière, 2016), and SAM (Graillat et al., 2011). These approaches provide additional statistical information such as variability, significant digits, and confidence intervals. Unfortunately, conclusions depend on the perturbation model and statistical assumptions, and multiple samples add cost.
PREPRINT
For a more extensive list of libraries see FPTalks (2026). The same page lists many additional libraries classified as static. These tools perform rounding error analysis prior to the execution of the code, so they are more similar to an a priori error analysis and fall outside the scope of the current work. Their main advantage is the possibility of proving bounds over a specified input domain before execution.
Among tools based on dynamic local-error propagation, Shaman (Demeure et al., 2022) provides debugging features such as attribution of errors to their sources and detection of unstable branches, together with broad integration into C++ software. Instead, our framework specifically focuses on finite element assembly through generated FEniCSx kernels and Python/NumPy, with support for half precision and both approximate worst-case bounds and signed error estimates.
Rounding errors in the finite element method Existing literature on the effects of rounding errors in FE kernels is scarce. The first studies were conducted by Melosh and Palacol (1969), Melosh (1973), and Utku and Melosh (1984). In these studies the focus is on the entire process of obtaining an FE solution, including the conditioning and factorization of the structural system. Moreover, the problems are limited to structural systems with stiffness and mass matrices.
On the other hand, there is a larger amount of literature on rounding errors in the solution of linear systems arising from FEM (Babuška, Szabó, and Katz, 1981; Fried, 1986; Alvarez-Aramberri et al., 2012; Babuška and Söderlind, 2018; Liu, Möller, and Schuttelaars, 2021). Some specific areas that are part of the FE kernel evaluation have also received attention. For example, the stable and efficient way of interpolating polynomials using barycentric interpolation is known, see Higham (2004), Berrut and Trefethen (2004), and Laughton et al. (2022). Stability and interpolation accuracy, especially for high-order polynomials, are also studied in Brubeck et al. (2025).
Perhaps the only reference that studies rounding errors in FE kernels, including reference basis evaluation, geometry evaluation, construction of gradient transformations, quadrature accumulation, and local-to-global assembly, is Croci and Wells (2024). However, Croci and Wells (2024) provide theoretical a priori rounding error bounds while the current work focuses on practical a posteriori rounding error estimates.
Main contributions The main contributions of this paper are as follows.
-
We present the first software framework for automated a posteriori rounding error estimation of FE computations.
-
We implement a custom C++ data type, running_error_t, and integrate it with templated kernels generated by the FEniCS Form Compiler (FFCx) and the FEniCSx assemblers. The type computes rounding error estimates alongside the values in two modes: “worst” for running error bounds, and “exact” for tighter signed error estimates based on higher-precision arithmetic and error-free transformations. In the Neo-Hooke benchmarks, the slowdown is at most relative to plain assembly in most tested cases, making the estimates practical for diagnosing rounding errors in FE kernels.
-
We demonstrate that both error modes detect the numerical instability of a naïve Neo-Hooke strain energy evaluation in the small-deformation regime, despite the bounded condition number of the underlying problem. Both modes also capture the improved accuracy obtained with a stable implementation using a series expansion.
-
We show that the error estimates capture the growth of rounding errors when assembling a Laplace operator on a mesh with near-degenerate, needle-like triangles. The estimates reflect the asymptotic scaling predicted by conditioning arguments: the “worst” mode captures worst-case growth, while the “exact” mode also captures milder growth arising from cancellations between roundoffs.
Paper outline Section 2 introduces the floating-point model and notation and derives running error bounds and alternative signed error estimates. Section 3 describes their implementation in automatically generated FE kernels. Section 4 presents the Neo-Hooke and near-degenerate-mesh examples, including conditioning analyses, comparisons of the error estimates, and performance measurements.
PREPRINT
2.1 Standard floating-point model and notation
In this work we follow the notation of Higham (2002). Let be a faithful rounding function, returning if it is exactly representable and otherwise either of the two adjacent floating-point numbers that bracket . The IEEE standard model of floating-point arithmetic, see Higham (2002, Eq. 2.4), guarantees on most modern hardware, excluding underflow and overflow, that computing an operation op incurs a relative error no worse than machine epsilon , i.e.,
The same applies to the representation of a number in the floating-point system,
The machine epsilon is a property of a floating-point system defined as , where is the base and is called precision. The machine epsilon is related to unit roundoff . For instance, the IEEE 64-bit double precision format has and , so . For the IEEE-754 binary formats we will use symbols , , and for the machine epsilon of the 16-, 32-, and 64-bit precision formats, respectively.
Another useful variant of the IEEE standard model is from Higham (2002, Eq. (2.5)),
which is implied by the model (1) whenever x op y lies in the range of the floating-point system. Both models (1) and (3) are useful both for a priori and a posteriori rounding error analysis.
For mathematical library functions such as sine, cosine, and logarithm, a relative error bound of is not generally guaranteed. The accuracy depends on the math library and its implementation.
Notation We indicate with a generic constant. It may take a different value at each occurrence, and is consistent only within a single equation. We say that and are asymptotically equivalent for and write if . The means that is approximately , without specifying a precise sense of approximation. If there exists such that for all sufficiently close to zero we use the Big-O symbol . Finally, a bare always denotes a relative rounding perturbation, as in Eq. (1), while applied to a field, such as or , denotes its first variation.
2.2 Running error analysis
Running Error Analysis (REA) is a technique for computing a posteriori bounds on forward rounding errors. Let x and y denote the exact inputs to an operation and and their floating-point approximations. We distinguish three results:
The forward error separates into the local rounding error introduced by the current operation and the error propagated from its inputs:
For the local contribution, Eq. (3) gives with . Hence,
This bound is computable from the result of the operation.
The propagated contribution depends on the input errors. If these satisfy
we estimate the propagated error using a first-order Taylor expansion about the exact input pair , with increments :
PREPRINT
Therefore we obtain the estimated bound for the propagated error
Combining this estimate with the local bound in Eq. (5) and applying the triangle inequality to Eq. (4) gives
(REA error bound).
(9)
This is an approximate, worst-case upper bound to first-order in , and . The resulting error estimate is stored alongside the computed value and propagated as an input-error estimate in subsequent operations. To obtain a computable estimate, we evaluate the derivatives at instead. For a twice continuously differentiable operation, this replacement changes the propagated-error estimate only by terms of second order in the input errors, which are absorbed into the higher-order terms. All derivatives in the subsequent error estimates are evaluated at .
| Operation | Running error bound |
|---|---|
Table 1: Running error bounds for a few elementary operations.
Running error bounds for a few elementary operations are included in Tab. 1. They can be found in Zahradnicky and Lórencz (2010, Tab. 1).
2.3 Signed error estimates
Taking absolute values in the running bound prevents cancellation between error contributions. Signed error estimates retain this information. The following discussion reviews their construction using first-order propagation, higher-precision evaluation, and error-free transformations. Computing local rounding errors exactly and propagating input errors through a first-order expansion is related to the pair arithmetic developed in Lange and Rump (2020).
Let op be a reference value computed in a sufficiently high-precision or arbitrary-precision floating-point format. Retaining the signs of the propagated errors and combining the first-order expansion in Eq. (7) with this reference value gives the signed error estimate
(Signed error estimate).
(10)
Another option is to use error-free transformations and compute the local rounding error exactly. An error-free transformation computes the floating-point result and a residual such that . Applied to the perturbed inputs, it gives , so the local forward error is . For the operation of addition, TwoSum or FastTwoSum (Dekker, 1971; Ogita, Rump, and Oishi, 2005) are the most commonly used error-free transformations. An error-free transformation for the multiplication could be achieved with TwoProductFMA (Ogita, Rump, and Oishi, 2005, Alg. 3.5), if the fused multiply-add (FMA) instruction is available, or with TwoProduct at the cost of more floating-point operations (Ogita, Rump, and Oishi, 2005, Alg. 3.3).
The error estimates based on Eq. (10) are signed error estimates, unlike the nonnegative bound in Eq. (9). While neither of them can be used as a certified bound, as, e.g., in interval arithmetic (Moore, Kearfott, and Cloud, 2009), a large value of the estimated error might suggest that 1) the problem we are dealing with is ill-conditioned, or 2) the numerical computation is unstable.
We remark that while the models Eq. (1) and Eq. (3) provide accurate upper bounds for rounding errors, the best-case lower bound is always zero since floating-point computations can be exact for specific input values, see Muller et al. (2018, §4.2). Automatically computing more informative lower bounds is, in general, nontrivial.
In this work, we implement this signed-error approach alongside running error bounds in a common arithmetic type and integrate both modes into automatically generated FEniCSx kernels and finite element assembly. This integration enables their accuracy and computational cost to be compared within the same assembly workflow.
PREPRINT
3 Implementation for automatically generated FE kernels
The implementation of the running error bounds for the numerical experiments in this paper was done in the REA library (Habera, Kühner, et al., 2026) in combination with the dolfiny package (Zilian, Habera, and Kühner, 2026), which is based on the FEniCSx finite element ecosystem (Baratta et al., 2025). FEniCSx assembles finite element forms representing weak formulations of PDEs into scalars, vectors, or matrices. The domain-specific language in which the PDE is defined is the Unified Form Language (UFL), see Alnæs et al. (2014). FFCx (FEniCS, 2026) translates the symbolic, high-level PDE description into a lower-level programming language.
Custom backend Firstly, we have developed a custom backend for the form compiler, see Kühner et al. (2026), which allows us to generate templated C++ code. The templated code is necessary for us in order to compile the kernel with a custom data type that overloads arithmetic operations to track the running error. The signature of a generated FFCx kernel is shown in Fig. 1.
template <typename T, typename U> void tabulate_tensor(T* __restrict A, const T* __restrict w, const T* __restrict c, const U* __restrict coordinate_dofs, const std::int32_t* __restrict entity_local_index, const std::uint8_t* __restrict quadrature_permutation);
Figure 1: Signature of a generated FFCx kernel.
The body of the kernel follows the typical structure described in Baratta et al. (2025). It produces arrays of basis functions evaluated at quadrature points, evaluates the geometry information (Jacobian determinant and other transformations), builds the evaluation tree for the expressions representing the integrands, and finally loops over quadrature points and free indices of the accumulation tensor A, which is the only output of the kernel.
Custom C++ type Secondly, a custom C++ type called running_error_t<T, Mode> implements various running error bounds discussed above. This type is provided by the REA library, which is distributed as a single header file and requires C++23 Habera, Kühner, et al. (2026). Its data layout is shown in Fig. 2. The first N bits store the value of the number, followed by the error (nonnegative bound or signed estimate) stored in the subsequent N bits. The total size of the structure is 2N bits.
template <typename T, ErrorMode Mode = ErrorMode::WORST> struct running_error_t { T val; T err; };

Figure 2: Layout of the custom running error type, running_error_t. The memory layout for running_error_t<T> with an N-bit type T is shown on the right.
The optional ErrorMode takes values:
• WORST for the REA bounds from Eq. (9). We will refer to this mode as “worst”.
• EXACT for the higher precision error estimate from Eq. (10). This mode will be referred to as “exact”.
In the “exact” mode, we use error-free transformations for addition and subtraction (TwoSum) and multiplication (TwoProductFMA). For division, we use FMA-based error estimation, following CPairDiv in Lange and Rump (2020). Although the FMA residual can be computed exactly under appropriate assumptions, the quotient correction obtained from it is subject to rounding. The current implementation does not fully account for subnormal values and underflow in multiplication and division, which can invalidate the exactness of the computed residuals. Suitable scaling and squeezing techniques could mitigate these range limitations.
We require C++23 for the use of fixed-width, floating-point types: std::float16_t, std::float32_t and std::float64_t.
PREPRINT
For mathematical functions such as sine, cosine, and logarithm, the “worst” mode uses as the assumed local relative error bound, although the accuracy of the math library may not satisfy this assumption. In the “exact” mode, we compute a reference value in a wider floating-point format. We use the format of twice the width of T, if available. For example, on many aarch64 platforms, the wider formats for 16-, 32-, and 64-bit formats are available in the form of 32-, 64-, and 128-bit IEEE-754 formats, see Arm Limited (2026, Sec. 10.1.1, Tab. 3). However, on many x86-64 platforms there is only the extended double precision long double format with 80-bit width and 64-bit significant precision.
All basic arithmetic operators for running_error_t are overloaded to follow the semantics of the respective error modes. For example, in Fig. 3 the operator* between two running error numbers is overloaded to compute the value in the precision of type T, and to compute the error bound for the “worst” mode, according to Eq. (9).
running_error_t operator*(const running_error_t& other) const { const T new_val = val * other.val; return running_error_t{ new_val, abs(other.val) * err + abs(val) * other.err + eps * abs(new_val); // value // error }
Figure 3: Example overloading of the multiplication operator between two running error numbers for the “worst” mode.
Operator overloading for the local-error propagation is not a novel technique, and has been used in the CENA prototype (Hovland and Hückelheim, 2021), and the Shaman library (Demeure et al., 2022), while the concepts were already presented in Zahradnický and Lórencz (2010). We could have also used any other publicly available software implementation reviewed in Section 1. Instead, we have decided to implement the custom running_error_t because: 1) the implementation is simple, with roughly 1000 lines of C++23 header-file code, 2) we use different error modes to compare the accuracy of different estimates, 3) we require full control over the binary layout of the type, in order to interface C++ and Python/NumPy, 4) we require support for the 16-bit floating-point type std::float16_t.
FEniCSx is implemented in C++, but its Python interface is generated using nanobind (Wenzel, 2022), so we require a C++ type that is compatible with both the constraints on the template type in FEniCSx and the conversion between nanobind and NumPy arrays. Nanobind's ndarray is based on the DLPack array exchange protocol, which unfortunately causes it to be more restrictive. There is no support for conversion of a structured C++ type running_error_t into a structured NumPy array. We bypass this limitation by exporting the running_error_t as a NumPy scalar type of the same width (e.g., complex128 for running_error_tstd::float64_t, or float32 for running_error_tstd::float16_t), and providing a view of the value and the error.
Overall, the implementation can be summarized in the following steps:
-
FFCx and ffcx-backends generate a templated C++ FE kernel matching the signature in Fig. 1,
-
dolfiny compiles the kernel with running_error_t<T, Mode> from rea, using CppJIT's Just-In-Time compilation (compiler-research, 2026),
-
dolfiny compiles the dolfinx assembly loops and other FE constructs for running_error_t<T, Mode>,
-
dolfinx assembles into scalars, vectors, or matrices of the type running_error_t<T, Mode>.
By the end of the process we have two assembled quantities. For a vector assembly, this returns a vector of values assembled in precision T and a vector of error bounds/estimates. Both returned vectors have the same dimensions.
4 Examples
We propose two examples aimed to demonstrate the accuracy and performance of the running error bounds. First, we consider the evaluation of the hyperelastic Neo-Hooke energy. We show how the developed framework detects numerical instabilities in its naïve implementation.
Second, we consider the assembly of a Laplace operator on a near-degenerate mesh. Such a problem is ill-conditioned (Croci and Wells, 2024) and our running error estimates correctly capture this property.
PREPRINT
4.1 Hyperelastic energy of the Neo-Hooke model
The effects of rounding errors in the evaluation of finite-strain hyperelastic models were recently studied by Shakeri et al. (2024). We illustrate the problem on a version of the Neo-Hooke hyperelastic energy, namely the variant in Pence and Gou (2015, Eq. 2.11). Under a 2D plane-strain kinematic simplification the strain energy density is given by
where is the shear modulus, is the first Lamé parameter of the underlying 3D model, and the trace of the right Cauchy–Green tensor is denoted . The deformation gradient is computed from the displacement , and the volumetric deformation is measured by . In the above, both tensors and are two-dimensional, since they were reduced under the plane-strain assumption. We followed the plane-strain reduction for simpler visualization below, but all arguments and observations carry over to the original 3D problem.
The key observations in Shakeri et al. (2024) are that the small increment in the deformation gradient loses digits of accuracy for displacement gradients of order , since the displacement gradient is added to the identity tensor. The constant contribution of the identity is later subtracted, either in or in , but the lost digits that represent the effective strain energy contribution cannot be recovered. This is important in particular for small deformations, and it is a typical example of catastrophic cancellation. The authors present a solution based on the reformulation using the Green–Lagrange strain tensor , which has the property
i.e., it has no constant contributions for small deformations. In addition to that, specialized implementations of the function using C99 must be used to preserve the numerical stability.
An alternative approach is presented in Habera and Zilian (2026). It is valid only in the regime of small deformations, since it is based on the series expansion of the strain energy in a small dimensionless parameter that measures the magnitude of the deformation, proportional to . The strain energy density expansion reads
with the second- and third-order contributions in
(14)
where the split of the Green–Lagrange strain tensor is with linear and non-linear strain contributions.
Problem setup To demonstrate the catastrophic cancellation in the energy expression in Eq. (11), and the behaviour of our running error bounds, we assemble two linear forms
for test functions , where is a space of cell-wise constant functions. The inverse cell volume can be understood as an inverse Riesz map, so the assembled vector has the meaning of a cell-averaged strain energy density function. The forms and are assembled for a provided displacement field , where is a vector-valued continuous Lagrange space of degree . We denote the assembled vectors as where is the -th Lagrange basis function. The displacement field is computed in a pre-processing step as a solution to a cantilever deformation problem shown in Fig. 4, using a simpler St. Venant–Kirchhoff material law, and a prescribed traction load . The input errors associated with the displacement degrees of freedom are initialized randomly at the scale of machine precision, using a fixed seed.
Material parameters were chosen to be representative of steel, with shear modulus GPa and first Lamé parameter GPa, which follows from a Young’s modulus of 200 GPa and Poisson’s ratio . The applied traction is set to .
PREPRINT

Figure 4: Cantilever deformation problem for the Neo-Hooke cancellation example.

(a) Assembled unstable strain energy density W (in Pa).

(b) Assembled stable strain energy density (in Pa).
Figure 5: Comparison of the unstable and stable expressions for the strain energy density. Figures use a logarithmic colormap.
Spatial distribution of the error In this first example, we assemble the two linear forms into vectors using the 32-bit single precision floating-point format, i.e., we use running_error_tstd::float32_t, while the mesh geometry, and geometric quantities are stored and computed in 64-bit double precision numbers. The load scale is set to , which results in the deformation scale varying between and .
Results for the two energy densities W and are shown in Fig. 5. The unstable strain energy density from Eq. (11) shows cells with a complete loss of accuracy. Additionally, we observe cells with negative strain energy densities. On the other hand, the more stable series expansion in Eq. (13) leads to milder rounding errors throughout the mesh.

(a) Rel. error estimate for W and “exact” mode.

(c) Rel. error bound for W and “worst” mode.

(b) Rel. error estimate for and “exact” mode.

(d) Rel. error bound for and “worst” mode.
Figure 6: Comparison of different error estimation modes for stable and unstable Neo-Hooke strain energy density expressions. Figures use a logarithmic colormap.
The error estimates derived for the “exact” and “worst” modes are shown in Fig. 6. We compute the relative rounding error estimate of the strain energy density evaluation, i.e.,
where is the error estimate provided by the developed framework, and is the double precision evaluation of the stable expression. For the “worst” mode the estimate is a nonnegative approximate bound, ,
PREPRINT
while for the “exact” mode the estimate has a sign, . The left column represents the unstable expression. The “exact” mode produces the relative error estimates as large as , while their smallest value is not below . These errors are large, given that we would expect an accurate algorithm to achieve relative errors of the order of the 32-bit single precision machine epsilon .
The situation is much improved for the stable strain energy expression based on the expansion, shown in the right column of Fig. 6. Indeed, the “exact” mode estimates relative errors in the range between and , which is satisfactory.
Dependence of the error on the deformation scale As a second experiment, we alter the scale of the load in the pre-processing step. To characterize the deformation scale, we compute a dimensionless quantity
where is the maximum Euclidean norm of over the whole domain . The last equivalence holds in the sense of the limit , since we are interested in the small deformation regime, and the pre-processing solution has no rigid body modes.

std::float32_t unstable "exact"
std::float32_t unstable "worst"
std::float32_t stable "exact"
std::float32_t stable "worst"
deformation scale
Figure 7: Maximum relative rounding error of the Neo-Hooke strain energy density as a function of the deformation scale . The stable, series-based expansion has for a small deformation a constant error approximation, while the unstable expression shows rounding error scaling as . The dashed horizontal line marks the machine epsilon of single precision.
For a very small deformation, , we expect the rounding errors in the computation of to grow relative to the value of the strain energy density. This is shown in Fig. 7, where we plot the maximum relative error estimate , with the maximum taken over all cells in the mesh.
Figure 7 confirms the earlier observation that the unstable expression has relative rounding errors dependent on the scale of the deformation, while the stable expression retains a flat behaviour. It is measured in both modes, “worst” and “exact”. For the stable expression, both have a nearly flat curve independent of the deformation scale. It suggests we are dealing with a problem that has a bounded condition number.
Conditioning The Neo-Hooke example is informative because it shows a problem with a bounded condition number that is implemented by a numerically unstable algorithm. Let us consider the problem of the evaluation of the strain energy density function of the Neo-Hooke material as a function of the displacement field . The relative condition number is usually defined as (see Trefethen and Bau (1997, Eq. (12.1)))
where is an arbitrary perturbation direction and is the directional derivative of . The relative condition number measures the ratio of the relative change of the perturbed output to the
PREPRINT
relative change of the perturbed input. If the relative condition number is moderate, e.g., , we say that the problem is well-conditioned. The choice of the norm in the definition above depends on the context. Here, we consider the condition number of the evaluation of with respect to the (finite-dimensional) coefficients of the FE function .
Lemma 1 (Condition number of the strain energy density evaluation). Let and , and let be a continuous, piecewise linear displacement field that satisfies the cell-wise non-rigid body modes (non-RBMs) assumption, i.e.,
for a fixed , independent of the deformation scale, and each cell in the triangulation of the domain , where is the maximum Euclidean norm on the cell . All matrix norms are Frobenius norms. Then, on each fixed cell , there exists such that the relative condition number of the evaluation of the Neo-Hooke strain energy density in Eq. (11) is bounded whenever , i.e.,
The supremum is over perturbations in the local finite element space . The constants and depend on the material parameters and , dimension , the non-RBMs constant , and the cell through its diameter and its shape. In particular, the bound is independent of the deformation scale .
The proof is given in Appendix A.
Lemma 1 establishes that, on a fixed mesh, the relative condition number of the strain energy density evaluation remains bounded as the deformation scale decreases, under the stated assumptions. Consequently, a backward stable evaluation with relative input perturbations of order has relative forward error of order . The lemma is stated cell-wise, and taking as the maximum over the cells gives a uniform condition-number bound on a fixed mesh. The lemma asserts independence of the deformation scale rather than a small constant. For the cantilever of Fig. 4 the cells near the loaded end displace much more than they strain, and therefore carry a large . The numerical experiments in Fig. 7, where the stable expression has an error estimate independent of the deformation scale, are consistent with this prediction. The unstable expression scales as , which could be intuitively explained: intermediate quantities such as and remain of order one as the deformation decreases, and their evaluation can introduce absolute rounding errors of order . These errors need not cancel when the intermediate quantities are combined to obtain the energy. Since the exact energy decreases quadratically with the deformation scale, an absolute error of order produces relative errors of order .
Performance Performance of the rounding error estimates is essential. In fact, if it were not for the performance considerations, one could always argue for computing a reference value in much higher precision and evaluating the exact rounding error. As we discussed in the literature overview, the use of high-precision floating-point types is expensive. This is the case for emulated precision, e.g., when computing the rounding error for a double precision value, but also when using a double precision value as a reference value for single precision computation. For example, NVIDIA specifies the Rubin GPU at 4 Pflop/s for dense float16 operations, which is a factor of 121 above the throughput of 33 Tflop/s for scalar float64 operations, see NVIDIA Corporation (2026). This argument supports the use of running error bounds, since there is a larger performance margin for additional error computations.
The measured cost of the error estimation is summarized in Tab. 2. Benchmarks were executed on a MacBook Pro 2024 with an Apple M4 CPU and 16 GB of memory, in an aarch64 (ARMv8-A) Linux container running Ubuntu 26.04.1 LTS with glibc 2.43, GCC 15.2.0 and Clang 21.1.8. The CPU provides hardware 16-bit precision arithmetic and FMA, but no hardware 128-bit format, so the 128-bit reference format of the “exact” mode is emulated in software by the libgcc runtime. The “worst” mode is inexpensive, with a slowdown of up to over the plain std::float64_t assembly. We measure the same slowdown also for the “exact” mode, with the exception of three setups shown in red. These are the runs with std::float64_t and the unstable expression. This is due to the calls to the logarithm function (only present in the unstable variant, the expansion does not have any transcendental functions) for the 128-bit reference format, which does not have an optimized implementation. This results in a slowdown of up to .
All slowdowns vary only mildly with the number of cells, i.e., the error estimation adds an approximately constant per-cell overhead and does not change the linear scaling of the assembly.
However, none of the tested FE kernels exploit the dense matrix-matrix multiplication to saturate the peak throughput, and the kernels are memory-bandwidth bound. Even for high-degree polynomial kernels the generated code contains mostly scalar instructions, and scalar arithmetic throughput depends on the processor, operation, and precision, so the quoted peak throughput ratio does not directly predict the benefit of reduced precision in these kernels.
PREPRINT
| # cells | type | unstable | stable | ||||
|---|---|---|---|---|---|---|---|
| plain | “worst” | “exact” | plain | “worst” | “exact” | ||
| 2708 | std::float64_t | 0.083±0.006 | (1.80×) | (15.57×) | 0.095±0.002 | (2.67×) | (1.93×) |
| std::float32_t | (2.01×) | (1.74×) | (3.46×) | (2.09×) | |||
| 29030 | std::float64_t | 0.638±0.012 | (2.60×) | (21.34×) | 0.882±0.027 | (3.10×) | (2.01×) |
| std::float32_t | (2.78×) | (2.48×) | (2.95×) | (2.11×) | |||
| 116054 | std::float64_t | 2.43±0.02 | (2.50×) | (21.54×) | 3.17±0.02 | (3.18×) | (2.20×) |
| std::float32_t | (2.72×) | (2.39×) | (3.28×) | (2.33×) | |||
Table 2: Assembly times in milliseconds for the unstable and stable Neo-Hooke strain energy expressions, for the plain std::float64_t kernel and the “exact”/“worst” error estimation modes. The “type” column gives the floating-point type the assembly is performed in. The plain kernel is always std::float64_t and is shared by both rows of a group. The slowdown relative to the plain kernel is given in brackets. Values are reported as mean ± standard deviation over the 90 fastest of 100 repeated runs.
4.2 Laplace operator on a near-degenerate mesh
In this example, we focus on rounding errors introduced in the computation of geometric quantities. Let us consider the evaluation of the weak discrete Laplace operator on the space of continuous Lagrange functions of degree on a triangulation of a domain :
which is a bilinear form .

Figure 8: Square triangular mesh with near-degenerate cells, and the distance to the degenerate mesh in unscaled coordinates denoted . Vertices of the near-degenerate cell are , and .
We assemble the bilinear form on the mesh shown in Fig. 8. The mesh is produced by a right-diagonal split of a uniform 4-by-4 square discretization of a unit square. For the purpose of avoiding exactly representable coordinates, we scale the whole mesh by a factor of . We displace the center node in the direction so that its distance to the nearest node in the unscaled mesh is . The global matrix for a linear Lagrange discretization is
where and are the linear Lagrange basis functions. Methods developed in this work provide the approximate error bound for the “worst” mode, or a signed error estimate , for each
After scaling by , the physical node separation is .
PREPRINT
element of the global matrix. In order to visualize relative errors in the assembly process, we compute
The denominator represents an energy-like normalization, and for the Lagrange basis . For the value of the reference we use the matrix assembled in double precision. The quantity measures the row-wise maximum energy-normalized relative error estimate. Taking the maximum over the -th row allows us to visualize the assembled value and its error bounds in a mesh plot, which is done in Fig. 9. We can see, similarly to the previous example, that the “exact” error mode in Fig. 9b is much tighter than the error bound in Fig. 9c, which is based on the “worst” mode.



(a) Max. matrix entry in the -th row .
(b) Max. rel. error estimate , “exact” mode.
(c) Max. rel. error bound , “worst” mode.
Figure 9: Row-wise maximum entries of the Laplace operator , and the maximum row-wise relative error bound/estimate, for the “exact” and “worst” modes and std::float32_t single precision. The experiment was run for , so the degenerate triangle is not visible in the mesh. Figures use a logarithmic colormap.

std::float16_t "exact"
std::float16_t "worst"
std::float32_t "exact"
std::float32_t "worst"
std::float64_t "exact"
std::float64_t "worst"
Figure 10: Maximum relative rounding error of the assembled Laplace operator as a function of the distance , for the std::float16_t, std::float32_t, and std::float64_t precisions and the “exact”/“worst” error estimation modes. Dashed horizontal lines mark the machine epsilon of each precision.
Additionally, we measure the maximum error relative to the maximum matrix entry,
PREPRINT
and plot it over varying distances . This is shown in Fig. 10 for three different kernel precisions std::float16_t, std::float32_t, and std::float64_t. The “exact” error mode shows rounding errors behaving as for all three precisions, with the error being of the order of machine epsilon for distances . The “worst” mode is more pessimistic as expected, but more importantly it keeps the same asymptotic behaviour. There are data-points excluded for half-precision std::float16_t, for , due to underflow or overflow.
Conditioning Numerical experiments from Fig. 10 suggest that the problem of assembling the global matrix from given mesh coordinates is not well-conditioned in the limit of , since the relative forward error grows as even in the “exact” mode. This result agrees with the theoretical bounds derived in Croci and Wells (2024). Theorem 4.5 in Croci and Wells (2024) shows that the upper bound on the relative rounding error in the evaluation of the Laplace geometry tensor is proportional to the condition number of the Jacobian matrix that maps from the standard reference triangle with vertices , , and . Indeed, for the needle triangle from Fig. 8 we have
which matches the measured relative error in Fig. 10.
5 Conclusion
This study investigates the rounding errors in the assembly of finite element kernels. We rely on a posteriori techniques that compute the error estimate alongside the value, such as running error analysis. We have implemented a custom C++ data type running_error_t which tracks the rounding error in two modes: “worst” for the running error bounds and “exact” for a tighter signed error estimate based on a higher-precision floating-point format and error-free transformations. The running_error_t is passed to the C++ kernel that is generated by the FFCx library, and linked into the FEniCS assemblers.
We tested the framework on two examples. The naïve implementation of the strain energy density function of a Neo-Hooke hyperelastic material is expected to be numerically unstable in the regime of small deformations. However, the underlying problem has a bounded condition number. Both “worst” and “exact” error modes capture that. In addition, a solution based on a series expansion provides improved accuracy, and both error modes suggest it. The performance of both modes is promising. In most cases they show a slowdown of up to compared to the plain assembly. This makes the proposed methods usable in practice with small overhead.
The second example is the assembly of a Laplace operator on a mesh that includes near-degenerate, needle-like triangles. We show that our error bounds estimate that rounding errors are growing with decreasing distance to the degenerate mesh. Both the “worst” and the “exact” error modes match the asymptotic scaling predicted by the conditioning arguments. The “worst” mode captures the worst case and ignores error cancellations, while the “exact” mode successfully captures smaller rounding error estimates arising from stochastic behaviour of roundoffs.
There are several limitations to the present work. The code generated by FFCx does not give fine control over the floating-point type. It distinguishes between the working type into which the scalars, vectors, or matrices are assembled, and the type for the geometry evaluation. For example, it is not possible to decide to perform evaluation of the geometric matrix using matrix multiply-accumulate with low-precision input, while accumulating into a high-precision result. In addition, one cannot choose to evaluate some parts of the bilinear form using high-precision computation (e.g., a non-linear material law), and others using low-precision numbers (e.g., a tabulation of basis functions).
Future work could focus on more robust handling of floating-point range effects in low-precision computations, such as overflow in the evaluation of geometry expressions, through suitable scaling and squeezing techniques. Another direction is to choose the precision of each operation dynamically based on the available running error estimate.
Acknowledgement
Matteo Croci has received support from the grants PID2023-146668OA-I00, RYC2022-036312-I, and CEX2021-001142-S, funded by MICIU/AEI/10.13039/501100011033 and cofunded by ESF+ and the EU. Matteo Croci is also supported by the Basque Government through the BERC 2026-2029 program. Paul T. Kühner and Andreas Zilian have received partial funding from the European Union and the European Defence Agency through project IMPACT I.
PREPRINT
A Proof of Lemma 1
Proof. Perturbations of the trace and determinant follow
(26)
and we can compute the perturbation in the strain energy density in Eq. (11) as
(27)
with an upper bound
On a fixed cell , the finite element inverse inequality gives for every , see Brenner and Scott (2008). Setting , , and , the non-RBMs assumption therefore gives
We can continue with bounds
and
(31)
for sufficiently small and , since we are considering the limiting case . Since , the remainder terms can be absorbed into for sufficiently small . For the condition number we then have
The quadratic energy expansion gives
Since , the remainder can be absorbed into the quadratic term for sufficiently small , giving for some . Substituting this bound into Eq. (32) and applying the inverse inequality and the non-RBMs assumption we finally have
References
Abdelfattah, Ahmad et al. (2021). “A survey of numerical linear algebra methods utilizing mixed-precision arithmetic”. In: The International Journal of High Performance Computing Applications 35.4, pp. 344–369. DOI: 10.1177/10943420211003313. URL: https://doi.org/10.1177/10943420211003313.
Alnæs, Martin S. et al. (2014). “Unified Form Language: a domain-specific language for weak formulations of partial differential equations”. In: ACM Transactions on Mathematical Software 40.2, pp. 1–37. DOI: 10.1145/2566630. URL: https://doi.org/10.1145/2566630.
Alvarez-Aramberri, J. et al. (2012). “On round-off error for adaptive finite element methods”. In: Procedia Computer Science 9, pp. 1474–1483. DOI: 10.1016/j.procs.2012.04.162. URL: https://doi.org/10.1016/j.procs.2012.04.162.
PREPRINT
Arm Limited (Jan. 2026). Procedure call standard for the Arm 64-bit architecture (AArch64). AAPCS64, release 2025Q4, Section 10.1.1, Table 3. Arm Limited. URL: https://github.com/ARM-software/abi-aa/blob/main/aapcs64/aapcs64.rst (visited on 08/17/2026).
Babuška, Ivo and Gustaf Söderlind (2018). “On roundoff error growth in elliptic problems”. In: ACM Transactions on Mathematical Software 44.3, pp. 1–22. DOI: 10.1145/3134444. URL: https://doi.org/10.1145/3134444.
Babuška, Ivo, Barna A. Szabó, and I. Norman Katz (1981). “The p-version of the finite element method”. In: SIAM Journal on Numerical Analysis 18.3, pp. 515–544. DOI: 10.1137/0718033. URL: https://doi.org/10.1137/0718033.
Baratta, Igor A. et al. (Dec. 2025). DOLFINx: the next generation FEniCS problem solving environment. DOI: 10.5281/zenodo.18101307. URL: https://doi.org/10.5281/zenodo.18101307.
Benz, Florian, Andreas Hildebrandt, and Sebastian Hack (2012). “A dynamic program analysis to find floating-point accuracy problems”. In: Proceedings of the 33rd ACM SIGPLAN Conference on Programming Language Design and Implementation. PLDI '12. Presents FpDebug. New York, NY, USA: Association for Computing Machinery, pp. 453–462. DOI: 10.1145/2254064.2254118.
Berrut, Jean-Paul and Lloyd N. Trefethen (2004). “Barycentric Lagrange interpolation”. In: SIAM Review 46.3, pp. 501–517. DOI: 10.1137/S0036144502417715. URL: https://doi.org/10.1137/S0036144502417715.
Braconnier, Thierry and Philippe Langlois (2002). “From rounding error estimation to automatic correction with automatic differentiation”. In: Automatic Differentiation of Algorithms: From Simulation to Optimization. Ed. by George Corliss et al. New York, NY: Springer, pp. 351–357. DOI: 10.1007/978-1-4613-0075-5_42.
Brenner, Susanne C. and L. Ridgway Scott (2008). The Mathematical Theory of Finite Element Methods. 3rd ed. Vol. 15. Texts in Applied Mathematics. New York: Springer. DOI: 10.1007/978-0-387-75934-0.
Brubeck, Pablo D. et al. (2025). “FIAT: improving performance and accuracy for high-order finite elements”. In: ACM Transactions on Mathematical Software 51.3, pp. 1–17. DOI: 10.1145/3748816. URL: https://doi.org/10.1145/3748816.
Chowdhary, Sangeeta, Jay P. Lim, and Santosh Nagarakatte (2020). “Debugging and detecting numerical errors in computation with posits”. In: Proceedings of the 41st ACM SIGPLAN Conference on Programming Language Design and Implementation. PLDI 2020. Presents PositDebug and the floating-point tool FPSanitizer. New York, NY, USA: Association for Computing Machinery, pp. 731–746. DOI: 10.1145/3385412.3386004.
Chowdhary, Sangeeta and Santosh Nagarakatte (2021). “Parallel shadow execution to accelerate the debugging of numerical errors”. In: Proceedings of the 29th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering. ESEC/FSE 2021. Presents PFPSanitizer. New York, NY, USA: Association for Computing Machinery, pp. 615–626. DOI: 10.1145/3468264.3468585.
– (2022). “Fast shadow execution for debugging numerical errors using error free transformations”. In: Proceedings of the ACM on Programming Languages 6.OOPSLA2. Presents EFTSanitizer, pp. 1845–1872. DOI: 10.1145/3563353.
compiler-research (2026). CppJIT: fast and automatic Python–C++ interoperability. GitHub repository. URL: https://github.com/compiler-research/cppjit.
Courbet, Clément (2021). “NSan: a floating-point numerical sanitizer”. In: Proceedings of the 30th ACM SIGPLAN International Conference on Compiler Construction. CC 2021. New York, NY, USA: Association for Computing Machinery, pp. 83–93. DOI: 10.1145/3446804.3446848.
Croci, Matteo and Garth N. Wells (2024). Mixed-precision finite element kernels and assembly: rounding error analysis and hardware acceleration. DOI: 10.48550/arXiv.2410.12614. arXiv: 2410.12614 [math.NA]. URL: https://arxiv.org/abs/2410.12614.
Dekker, Theodorus J. (1971). “A floating-point technique for extending the available precision”. In: Numerische Mathematik 18, pp. 224–242. DOI: 10.1007/BF01397083.
Demeure, Nestor et al. (2022). “Algorithm 1029: encapsulated error, a direct approach to evaluate floating-point accuracy”. In: ACM Transactions on Mathematical Software 48.4. Presents the Shaman library, 47:1–47:16. DOI: 10.1145/3549205.
Denis, Christophe, Pablo de Oliveira Castro, and Eric Petit (2016). “Verificarlo: checking floating point accuracy through Monte Carlo arithmetic”. In: 2016 IEEE 23rd Symposium on Computer Arithmetic (ARITH). IEEE, pp. 55–62. DOI: 10.1109/ARITH.2016.31.
FEniCS (2026). FFCx: the FEniCSx form compiler. https://github.com/FEniCS/ffcx. Version 0.12.0.dev0, accessed 2026-07-21.
Févotte, François and Bruno Lathuilière (Oct. 2016). VERROU: assessing floating-point accuracy without recompiling. HAL working paper. HAL identifier hal-01383417. URL: https://hal.science/hal-01383417.
FPTalks (2026). FPTalks community: floating-point tools and resources. https://fptalks.org/community.html. Accessed 2026-08-10.
Fried, Isaac (1986). “Round-off errors in the stiffness equation”. In: Computer Methods in Applied Mechanics and Engineering 57.2. DOI: 10.1016/0045-7825(86)90017-4. URL: https://doi.org/10.1016/0045-7825(86)90017-4.
PREPRINT
Graillat, Stef et al. (2011). “Stochastic arithmetic in multiprecision”. In: Mathematics in Computer Science 5.4. Presents the SAM library, pp. 359–375. DOI: 10.1007/s11786-011-0103-4.
Habera, Michal, Paul T. Kühner, et al. (2026). Running Error Analysis library. DOI: 10.5281/zenodo.23020888. URL: https://zenodo.org/doi/10.5281/zenodo.23020888.
Habera, Michal and Andreas Zilian (2026). Automated dimensional analysis for PDEs. DOI: 10.48550/arXiv.2601.06535. arXiv: 2601.06535 [cs.MS].
He, Yumeng and Pavel Panchekha (2026). Accurate residues for floating-point debugging. arXiv: 2604.06258. URL: https://arxiv.org/abs/2604.06258.
Higham, Nicholas J. (2002). Accuracy and Stability of Numerical Algorithms. 2nd ed. Philadelphia: Society for Industrial and Applied Mathematics. DOI: 10.1137/1.9780898718027. URL: https://doi.org/10.1137/1.9780898718027.
– (2004). “The numerical stability of barycentric Lagrange interpolation”. In: IMA Journal of Numerical Analysis 24.4, pp. 547–556. DOI: 10.1093/imanum/24.4.547. URL: https://doi.org/10.1093/imanum/24.4.547.
Higham, Nicholas J. and Theo Mary (2022). “Mixed precision algorithms in numerical linear algebra”. In: Acta Numerica 31, pp. 347–414. DOI: 10.1017/S0962492922000022. URL: https://doi.org/10.1017/S0962492922000022.
Hovland, Paul D. and Jan Hückelheim (2021). “Error estimation and correction using the forward CENA method”. In: Computational Science – ICCS 2021. Vol. 12742. Lecture Notes in Computer Science. Cham: Springer, pp. 765–778. DOI: 10.1007/978-3-030-77961-0_61.
Jézéquel, Fabienne and Jean-Marie Chesneaux (2008). “CADNA: a library for estimating round-off error propagation”. In: Computer Physics Communications 178.12, pp. 933–955. DOI: 10.1016/j.cpc.2008.02.003.
Jouppi, Norman P. et al. (2017). “In-datacenter performance analysis of a tensor processing unit”. In: Proceedings of the 44th Annual International Symposium on Computer Architecture. Association for Computing Machinery, pp. 1–12. DOI: 10.1145/3079856.3080246. URL: https://doi.org/10.1145/3079856.3080246.
Kirby, Robert C. and Anders Logg (2006). “A compiler for variational forms”. In: ACM Transactions on Mathematical Software 32.3, pp. 417–444. DOI: 10.1145/1163641.1163644. URL: https://doi.org/10.1145/1163641.1163644.
Kühner, Paul T. et al. (2026). FFCx-backends. DOI: 10.5281/zenodo.23034916. URL: https://zenodo.org/doi/10.5281/zenodo.23034916.
Lam, Michael O. and Barry L. Rountree (2016). “Floating-point shadow value analysis”. In: 2016 5th Workshop on Extreme-Scale Programming Tools (ESPT). Presents the SHVAL framework. IEEE, pp. 18–25. DOI: 10.1109/ESPT.2016.007.
Lange, Marko and Siegfried M. Rump (2020). “Faithfully rounded floating-point computations”. In: ACM Transactions on Mathematical Software 46.3. DOI: 10.1145/3290955.
Laughton, Edward et al. (2022). “Fast barycentric-based evaluation over spectral/hp elements”. In: Journal of Scientific Computing 90.2, p. 78. DOI: 10.1007/s10915-021-01750-2. URL: https://doi.org/10.1007/s10915-021-01750-2.
Liu, Jie, Matthias Möller, and Henk M. Schuttelaars (2021). “Balancing truncation and round-off errors in FEM: one-dimensional analysis”. In: Journal of Computational and Applied Mathematics 386, p. 113219. DOI: 10.1016/j.cam.2020.113219. URL: https://doi.org/10.1016/j.cam.2020.113219.
Melosh, R. J. (1973). “Inherited error in finite element analyses of structures”. In: Computers & Structures 3.5, pp. 1205–1217.
Melosh, R. J. and E. L. Palacol (Aug. 1969). Manipulation errors in finite element analysis of structures. Tech. rep. NASA CR-1385. Washington, DC: National Aeronautics and Space Administration. URL: https://ntrs.nasa.gov/citations/19690024982.
Menon, Harshitha et al. (2018). “ADAPT: algorithmic differentiation applied to floating-point precision tuning”. In: Proceedings of the International Conference for High Performance Computing, Networking, Storage, and Analysis. SC '18. IEEE Press, 48:1–48:13. DOI: 10.1109/SC.2018.00051.
Micikevicius, Paulius et al. (2022). FP8 formats for deep learning. DOI: 10.48550/arXiv.2209.05433. arXiv:2209.05433 [cs.LG]. URL: https://arxiv.org/abs/2209.05433.
Moore, Ramon E., R. Baker Kearfott, and Michael J. Cloud (2009). Introduction to Interval Analysis. Philadelphia, PA: Society for Industrial and Applied Mathematics. ISBN: 978-0-89871-669-6. DOI: 10.1137/1.9780898717716.
Muller, Jean-Michel et al. (2018). Handbook of Floating-Point Arithmetic. 2nd ed. Cham: Birkhäuser. ISBN: 978-3-319-76525-9. DOI: 10.1007/978-3-319-76526-6.
NVIDIA Corporation (2026). NVIDIA Vera Rubin NVL72. Accessed: 2026-09-07. URL: https://www.nvidia.com/en-us/data-center/vera-rubin-nvl72/.
Ogita, Takeshi, Siegfried M. Rump, and Shin'ichi Oishi (2005). “Accurate sum and dot product”. In: SIAM Journal on Scientific Computing 26.6, pp. 1955–1988. DOI: 10.1137/030601818.
PREPRINT
Pence, Thomas J and Kun Gou (Feb. 2015). “On compressible versions of the incompressible neo-Hookean material”. In: Mathematics and Mechanics of Solids 20.2, pp. 157–182. ISSN: 1741-3028. DOI: 10.1177/1081286514544258. URL: http://dx.doi.org/10.1177/1081286514544258.
Sanchez-Stern, Alex et al. (2018). “Finding root causes of floating point error”. In: Proceedings of the 39th ACM SIGPLAN Conference on Programming Language Design and Implementation. PLDI 2018. Presents Herbgrind. New York, NY, USA: Association for Computing Machinery, pp. 256–269. DOI: 10.1145/3192366.3192411.
Shakeri, Rezgar et al. (2024). “Stable numerics for finite-strain elasticity”. In: International Journal for Numerical Methods in Engineering 125.21, e7563. DOI: 10.1002/nme.7563. URL: https://doi.org/10.1002/nme.7563.
Shewchuk, Jonathan Richard (2002). “What is a good linear finite element? Interpolation, conditioning, anisotropy, and quality measures”. In: Proceedings of the 11th International Meshing Roundtable. Sandia National Laboratories, pp. 115–126. URL: https://people.eecs.berkeley.edu/~jrs/papers/elemj.pdf.
Simo, Juan C. and Thomas J. R. Hughes (1998). Computational Inelasticity. Vol. 7. Interdisciplinary Applied Mathematics. New York: Springer. DOI: 10.1007/b98904. URL: https://doi.org/10.1007/b98904.
Simo, Juan C., John G. Kennedy, and Sanjay Govindjee (1988). “Non-smooth multisurface plasticity and viscoplasticity: loading/unloading conditions and numerical algorithms”. In: International Journal for Numerical Methods in Engineering 26.10, pp. 2161–2185. DOI: 10.1002/nme.1620261003. URL: https://doi.org/10.1002/nme.1620261003.
Singh, Garima et al. (2023). “Fast and automatic floating point error analysis with CHEF-FP”. In: 2023 IEEE International Parallel and Distributed Processing Symposium (IPDPS). IEEE, pp. 1018–1028. DOI: 10.1109/IPDPS54959.2023.00105.
Trefethen, Lloyd N. and III Bau David (1997). Numerical Linear Algebra. Philadelphia, PA: Society for Industrial and Applied Mathematics. ISBN: 978-0-89871-361-9.
Utku, S. and R. J. Melosh (1984). “Solution errors in finite element analysis”. In: Computers & Structures 18.3, pp. 379–393.
Wenzel, Jakob (2022). nanobind: tiny and efficient C++/Python bindings. https://github.com/wjakob/nanobind.
Wilkinson, James H. (1986). “Error analysis revisited”. In: IMA Bulletin 22.11/12, pp. 192–200. URL: https://ima.org.uk/24908/error-analysis-revisited-1986/.
Williams, Samuel, Andrew Waterman, and David Patterson (2009). “Roofline: an insightful visual performance model for multicore architectures”. In: Communications of the ACM 52.4, pp. 65–76. DOI: 10.1145/1498765.1498785. URL: https://doi.org/10.1145/1498765.1498785.
Wriggers, Peter (2006). Computational Contact Mechanics. 2nd ed. Berlin, Heidelberg: Springer. DOI: 10.1007/978-3-540-32609-0. URL: https://doi.org/10.1007/978-3-540-32609-0.
Yi, Xin et al. (2024). “FPCC: detecting floating-point errors via chain conditions”. In: Proceedings of the ACM on Programming Languages 8.OOPSLA2, pp. 1504–1531. DOI: 10.1145/3689764.
Zahradnický, Tomáš and Robert Lórencz (2010). “FPU-supported running error analysis”. In: Acta Polytechnica 50.2, pp. 30–36. DOI: 10.14311/1167. URL: https://doi.org/10.14311/1167.
Zilian, Andreas, Michal Habera, and Paul T. Kühner (2026). dolfiny: high-level and convenience wrappers for DOLFINx. https://github.com/fenics-dolfiny/dolfiny. Version 0.12.0.dev0, accessed 2026-07-21.
Zou, Daming et al. (2020). “Detecting floating-point errors via atomic conditions”. In: Proceedings of the ACM on Programming Languages 4.POPL. Presents the ATOMU tool, 60:1–60:27. DOI: 10.1145/3371128.