From 0264ed3056a544945165feb8ea8aa244c751bc1f Mon Sep 17 00:00:00 2001 From: DengLiang798 Date: Mon, 9 Dec 2024 17:38:38 +0800 Subject: [PATCH] =?UTF-8?q?Update=20=E7=AC=AC05=E8=AF=BE=EF=BC=9A=E5=88=86?= =?UTF-8?q?=E6=94=AF=E7=BB=93=E6=9E=84.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...232\345\210\206\346\224\257\347\273\223\346\236\204.md" | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git "a/\347\254\25405\350\257\276\357\274\232\345\210\206\346\224\257\347\273\223\346\236\204.md" "b/\347\254\25405\350\257\276\357\274\232\345\210\206\346\224\257\347\273\223\346\236\204.md" index d7908e5..76eba67 100755 --- "a/\347\254\25405\350\257\276\357\274\232\345\210\206\346\224\257\347\273\223\346\236\204.md" +++ "b/\347\254\25405\350\257\276\357\274\232\345\210\206\346\224\257\347\273\223\346\236\204.md" @@ -31,7 +31,12 @@ else: 如果要构造出更多的分支,可以使用`if...elif...else...`结构或者嵌套的`if...else...`结构,下面的代码演示了如何利用多分支结构实现分段函数求值。 $$ -f(x) = \begin{cases} 3x - 5, & (x \gt 1) \\ x + 2, & (-1 \le x \le 1) \\ 5x + 3, & (x \lt -1) \end{cases} +f(x) = +\begin{cases} +3x - 5, & x > 1 \\ +x + 2, & -1 \leq x \leq 1 \\ +5x + 3, & x < -1 +\end{cases} $$ ```Python