如何破解矩阵?

如何破解矩阵?

我想在 A5 纸上写 10 x 10 矩阵,但空间不够。所以我想将矩阵分成两部分。

第一部分包含第一列到第五列,第二部分包含第六列到第十列。

这是我的代码

$$
    \begin{bmatrix}
    -1.25612&4.57139&1.18800&4.75634&11.3930\\
    25.3546&-23.9185&-9.25578&-23.5826&-67.0936\\
    2.62290&-2.92613&2.88630&-2.21070&-7.27543\\
    -10.8734&11.6225&3.87934&13.1553&29.5466\\
    -17.7935&18.9282&6.67018&17.2205&50.4455\\
    1.69807&-1.77634&-0.784606&-1.62226&-4.65618\\
    2.28798&-2.41496&-0.895028&-2.00945&-6.46447\\
    4.84056&-5.05856&-2.17046&-4.53312&-12.3609\\
    13.3794&-14.3065&-4.53767&-11.9704&-35.3721\\
    -1.75425&1.83716&0.890361&1.65914&4.16173
    \end{bmatrix}\\
    \begin{bmatrix}
    7.62531&9.29222&8.93318&4.90767&11.4612\\
    -51.2563&-56.3985&-46.4690&-25.0533&-62.6778\\
    -4.89938&-6.99693&-4.81757&-2.51625&-5.84317\\
    22.3327&25.8681&20.8973&11.1549&28.0619\\
    36.6216&39.8738&33.6386&18.2052&45.5202\\
    0.0240615&-4.11393&-3.63169&-1.85983&-4.85244\\
    -4.73874&-2.65149&-4.53585&-2.55040&-6.00507\\
    -9.81447&-9.80620&-5.48529&-4.55776&-11.8261\\
    -26.0706&-31.2828&-24.5042&-9.49538&-32.9412\\
    2.04859&4.16513&2.76542&1.25894&6.29555
    \end{bmatrix}
    $$

但是上面的代码不能分成两部分,并且括号出现了2次。

如何破解矩阵?

答案1

您可以使用multline以及siunitx功能来漂亮地打印数据。

\documentclass{article}
\usepackage{amsmath,siunitx}

\begin{document}

\begin{multline*}
\left[
    \begin{tabular}{ @{} *{5}{S[table-format=-2.5,group-digits=false,round-mode=places,round-precision=5]} @{} }
    -1.25612&4.57139&1.18800&4.75634&11.3930\\
    25.3546&-23.9185&-9.25578&-23.5826&-67.0936\\
    2.62290&-2.92613&2.88630&-2.21070&-7.27543\\
    -10.8734&11.6225&3.87934&13.1553&29.5466\\
    -17.7935&18.9282&6.67018&17.2205&50.4455\\
    1.69807&-1.77634&-0.784606&-1.62226&-4.65618\\
    2.28798&-2.41496&-0.895028&-2.00945&-6.46447\\
    4.84056&-5.05856&-2.17046&-4.53312&-12.3609\\
    13.3794&-14.3065&-4.53767&-11.9704&-35.3721\\
    -1.75425&1.83716&0.890361&1.65914&4.16173
    \end{tabular}
\right.
\\
\left.
    \begin{tabular}{ @{} *{5}{S[table-format=-2.5,group-digits=false,round-mode=places,round-precision=5]} @{} }
    7.62531&9.29222&8.93318&4.90767&11.4612\\
    -51.2563&-56.3985&-46.4690&-25.0533&-62.6778\\
    -4.89938&-6.99693&-4.81757&-2.51625&-5.84317\\
    22.3327&25.8681&20.8973&11.1549&28.0619\\
    36.6216&39.8738&33.6386&18.2052&45.5202\\
    0.0240615&-4.11393&-3.63169&-1.85983&-4.85244\\
    -4.73874&-2.65149&-4.53585&-2.55040&-6.00507\\
    -9.81447&-9.80620&-5.48529&-4.55776&-11.8261\\
    -26.0706&-31.2828&-24.5042&-9.49538&-32.9412\\
    2.04859&4.16513&2.76542&1.25894&6.29555
    \end{tabular}
\right]
\end{multline*}

\end{document}

在此处输入图片描述

相关内容