Hi folks! I’m trying to more or less replicate this matrix from a textbook (with slightly different expressions):
The expressions are easy, but I’m having some difficulty with the upper and lower triangular regions. I’d like to find a way to replicate the way this text shows it, with ellipses indicating where the zeros are, but I’m not (yet) experienced enough with typst to figure it out.
Here’s the source I’m using for my not-yet-complete poor man’s version of this:
$
bold(A) = mat(delim: #("[", "]"),
1/(3 h_0), 1/3 (1/h_1 - 1/h_0), 1/(3 h_1), 0, dots.h, dots.h, dots.h, dots.h, 0 ;
h_0, 2 (h_1 - h_0), h_1, 0, dots.down, , , , dots.v;
0, h_1, 2(h_2 - h_1), h_2, 0, dots.down,, , dots.v;
) $
And here’s how that looks (again, don’t worry about the expressions, just the triangular portion with the zeros):
The separated groups of dots are obviously not ideal. I can’t help but feel there’s a better way to do this. Any advice for me?