Ship runnable public how-to pages, T_ascii/转置文本 one-step display, explicit auto-simplify, and mark formula-doc F1–F3 complete. Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
611 B
Markdown
30 lines
611 B
Markdown
---
|
|
title: Transpose identity (formula document)
|
|
description: (AB)^T = B^T A^T as a runnable lecture fragment.
|
|
import la:ext/linalg/linalg.mq.md
|
|
---
|
|
|
|
# Transpose reverses products
|
|
|
|
Declare shapes in a table, form \(P = AB\), then check \((AB)^\top = B^\top A^\top\) by running the document.
|
|
|
|
# main
|
|
|
|
`shapes` =
|
|
|
|
| @ | name | rows | cols |
|
|
|---|------|------|------|
|
|
| 1 | A | 2 | 3 |
|
|
| 2 | B | 3 | 2 |
|
|
|
|
*`env` = > la.declare table=`shapes`*
|
|
*`A` = env[^A]*
|
|
*`B` = env[^B]*
|
|
*`P` = `A` * `B`*
|
|
*`t` = > `P`.T_ascii*
|
|
> print text=`t`
|
|
1. `t` == "B^T*A^T"
|
|
> print text=identity-ok
|
|
2. *
|
|
> print text=identity-fail
|