Files
marqdo/tests/ext/linalg-formula-smoke.mq.md
T
cflmyandCursor b5c07385e9 feat(markup): finish v0.3 stock migration and green gold
Migrate remaining .mq.md (tests/ext/public/examples), stop elevating local assigns to params, inject form_target in Go libweb, and skip live LLM gold without a real key.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-13 23:43:44 +08:00

476 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 = ping[^ok]

  1. ok

print text=ping-ok

print text=ping-fail