想在行间公式里添加类似的多个带括号的公式 换行

发布于 2025-03-02 22:27:41
\documentclass{article}
\usepackage{ctex,amsmath}
\begin{document}
    \begin{align}
    l_0(x)=
    \begin{cases}
    \frac{(x - x_1)}{x_0 - x_1} ,x \in [x_0,x_1] \\
    \end{cases}
    l_i(x)=
    \begin{cases}
    \frac{x-x_{i-1}}{x_0-x_1}, x \in [x_0,x_1],\\
    \frac{x-x_{i+1}}{x_i-x_{i+1}},x \in [x_i,x_{i+1}]\\
    0,其他
    \end{cases}
    \end{align}
\end{document}

MWE编译的结果:
image.png

预期的结果:
image.png

查看更多

关注者
0
被浏览
222
啸行
啸行 4天前
这家伙很懒,什么也没写!
\documentclass{ctexart}
\usepackage{mathtools}
\begin{document}
  其中插值基函数为
  \begin{align*}
    &
    l_0(x)=
    \begin{dcases}
      \frac{(x - x_1)}{x_0 - x_1}, & x \in [x_0,x_1] \\
      0, & \text{其他},
    \end{dcases}
    \\
    & l_i(x)=
    \begin{dcases}
      \frac{x-x_{i-1}}{x_i-x_{i-1}}, & x \in [x_{i-1},x_i],\\
      \frac{x-x_{i+1}}{x_i-x_{i+1}}, & x \in [x_i,x_{i+1}]\\
      0, & \text{其他}
    \end{dcases}
    & i = 1,2,\dotsc,n-1,\\
    &
    l_n (x) =
    \begin{dcases}
      \frac{x - x_{n-1}}{x_n - x_{n-1}}, & x \in [x_{n-1}, x_n],\\
      0, & \text{其他}.
    \end{dcases}
  \end{align*}
\end{document}

image.png

2 个回答
Swit
Swit 4天前
LaTeX nubility!
\documentclass{article}
\usepackage{ctex,amsmath}
\begin{document}
    \begin{align}
    l_0(x) & =
      \begin{cases}
      \frac{x-x_1}{x_0 - x_1}, & x \in [x_0,x_1], \\
      0, & \text{其他},
      \end{cases} \\
    l_i(x) & =
      \begin{cases}
      \frac{x-x_{i-1}}{x_0-x_1}, & x \in [x_0,x_1], \\
      \frac{x-x_{i+1}}{x_i-x_{i+1}}, & x \in [x_i,x_{i+1}], \\
      0, & \text{其他}
      \end{cases}
    \end{align}
\end{document}

image.png

撰写答案

请登录后再发布答案,点击登录

发布
问题

分享
好友

手机
浏览

扫码手机浏览