From cca97b4d29d6538445e91e7ac7b75df7712b9bbc Mon Sep 17 00:00:00 2001 From: Thomas Isensee <26852629+thomasisensee@users.noreply.github.com> Date: Fri, 17 Jul 2026 17:00:25 +0200 Subject: [PATCH] fix(docs): correct math expression --- include/ndtbl/grid.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/ndtbl/grid.hpp b/include/ndtbl/grid.hpp index 8815882..fc2b698 100644 --- a/include/ndtbl/grid.hpp +++ b/include/ndtbl/grid.hpp @@ -286,7 +286,7 @@ class Grid * per axis. Along each axis, the one-dimensional weights are the cubic * Lagrange basis weights for the selected four axis coordinates: * \f[ - * L_i(x) = prod_{j != i} (x - x_j) / (x_i - x_j) + * L_i(x) = \prod_{j \ne i} \frac{x - x_j}{x_i - x_j} * \f] * The multidimensional stencil is formed as the tensor product of these * one-dimensional Lagrange weights. Consequently, the stencil contains @@ -364,7 +364,9 @@ class Grid * Given four support point indices on the selected axis and a query * coordinate, this function computes the four Lagrange basis weights * - * w_i = prod_{j != i} (x - x_j) / (x_i - x_j) + * \f[ + * w_i = \prod_{j \ne i} \frac{x - x_j}{x_i - x_j} + * \f] * * using the actual axis coordinates `x_i`. The resulting weights define the * unique cubic polynomial, restricted to this local four-point stencil, that