Skip to content

Commit

Permalink
added requirements.txt / added readme.md / some naming changes
Browse files Browse the repository at this point in the history
  • Loading branch information
kujilit committed Mar 23, 2023
1 parent ecfc127 commit 24cad04
Show file tree
Hide file tree
Showing 5 changed files with 120 additions and 10 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Установка

Для установки необходимых библиотек используйте
```bash
pip3 install -r requirements.txt
```

Для генерации __pdf__ файла решения лабораторных работ достаточно иметь установленные [TeXiFy](https://plugins.jetbrains.com/plugin/9473-texify-idea), __pandoc__ и __basictex__.
```bash
brew install pandoc
```
```bash
brew install basictex
```

# Генерация решения

Для того, чтобы сгенерировать решение, используйте команду
```bash
pandoc [название_директории]/solution.tex -o [название_директории]/output.pdf
```
Binary file renamed output.pdf → lab1/lab1_output.pdf
Binary file not shown.
4 changes: 2 additions & 2 deletions lab1/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, dim: int, eps: float):
def display(self, doc):
with doc.create(pylatex.Section(f'Dimension: {self.dim}')):
with doc.create(pylatex.Section(f'Epsilon:{self.eps}')):
doc.append(pylatex.Math(data=['(', pylatex.Matrix(self.arr_a), '+', self.eps,
doc.append(pylatex.Math(data=['(', pylatex.Matrix(self.arr_a), '+', '(', self.eps, ')',
pylatex.Matrix(self.arr_n), ')x =',
pylatex.Matrix(np.array([self.vector_b]).T)
]))
Expand All @@ -40,4 +40,4 @@ def display(self, doc):
Solution(6, 1e-5).display(doc)
Solution(6, 1e-4).display(doc)
Solution(6, 1e-3).display(doc)
doc.generate_pdf('full', clean_tex=False)
doc.generate_pdf('solution', clean_tex=False)
16 changes: 8 additions & 8 deletions lab1/full.tex → lab1/solution.tex
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ \section{Epsilon:1e{-}06}%
1&-1&-1\\%
0&1&-1\\%
0&0&1%
\end{pmatrix} + 1e{-}06 \begin{pmatrix}%
\end{pmatrix} + ( 1e{-}06 ) \begin{pmatrix}%
1&-1&-1\\%
1&1&-1\\%
1&1&1%
Expand All @@ -44,7 +44,7 @@ \section{Epsilon:1e{-}05}%
1&-1&-1\\%
0&1&-1\\%
0&0&1%
\end{pmatrix} + 1e{-}05 \begin{pmatrix}%
\end{pmatrix} + ( 1e{-}05 ) \begin{pmatrix}%
1&-1&-1\\%
1&1&-1\\%
1&1&1%
Expand All @@ -69,7 +69,7 @@ \section{Epsilon:0.0001}%
1&-1&-1\\%
0&1&-1\\%
0&0&1%
\end{pmatrix} + 0.0001 \begin{pmatrix}%
\end{pmatrix} + ( 0.0001 ) \begin{pmatrix}%
1&-1&-1\\%
1&1&-1\\%
1&1&1%
Expand All @@ -94,7 +94,7 @@ \section{Epsilon:0.001}%
1&-1&-1\\%
0&1&-1\\%
0&0&1%
\end{pmatrix} + 0.001 \begin{pmatrix}%
\end{pmatrix} + ( 0.001 ) \begin{pmatrix}%
1&-1&-1\\%
1&1&-1\\%
1&1&1%
Expand Down Expand Up @@ -122,7 +122,7 @@ \section{Epsilon:1e{-}06}%
0&0&0&1&-1&-1\\%
0&0&0&0&1&-1\\%
0&0&0&0&0&1%
\end{pmatrix} + 1e{-}06 \begin{pmatrix}%
\end{pmatrix} + ( 1e{-}06 ) \begin{pmatrix}%
1&-1&-1&-1&-1&-1\\%
1&1&-1&-1&-1&-1\\%
1&1&1&-1&-1&-1\\%
Expand Down Expand Up @@ -156,7 +156,7 @@ \section{Epsilon:1e{-}05}%
0&0&0&1&-1&-1\\%
0&0&0&0&1&-1\\%
0&0&0&0&0&1%
\end{pmatrix} + 1e{-}05 \begin{pmatrix}%
\end{pmatrix} + ( 1e{-}05 ) \begin{pmatrix}%
1&-1&-1&-1&-1&-1\\%
1&1&-1&-1&-1&-1\\%
1&1&1&-1&-1&-1\\%
Expand Down Expand Up @@ -190,7 +190,7 @@ \section{Epsilon:0.0001}%
0&0&0&1&-1&-1\\%
0&0&0&0&1&-1\\%
0&0&0&0&0&1%
\end{pmatrix} + 0.0001 \begin{pmatrix}%
\end{pmatrix} + ( 0.0001 ) \begin{pmatrix}%
1&-1&-1&-1&-1&-1\\%
1&1&-1&-1&-1&-1\\%
1&1&1&-1&-1&-1\\%
Expand Down Expand Up @@ -224,7 +224,7 @@ \section{Epsilon:0.001}%
0&0&0&1&-1&-1\\%
0&0&0&0&1&-1\\%
0&0&0&0&0&1%
\end{pmatrix} + 0.001 \begin{pmatrix}%
\end{pmatrix} + ( 0.001 ) \begin{pmatrix}%
1&-1&-1&-1&-1&-1\\%
1&1&-1&-1&-1&-1\\%
1&1&1&-1&-1&-1\\%
Expand Down
89 changes: 89 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
anyio==3.6.2
appnope==0.1.3
argon2-cffi==21.3.0
argon2-cffi-bindings==21.2.0
array-to-latex==0.90
arrow==1.2.3
asttokens==2.2.1
attrs==22.2.0
backcall==0.2.0
beautifulsoup4==4.12.0
bleach==6.0.0
cffi==1.15.1
clipboard==0.0.4
comm==0.1.3
debugpy==1.6.6
decorator==5.1.1
defusedxml==0.7.1
executing==1.2.0
fastjsonschema==2.16.3
fqdn==1.5.1
idna==3.4
importlib-metadata==6.1.0
importlib-resources==5.12.0
ipykernel==6.22.0
ipython==8.11.0
ipython-genutils==0.2.0
ipywidgets==8.0.5
isoduration==20.11.0
jedi==0.18.2
Jinja2==3.1.2
jsonpointer==2.3
jsonschema==4.17.3
MarkupSafe==2.1.2
matplotlib-inline==0.1.6
mistune==2.0.5
mpmath==1.3.0
nbclassic==0.5.3
nbclient==0.7.2
nbconvert==7.2.10
nbformat==5.8.0
nest-asyncio==1.5.6
notebook==6.5.3
notebook_shim==0.2.2
numpy==1.24.2
ordered-set==4.1.0
packaging==23.0
pandas==1.5.3
pandocfilters==1.5.0
parso==0.8.3
pexpect==4.8.0
pickleshare==0.7.5
pkgutil_resolve_name==1.3.10
platformdirs==3.1.1
prometheus-client==0.16.0
prompt-toolkit==3.0.38
psutil==5.9.4
ptyprocess==0.7.0
pure-eval==0.2.2
pycparser==2.21
Pygments==2.14.0
PyLaTeX==1.4.1
pyperclip==1.8.2
pyrsistent==0.19.3
python-dateutil==2.8.2
python-json-logger==2.0.7
pytz==2022.7.1
PyYAML==6.0
pyzmq==25.0.2
qtconsole==5.4.1
QtPy==2.3.0
rfc3339-validator==0.1.4
rfc3986-validator==0.1.1
Send2Trash==1.8.0
six==1.16.0
sniffio==1.3.0
soupsieve==2.4
stack-data==0.6.2
sympy==1.11.1
terminado==0.17.1
tinycss2==1.2.1
tornado==6.2
traitlets==5.9.0
uri-template==1.2.0
wcwidth==0.2.6
webcolors==1.12
webencodings==0.5.1
websocket-client==1.5.1
widgetsnbextension==4.0.6
zipp==3.15.0

0 comments on commit 24cad04

Please sign in to comment.