How to perform Long multiplication/division using typst?

Here you go:

#table(
  columns: 8,
  align: (x, y) => if x == 7 {left} else {center},
  stroke: none,
  $6$,$5$,$4$,$3$,$2$,$1$,$0$,
  table.vline(),
  $n$,
  table.hline(),
  [],[],[],$-4$,$3$,$-2$,$1$,$v(n)$,
  [],[],[],$-1$, [], $1$, $4$, $x(n)$,
  table.hline(),
  [],[],[],$-16$,$12$,$-8$,$4$, [],
  [],[], $-4$, $3$, $-2$, $1$, [], [],
  $4$, $-3$, $2$, $-1$, [],[],[], [],
  table.hline(),
  $4$, $-3$, $-2$, $-14$, $10$, $-7$, $4$, $w(n) = v(n) * x(n)$ 
)

3 Likes