Files
marqdo/tests/ext/linalg-formula-smoke.mq.md
T
cflmyandCursor abcb141737 refactor: prefer link-index get across examples and tests
Migrate remaining footnote-style collection access in examples,
public/structure, and ext/lib smokes to [key](base); teach link-index in
structure pages and use bracket calls in the cafe journal example.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-14 12:54:38 +08:00

477 B


title: linalg formula smoke description: (AB)^T simplifies to B^T*A^T; ping ok. import la:ext/linalg/linalg.mq.md

main

A = > la.symbol name="A" rows=2 cols=3 B = > la.symbol name="B" rows=3 cols=2 P = > la.mul a=A b=B T = > la.transpose expr=P S = > la.simplify expr=T txt = > la.ascii expr=S

print text=txt

ping = > la.ping ok = ok

  1. ok

print text=ping-ok

print text=ping-fail