Skip to content

Commit 32dc352

Browse files
committed
refactor: Improve Visuals
1 parent dbcd90c commit 32dc352

File tree

2 files changed

+36
-57
lines changed

2 files changed

+36
-57
lines changed

discrete-mathematics/series-and-sequences/arithmetic-sum/arithmetic-sum.ipynb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "f65e306c-627b-4c98-8fe5-b6f51a985ffd",
66
"metadata": {},
77
"source": [
8-
"# Understanding Arithmetic Series Sums Through Symmetry of Averages\n",
8+
"# Understanding Arithmetic Sums Through Symmetry of Averages\n",
99
"\n",
1010
"The sum of an arithmetic series is a classic result in mathematics, often proven using the method attributed to Gauss, which pairs terms from the ends of the sequence. \n",
1111
"\n",
@@ -70,12 +70,12 @@
7070
"id": "1edb5413-9527-42a7-94ad-e7fd0d59089c",
7171
"metadata": {},
7272
"source": [
73-
"# Average: Finding an Anchor\n",
73+
"# Finding the Anchor Points for Calculating the Average\n",
7474
"\n",
7575
"The **average** of any 2 points equidistant from the mid-point`a` is always `a`:\n",
7676
"\n",
7777
"$$\n",
78-
"\\dfrac{(a - 0) + (a + 0)}{2} = a\n",
78+
"\\dfrac{ \\textcolor{lightgray}{(} a \\textcolor{lightgray}{-} \\textcolor{lightgray}{0} \\textcolor{lightgray}{)} + \\textcolor{lightgray}{(} a \\textcolor{lightgray}{+} \\textcolor{lightgray}{0} \\textcolor{lightgray}{)} }{2} = a\n",
7979
"$$\n",
8080
"\n",
8181
"$$\n",
@@ -105,11 +105,15 @@
105105
"$$\n",
106106
"\n",
107107
"$$\n",
108+
"\\dfrac{(a - 2d) + (a + 2d)}{2} = a\n",
109+
"$$\n",
110+
"\n",
111+
"$$\n",
108112
"\\dfrac{(a - d) + (a + d)}{2} = a\n",
109113
"$$\n",
110114
"\n",
111115
"$$\n",
112-
"\\dfrac{(a - 0) + (a + 0)}{2} = a\n",
116+
"\\dfrac{ \\textcolor{lightgray}{(} a \\textcolor{lightgray}{-} \\textcolor{lightgray}{0} \\textcolor{lightgray}{)} + \\textcolor{lightgray}{(} a \\textcolor{lightgray}{+} \\textcolor{lightgray}{0} \\textcolor{lightgray}{)} }{2} = a\n",
113117
"$$\n",
114118
"\n",
115119
"Since the **first** and **last** points always exist,\n",

translated-notebooks/离散数学/数列与级数/等差数列求和/等差数列求和.ipynb

Lines changed: 28 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -11,86 +11,57 @@
1111
"\n",
1212
"> 例如,为了求和 $1 + 2 + \\cdots + 100$,高斯将首尾项配对(如 $1 + 100$, $2 + 99$ 等)从而得出总和。\n",
1313
"\n",
14-
"在这个解释中,我们将提供一种替代方法,揭示这种配对为何有效,重点在于平均值的对称性。\n",
15-
"\n",
16-
"## 数轴上平均值的对称性\n",
17-
"\n",
18-
"让我们重新思考在一个等差数列中平均值意味着什么,在这种数列中,每一项都增加一个相同的公差。\n",
14+
"在这个解释中,我们将提供一种替代方法,揭示这种配对为何有效,重点在于平均值的对称性。"
15+
]
16+
},
17+
{
18+
"cell_type": "markdown",
19+
"id": "d5d1fe39-640f-46cb-94ea-403eed950bfc",
20+
"metadata": {},
21+
"source": [
22+
"# 数轴上的对称平均值\n",
1923
"\n",
20-
"- 不仅仅是“总和除以项数”,\n",
21-
"- 我们可以将平均值看作是一个中心点,周围的数值围绕它对称分布。\n",
24+
"让我们重新思考等差数列中平均值的含义,其中每一项都以相同的公差递增:\n",
25+
"- 不仅仅是\"总和除以项数\"\n",
26+
"- 我们可以将平均值视为数字对称平衡的中心点\n",
2227
"\n",
2328
"考虑任意一项:\n",
2429
"\n",
2530
"$$\n",
2631
"\\large\\boxed{a}\n",
2732
"$$\n",
2833
"\n",
29-
"如果我们向左和向右移动相同的距离 `d`,我们就可以得到两个点\n",
34+
"如果我们从该项移动距离`d`,可以得到两个点\n",
3035
"\n",
3136
"$$\n",
3237
"\\large{\\boxed{a - d} \\longleftarrow a \\longrightarrow \\boxed{a + d}}\n",
3338
"$$\n",
3439
"\n",
35-
"注意,我们构建的方式意味着 `a` 是这两个点的平均值,因为我们相对于 `a` 向左右各移动了相同距离。\n",
40+
"向相反方向移动相同距离时,`a`始终保持数值中心位置\n",
41+
"- 即**平均值**\n",
3642
"\n",
3743
"$$\n",
38-
"\\colorbox{lightgray}{如果我们继续以相同距离向两边移动,`a` 将始终是平均值}\n",
39-
"$$"
40-
]
41-
},
42-
{
43-
"cell_type": "markdown",
44-
"id": "c0fae9eb-c5c4-41ac-b29a-7e99e504f90f",
45-
"metadata": {},
46-
"source": [
47-
"# 递归构造\n",
48-
"\n",
49-
"让我们进一步说明这一点,把上面的情况想象成一个新的项 `b`:\n",
50-
"\n",
51-
"$$\n",
52-
"\\large{b : \\boxed{\n",
53-
" a - d \\longleftarrow a \\longrightarrow a + d\n",
54-
" }\n",
55-
"}\n",
44+
"\\large{\\textcolor{lightgray}{\\boxed{a - d}} \\textcolor{lightgray}{\\longleftarrow} a \\textcolor{lightgray}{\\longrightarrow} \\textcolor{lightgray}{\\boxed{a + d}}}\n",
5645
"$$\n",
5746
"\n",
58-
"从 `b` 两侧各移动 `d` 距离:\n",
47+
"我们可以不断延续这个模式,保持`a`作为**平均值**\n",
5948
"\n",
6049
"$$\n",
61-
"\\large{\n",
62-
" \\boxed{b - d} \\longleftarrow b \\longrightarrow \\boxed{b + d}\n",
63-
"}\n",
50+
"\\large{\\boxed{a - d} \\longleftarrow a \\longrightarrow \\boxed{a + d}}\n",
6451
"$$\n",
6552
"\n",
66-
"这相当于:\n",
67-
"\n",
6853
"$$\n",
6954
"\\large{ \\boxed{a - 2d} \\longleftarrow \\boxed{a - d} \\longleftarrow a \\longrightarrow \\boxed{a + d} \\longrightarrow \\boxed{a + 2d}}\n",
7055
"$$\n",
7156
"\n",
72-
"请注意,我们可以不断这样做,`a` 总是位于中心,因为我们总是以**相等的距离**但**相反的方向**移动。\n",
73-
"\n",
7457
"$$\n",
75-
"\\large{\n",
76-
" \\dots \\longleftarrow \\boxed{a - d} \\longleftarrow \\boxed{a - d} \\longleftarrow a \\longrightarrow \\boxed{a + d} \\longrightarrow \\boxed{a + 2d} \\longrightarrow \\dots\n",
77-
"}\n",
58+
"\\large{ \\textcolor{gray}{\\cdots \\boxed{a - 3d}} \\longleftarrow \\boxed{a - 2d} \\longleftarrow \\boxed{a - d} \\longleftarrow a \\longrightarrow \\boxed{a + d} \\longrightarrow \\boxed{a + 2d} \\longrightarrow \\textcolor{gray}{\\cdots \\boxed{a + 3d}}}\n",
7859
"$$\n",
7960
"\n",
80-
"因此,即使没有与中心等距的配对存在,只要我们选择不同的 `d`,中心始终保持不变。\n",
81-
"\n",
82-
"$$\n",
83-
"\\large{\n",
84-
" \\dots \\longleftarrow \\boxed{a - 2d} \\textcolor{darkgray}{\\longleftarrow \\boxed{a - d}} \\longleftarrow a \\longrightarrow \\textcolor{darkgray}{\\boxed{a + d} \\longrightarrow} \\boxed{a + 2d} \\longrightarrow \\dots\n",
85-
"}\n",
86-
"$$\n",
87-
"\n",
88-
"归根结底,一切都取决于你选择的 `d` 是大还是小。\n",
89-
"\n",
90-
"因此:\n",
61+
"因此,\n",
9162
"\n",
9263
"$$\n",
93-
"\\colorbox{lightgray}{中心(也是平均值)`a` 可以由任何两个相对于它对称的点推导而来}\n",
64+
"\\colorbox{lightgray}{如果我们持续向两个方向移动相同距离,`a`将始终保持为平均值}\n",
9465
"$$"
9566
]
9667
},
@@ -99,12 +70,12 @@
9970
"id": "c6ebcc2e-90fb-43ec-a528-6d825158dbb7",
10071
"metadata": {},
10172
"source": [
102-
"# 平均值:寻找锚点\n",
73+
"# 寻找计算平均值的锚点\n",
10374
"\n",
10475
"任何两点关于中点`a`对称时,它们的**平均值**总是`a`:\n",
10576
"\n",
10677
"$$\n",
107-
"\\dfrac{(a - 0) + (a + 0)}{2} = a\n",
78+
"\\dfrac{ \\textcolor{lightgray}{(} a \\textcolor{lightgray}{-} \\textcolor{lightgray}{0} \\textcolor{lightgray}{)} + \\textcolor{lightgray}{(} a \\textcolor{lightgray}{+} \\textcolor{lightgray}{0} \\textcolor{lightgray}{)} }{2} = a\n",
10879
"$$\n",
10980
"\n",
11081
"$$\n",
@@ -134,11 +105,15 @@
134105
"$$\n",
135106
"\n",
136107
"$$\n",
108+
"\\dfrac{(a - 2d) + (a + 2d)}{2} = a\n",
109+
"$$\n",
110+
"\n",
111+
"$$\n",
137112
"\\dfrac{(a - d) + (a + d)}{2} = a\n",
138113
"$$\n",
139114
"\n",
140115
"$$\n",
141-
"\\dfrac{(a - 0) + (a + 0)}{2} = a\n",
116+
"\\dfrac{ \\textcolor{lightgray}{(} a \\textcolor{lightgray}{-} \\textcolor{lightgray}{0} \\textcolor{lightgray}{)} + \\textcolor{lightgray}{(} a \\textcolor{lightgray}{+} \\textcolor{lightgray}{0} \\textcolor{lightgray}{)} }{2} = a\n",
142117
"$$\n",
143118
"\n",
144119
"由于**首项**和**末项**始终存在,\n",

0 commit comments

Comments
 (0)