我正在使用bordermatrix
来写矩阵,其系数在顶部和左侧:
我想在使用Mathjax的网站上显示类似的矩阵,但出现[数学处理错误]。您是否有bordermatrix
的MathJax替代品才能得到相同的结果?
答案 0 :(得分:1)
您可以使用以下结构:
\begin{align}
f(x) &= ax^2 + bx + c \\
&= \begin{array}{c c}
& \begin{array} {@{} c c c @{}}
u_1 & \cdots & u_q
\end{array} \\
\begin{array}{c}
e_1 \\ \vdots \\ e_n
\end{array}\hspace{-1em} &
\left(
\begin{array}{@{} c c c @{}}
u_{11} & \cdots & u_{1q} \\
\vdots & & \vdots \\
u_{n1} & \cdots & u_{nq}
\end{array}
\right) \\
\mbox{} % Blank line to match column names so as to align the = vertically
\end{array} \\[-12pt] % Correction for blank line
&= ax^2 + bx + c
\end{align}
取决于您是否将其与其他内容对齐,可能不需要我插入的垂直调整。
在Math.SE上进行了测试。