summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Guschin <guschin.drew@gmail.com>2023-12-18 23:36:42 +0400
committerAndrew Guschin <guschin.drew@gmail.com>2023-12-18 23:36:42 +0400
commitc65cfb6f89be4751451327ff67454c6290c99632 (patch)
treefe93656849e0953c84a2b844d8462d9525960413
parent84852695a952a8dafb1318c5264b419282a4489e (diff)
задание 2 описание
-rw-r--r--t4mk.ipynb31
1 files changed, 13 insertions, 18 deletions
diff --git a/t4mk.ipynb b/t4mk.ipynb
index 517014a..cae8c70 100644
--- a/t4mk.ipynb
+++ b/t4mk.ipynb
@@ -221,18 +221,25 @@
"cell_type": "markdown",
"metadata": {},
"source": [
- "# Задание 3"
+ "# Задание 3\n",
+ "\n",
+ "Ввести значения $a_i$ и $m_i$ выражения\n",
+ "$$\\begin{cases}\n",
+ "x \\equiv a_1 \\pmod{m_1} \\\\\n",
+ "\\dots \\\\\n",
+ "x \\equiv a_n \\pmod{m_n}\n",
+ "\\end{cases}$$\n"
]
},
{
"cell_type": "code",
- "execution_count": 82,
+ "execution_count": 85,
"metadata": {},
"outputs": [
{
"data": {
"text/latex": [
- "$\\displaystyle M = 3 \\cdot 5 \\cdot 4 = 60$"
+ "$\\displaystyle M = 4 \\cdot 9 = 36$"
],
"text/plain": [
"<IPython.core.display.Math object>"
@@ -244,7 +251,7 @@
{
"data": {
"text/latex": [
- "$\\displaystyle M_{1} = 20; 20 x \\equiv 1 \\pmod{3}; z_{1} = 2$"
+ "$\\displaystyle M_{1} = 9; 9 x \\equiv 3 \\pmod{4}; z_{1} = 3$"
],
"text/plain": [
"<IPython.core.display.Math object>"
@@ -256,7 +263,7 @@
{
"data": {
"text/latex": [
- "$\\displaystyle M_{2} = 12; 12 x \\equiv 3 \\pmod{5}; z_{2} = 4$"
+ "$\\displaystyle M_{2} = 4; 4 x \\equiv 6 \\pmod{9}; z_{2} = 6$"
],
"text/plain": [
"<IPython.core.display.Math object>"
@@ -268,19 +275,7 @@
{
"data": {
"text/latex": [
- "$\\displaystyle M_{3} = 15; 15 x \\equiv 2 \\pmod{4}; z_{3} = 2$"
- ],
- "text/plain": [
- "<IPython.core.display.Math object>"
- ]
- },
- "metadata": {},
- "output_type": "display_data"
- },
- {
- "data": {
- "text/latex": [
- "$\\displaystyle x = M_{0} \\cdot z_{0} + M_{1} \\cdot z_{1} + M_{2} \\cdot z_{2} = 20 \\cdot 2 + 12 \\cdot 4 + 15 \\cdot 2 = 58 \\pmod{60}$"
+ "$\\displaystyle x = M_{1} \\cdot z_{1} + M_{2} \\cdot z_{2} = 9 \\cdot 3 + 4 \\cdot 6 = 15 \\pmod{36}$"
],
"text/plain": [
"<IPython.core.display.Math object>"