mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-07-04 14:43:08 +02:00
Working on task 3
This commit is contained in:
parent
5ea86439f1
commit
4116b23f4a
@ -39,33 +39,37 @@
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.2}Backward substitution}{8}{subsection.2.2.2}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.2.3}Partial Pivoting}{8}{subsection.2.2.3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {2.3}Solution}{9}{section.2.3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.1}Main function}{9}{subsection.2.3.1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.2}checkIfMatrixIsSquareMatrix}{9}{subsection.2.3.2}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.3}gaussianEliminationWithPartialPivoting}{10}{subsection.2.3.3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.4}partialPivoting}{10}{subsection.2.3.4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.5}partialPivotingSwapOneRow}{10}{subsection.2.3.5}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.6}swapRowMatrix}{11}{subsection.2.3.6}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.7}swapValueVector}{11}{subsection.2.3.7}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.8}gaussianElimination}{11}{subsection.2.3.8}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.9}substractRows}{11}{subsection.2.3.9}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.10}backSubstitutionPhase}{12}{subsection.2.3.10}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.11}iterativeResidualCorrection}{12}{subsection.2.3.11}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {2.3.12}improveSolution}{12}{subsection.2.3.12}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {2.4}Discussion of the result}{13}{section.2.4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {2.4}Discussion of the result}{9}{section.2.4}\protected@file@percent }
|
||||
\@writefile{toc}{\newpage }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {3}Problem 3 - Solving a system of n linear equations - iterative algorithm}{15}{chapter.3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {3}Problem 3 - Solving a system of n linear equations - iterative algorithm}{11}{chapter.3}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {3.1}Problem}{15}{section.3.1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {3.2}Theoretical introduction}{15}{section.3.2}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {3.3}Solution}{15}{section.3.3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {3.4}Discussion of the result}{15}{section.3.4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {4}Problem 4 - QR method of finding eigenvalues}{16}{chapter.4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {3.1}Problem}{11}{section.3.1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {3.2}Theoretical introduction}{11}{section.3.2}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {3.3}Solution}{12}{section.3.3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {3.4}Discussion of the result}{12}{section.3.4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {4}Problem 4 - QR method of finding eigenvalues}{13}{chapter.4}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {4.1}Problem}{16}{section.4.1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {4.2}Theoretical introduction}{16}{section.4.2}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {4.3}Solution}{16}{section.4.3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {4.4}Discussion of the result}{16}{section.4.4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {4.1}Problem}{13}{section.4.1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {4.2}Theoretical introduction}{13}{section.4.2}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {4.3}Solution}{13}{section.4.3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {4.4}Discussion of the result}{13}{section.4.4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {chapter}{\numberline {5}Code appendix}{14}{chapter.5}\protected@file@percent }
|
||||
\@writefile{lof}{\addvspace {10\p@ }}
|
||||
\@writefile{lot}{\addvspace {10\p@ }}
|
||||
\@writefile{toc}{\contentsline {section}{\numberline {5.1}Task 2 Code}{14}{section.5.1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.1}Main function}{14}{subsection.5.1.1}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.2}checkIfMatrixIsSquareMatrix}{14}{subsection.5.1.2}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.3}gaussianEliminationWithPartialPivoting}{16}{subsection.5.1.3}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.4}partialPivoting}{16}{subsection.5.1.4}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.5}partialPivotingSwapOneRow}{16}{subsection.5.1.5}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.6}swapRowMatrix}{17}{subsection.5.1.6}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.7}swapValueVector}{17}{subsection.5.1.7}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.8}gaussianElimination}{17}{subsection.5.1.8}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.9}substractRows}{17}{subsection.5.1.9}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.10}backSubstitutionPhase}{18}{subsection.5.1.10}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.11}iterativeResidualCorrection}{18}{subsection.5.1.11}\protected@file@percent }
|
||||
\@writefile{toc}{\contentsline {subsection}{\numberline {5.1.12}improveSolution}{18}{subsection.5.1.12}\protected@file@percent }
|
||||
\bibcite{texbook}{1}
|
||||
\gdef \@abspage@last{18}
|
||||
\gdef \@abspage@last{20}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Fdb version 3
|
||||
["pdflatex"] 1636174095 "projectA.tex" "projectA.pdf" "projectA" 1636174096
|
||||
"/etc/texmf/web2c/texmf.cnf" 1635008344 475 c0e671620eb5563b2130f56340a5fde8 ""
|
||||
["pdflatex"] 1636562354 "projectA.tex" "projectA.pdf" "projectA" 1636562355
|
||||
"/etc/texmf/web2c/texmf.cnf" 1624878795 475 c0e671620eb5563b2130f56340a5fde8 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc" 1165713224 4850 80dc9bab7f31fb78a000ccfed0e27cab ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/map/fontname/texfonts.map" 1577235249 3524 cb3e574dea2d1052e39280babc910dc8 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/jknappen/ec/ecbx1000.tfm" 1136768653 3584 2d666ecf6d466d8b007246bc2f94d9da ""
|
||||
@ -21,6 +21,9 @@
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/bera/fvmr8c.tfm" 1136768653 1268 3764023d12371df1f4893e1c3e0d608c ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/bera/fvmr8r.tfm" 1136768653 1292 a0ca2398d40dc5494f22d2fbff33269b ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/bera/fvmr8t.tfm" 1136768653 1380 bb8d389860f8cf35648da78ba6d79918 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmbx10.tfm" 1136768653 1328 c834bbb027764024c09d3d2bf908b5f0 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmbx5.tfm" 1136768653 1332 f817c21a1ba54560425663374f1b651a ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmbx7.tfm" 1136768653 1336 3125ccb448c1a09074e3aa4a9832f130 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmex10.tfm" 1136768653 992 662f679a0b3d2d53c1b94050fdaa3f50 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmmi12.tfm" 1136768653 1524 4414a8315f39513458b80dfc63bff03a ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmmi6.tfm" 1136768653 1512 f21f83efb36853c0b70002322c1ab3ad ""
|
||||
@ -37,6 +40,8 @@
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmtt10.tfm" 1136768653 768 1321e9409b4137d6fb428ac9dc956269 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmtt12.tfm" 1136768653 772 9a936b7f5e2ff0557fce0f62822f0bbf ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmtt8.tfm" 1136768653 768 d7b9a2629a0c353102ad947dc9221d49 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb" 1248133631 34811 78b52f49e893bcba91bd7581cdc144c0 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx7.pfb" 1248133631 32007 e8fa0078355f39467039935974716569 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb" 1248133631 30251 6afa5cb1d0204815a708a080681d4674 ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb" 1248133631 36299 5f9df58c2139e7edcf37c8fca4bd384d ""
|
||||
"/usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb" 1248133631 36281 c355509802a035cadc5f15869451dcee ""
|
||||
@ -129,24 +134,24 @@
|
||||
"/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-t1.enc" 1565080000 2971 def0b6c1f0b107b3b936def894055589 ""
|
||||
"/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-ts1.enc" 1565080000 2900 1537cc8184ad1792082cd229ecc269f4 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfbx1000.pfb" 1565080000 145408 43d44302ca7d82d487f511f83e309505 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfbx1200.pfb" 1635008356 140176 d4962f948b4cc0adf4d3dde77a128c95 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfbx1440.pfb" 1635008356 135942 859a90cad7494a1e79c94baf546d7de5 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfbx2074.pfb" 1635008356 140194 627cc7f36c05b80e25d178974ccb3442 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfbx2488.pfb" 1635008356 135938 299ac3a69892db3b7674a8b2543b0a77 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfbx1200.pfb" 1624878812 140176 d4962f948b4cc0adf4d3dde77a128c95 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfbx1440.pfb" 1624878812 135942 859a90cad7494a1e79c94baf546d7de5 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfbx2074.pfb" 1624878812 140194 627cc7f36c05b80e25d178974ccb3442 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfbx2488.pfb" 1624878812 135938 299ac3a69892db3b7674a8b2543b0a77 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb" 1565080000 138258 6525c253f16cededa14c7fd0da7f67b2 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfrm1200.pfb" 1635008356 136101 f533469f523533d38317ab5729d00c8a ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfrm1728.pfb" 1635008356 131438 3aa300b3e40e5c8ba7b4e5c6cebc5dd6 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfrm1200.pfb" 1624878812 136101 f533469f523533d38317ab5729d00c8a ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfrm1728.pfb" 1624878812 131438 3aa300b3e40e5c8ba7b4e5c6cebc5dd6 ""
|
||||
"/usr/share/texmf/fonts/type1/public/cm-super/sfti1000.pfb" 1565080000 186554 e8f0fa8ca05e038f257a06405232745f ""
|
||||
"/usr/share/texmf/web2c/texmf.cnf" 1613593815 38841 799d1dd9682a55ce442e10c99777ecc1 ""
|
||||
"/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map" 1635008389 5160710 ecf427ae8fa19139d8691f526e47bb9b ""
|
||||
"/var/lib/texmf/web2c/pdftex/pdflatex.fmt" 1635008460 2570450 6e12b1c097cbda0f70015645294afd24 ""
|
||||
"projectA.aux" 1636174096 6384 2c83ba14a2509dfdfd076f7fd0eca394 "pdflatex"
|
||||
"projectA.out" 1636174096 2741 b99d5b034d9bbed33f2861b498859f0c "pdflatex"
|
||||
"projectA.tex" 1636174095 15519 f3c15722fd4d72f6a719045cb684ed07 ""
|
||||
"projectA.toc" 1636174096 3632 0d1f67d81f59413c4406e2bbeb5003d5 "pdflatex"
|
||||
"/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map" 1624878842 5160710 ecf427ae8fa19139d8691f526e47bb9b ""
|
||||
"/var/lib/texmf/web2c/pdftex/pdflatex.fmt" 1624878876 2570852 ef2a47e64eb64912b01ccaedc81044b8 ""
|
||||
"projectA.aux" 1636562355 6685 63dddfb0988a9db0d4ffd399103f6601 "pdflatex"
|
||||
"projectA.out" 1636562355 2848 ab2d85b1aeb40c5b6549c89277facc94 "pdflatex"
|
||||
"projectA.tex" 1636562354 18255 e6b15b580c018a44cae8a28806057e96 ""
|
||||
"projectA.toc" 1636562355 3775 bed17e2056b97f55fa15459455b98f4f "pdflatex"
|
||||
(generated)
|
||||
"projectA.aux"
|
||||
"projectA.out"
|
||||
"projectA.log"
|
||||
"projectA.toc"
|
||||
"projectA.pdf"
|
||||
"projectA.log"
|
||||
"projectA.aux"
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
PWD /home/kuchy/Zlew/Studia/SEM_5/enume_done/Project/matlabproject/ENUME_Project_31/projectA
|
||||
PWD /home/kuchy/Zlew/Studia/SEM_5/enume_done/matlabproject/projectA
|
||||
INPUT /etc/texmf/web2c/texmf.cnf
|
||||
INPUT /usr/share/texmf/web2c/texmf.cnf
|
||||
INPUT /usr/share/texlive/texmf-dist/web2c/texmf.cnf
|
||||
@ -815,6 +815,9 @@ INPUT /usr/share/texlive/texmf-dist/fonts/tfm/jknappen/ec/tcrm1000.tfm
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/vf/public/bera/fvmr8t.vf
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/bera/fvmr8r.tfm
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/jknappen/ec/ecti1000.tfm
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmbx10.tfm
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmbx7.tfm
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/tfm/public/cm/cmbx5.tfm
|
||||
INPUT /usr/share/texlive/texmf-dist/tex/latex/bera/ts1fvm.fd
|
||||
INPUT /usr/share/texlive/texmf-dist/tex/latex/bera/ts1fvm.fd
|
||||
INPUT /usr/share/texlive/texmf-dist/tex/latex/bera/ts1fvm.fd
|
||||
@ -827,6 +830,8 @@ INPUT ./projectA.out
|
||||
INPUT /usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-t1.enc
|
||||
INPUT /usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-ts1.enc
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx7.pfb
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb
|
||||
INPUT /usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) (preloaded format=pdflatex 2021.10.23) 6 NOV 2021 05:48
|
||||
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/Debian) (preloaded format=pdflatex 2021.6.28) 10 NOV 2021 17:39
|
||||
entering extended mode
|
||||
restricted \write18 enabled.
|
||||
file:line:error style messages enabled.
|
||||
@ -470,7 +470,7 @@ File: epstopdf-sys.cfg 2010/07/13 v1.3 Configuration of (r)epstopdf for TeX Live
|
||||
{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}] (./projectA.tocpdfTeX warning (ext4): destination with the same identifier (name{page.1}) has been already used, duplicate ignored
|
||||
<to be read again>
|
||||
\relax
|
||||
l.33 \newpage
|
||||
l.21 \newpage
|
||||
[1
|
||||
|
||||
])
|
||||
@ -516,76 +516,79 @@ Overfull \hbox (2.71124pt too wide) detected at line 162
|
||||
[]
|
||||
|
||||
[7] [8]
|
||||
LaTeX Font Info: Trying to load font information for TS1+fvm on input line 235.
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/bera/ts1fvm.fd
|
||||
Overfull \hbox (33.13576pt too wide) detected at line 268
|
||||
\OML/cmm/m/it/10 x[] \OT1/cmr/m/n/10 = [] \OML/cmm/m/it/10 x[] \OT1/cmr/m/n/10 = []
|
||||
[]
|
||||
|
||||
[9]
|
||||
Overfull \hbox (33.13576pt too wide) detected at line 311
|
||||
\OML/cmm/m/it/10 x[] \OT1/cmr/m/n/10 = [] \OML/cmm/m/it/10 x[] \OT1/cmr/m/n/10 = []
|
||||
[]
|
||||
|
||||
[10]
|
||||
Chapter 3.
|
||||
[11
|
||||
|
||||
] [12]
|
||||
Chapter 4.
|
||||
[13
|
||||
|
||||
]
|
||||
Chapter 5.
|
||||
LaTeX Font Info: Trying to load font information for TS1+fvm on input line 442.
|
||||
(/usr/share/texlive/texmf-dist/tex/latex/bera/ts1fvm.fd
|
||||
File: ts1fvm.fd 2004/09/07 scalable font definitions for TS1/fvm.
|
||||
)
|
||||
LaTeX Font Info: Font shape `TS1/fvm/m/n' will be
|
||||
(Font) scaled to size 8.50006pt on input line 235.
|
||||
[9] [10]
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 340.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 342.
|
||||
[11]
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 353.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 354.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 363.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 375.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 388.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 389.
|
||||
(Font) scaled to size 8.50006pt on input line 442.
|
||||
[14
|
||||
|
||||
Overfull \hbox (33.13576pt too wide) detected at line 436
|
||||
\OML/cmm/m/it/10 x[] \OT1/cmr/m/n/10 = [] \OML/cmm/m/it/10 x[] \OT1/cmr/m/n/10 = []
|
||||
[]
|
||||
|
||||
[12] [13]
|
||||
Overfull \hbox (33.13576pt too wide) detected at line 479
|
||||
\OML/cmm/m/it/10 x[] \OT1/cmr/m/n/10 = [] \OML/cmm/m/it/10 x[] \OT1/cmr/m/n/10 = []
|
||||
[]
|
||||
|
||||
[14]
|
||||
Chapter 3.
|
||||
[15
|
||||
|
||||
]
|
||||
Chapter 4.
|
||||
[16
|
||||
|
||||
] [17
|
||||
] [15] [16]
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 547.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 549.
|
||||
[17]
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 560.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 561.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 570.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 582.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 595.
|
||||
Package textcomp Info: Symbol \textminus not provided by
|
||||
(textcomp) font family fvm in TS1 encoding.
|
||||
(textcomp) Default family used instead on input line 596.
|
||||
[18] [19
|
||||
|
||||
] (./projectA.aux)
|
||||
Package rerunfilecheck Info: File `projectA.out' has not changed.
|
||||
(rerunfilecheck) Checksum: B99D5B034D9BBED33F2861B498859F0C;2741.
|
||||
(rerunfilecheck) Checksum: AB2D85B1AEB40C5B6549C89277FACC94;2848.
|
||||
)
|
||||
Here is how much of TeX's memory you used:
|
||||
12464 strings out of 479304
|
||||
217023 string characters out of 5869778
|
||||
945664 words of memory out of 5000000
|
||||
29259 multiletter control sequences out of 15000+600000
|
||||
420535 words of font info for 69 fonts, out of 8000000 for 9000
|
||||
12516 strings out of 479304
|
||||
217744 string characters out of 5869779
|
||||
803334 words of memory out of 5000000
|
||||
29304 multiletter control sequences out of 15000+600000
|
||||
421462 words of font info for 72 fonts, out of 8000000 for 9000
|
||||
1141 hyphenation exceptions out of 8191
|
||||
81i,7n,88p,292b,1379s stack positions out of 5000i,500n,10000p,200000b,80000s
|
||||
{/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-t1.enc}{/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-ts1.enc}{/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy7.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/bera/fvmr8a.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx1000.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx1200.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx1440.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx2074.pfb></usr/share/
|
||||
texmf/fonts/type1/public/cm-super/sfbx2488.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1200.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1728.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfti1000.pfb>
|
||||
Output written on projectA.pdf (18 pages, 254784 bytes).
|
||||
81i,8n,88p,411b,2249s stack positions out of 5000i,500n,10000p,200000b,80000s
|
||||
{/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-t1.enc}{/usr/share/texmf/fonts/enc/dvips/cm-super/cm-super-ts1.enc}{/usr/share/texlive/texmf-dist/fonts/enc/dvips/base/8r.enc}</usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx7.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmex10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmmi7.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmr7.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy10.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/amsfonts/cm/cmsy7.pfb></usr/share/texlive/texmf-dist/fonts/type1/public/bera/fvmr8a.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx1000.pfb></usr/share/texmf/fonts/type1/public/cm-supe
|
||||
r/sfbx1200.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx1440.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx2074.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfbx2488.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1000.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1200.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfrm1728.pfb></usr/share/texmf/fonts/type1/public/cm-super/sfti1000.pfb>
|
||||
Output written on projectA.pdf (20 pages, 278345 bytes).
|
||||
PDF statistics:
|
||||
520 PDF objects out of 1000 (max. 8388607)
|
||||
478 compressed objects within 5 object streams
|
||||
186 named destinations out of 1000 (max. 500000)
|
||||
305 words of extra memory for PDF output out of 10000 (max. 10000000)
|
||||
549 PDF objects out of 1000 (max. 8388607)
|
||||
502 compressed objects within 6 object streams
|
||||
190 named destinations out of 1000 (max. 500000)
|
||||
321 words of extra memory for PDF output out of 10000 (max. 10000000)
|
||||
|
||||
|
||||
@ -13,26 +13,28 @@
|
||||
\BOOKMARK [2][-]{subsection.2.2.2}{Backward substitution}{section.2.2}% 13
|
||||
\BOOKMARK [2][-]{subsection.2.2.3}{Partial Pivoting}{section.2.2}% 14
|
||||
\BOOKMARK [1][-]{section.2.3}{Solution}{chapter.2}% 15
|
||||
\BOOKMARK [2][-]{subsection.2.3.1}{Main function}{section.2.3}% 16
|
||||
\BOOKMARK [2][-]{subsection.2.3.2}{checkIfMatrixIsSquareMatrix}{section.2.3}% 17
|
||||
\BOOKMARK [2][-]{subsection.2.3.3}{gaussianEliminationWithPartialPivoting}{section.2.3}% 18
|
||||
\BOOKMARK [2][-]{subsection.2.3.4}{partialPivoting}{section.2.3}% 19
|
||||
\BOOKMARK [2][-]{subsection.2.3.5}{partialPivotingSwapOneRow}{section.2.3}% 20
|
||||
\BOOKMARK [2][-]{subsection.2.3.6}{swapRowMatrix}{section.2.3}% 21
|
||||
\BOOKMARK [2][-]{subsection.2.3.7}{swapValueVector}{section.2.3}% 22
|
||||
\BOOKMARK [2][-]{subsection.2.3.8}{gaussianElimination}{section.2.3}% 23
|
||||
\BOOKMARK [2][-]{subsection.2.3.9}{substractRows}{section.2.3}% 24
|
||||
\BOOKMARK [2][-]{subsection.2.3.10}{backSubstitutionPhase}{section.2.3}% 25
|
||||
\BOOKMARK [2][-]{subsection.2.3.11}{iterativeResidualCorrection}{section.2.3}% 26
|
||||
\BOOKMARK [2][-]{subsection.2.3.12}{improveSolution}{section.2.3}% 27
|
||||
\BOOKMARK [1][-]{section.2.4}{Discussion of the result}{chapter.2}% 28
|
||||
\BOOKMARK [0][-]{chapter.3}{Problem 3 - Solving a system of n linear equations - iterative algorithm}{}% 29
|
||||
\BOOKMARK [1][-]{section.3.1}{Problem}{chapter.3}% 30
|
||||
\BOOKMARK [1][-]{section.3.2}{Theoretical introduction}{chapter.3}% 31
|
||||
\BOOKMARK [1][-]{section.3.3}{Solution}{chapter.3}% 32
|
||||
\BOOKMARK [1][-]{section.3.4}{Discussion of the result}{chapter.3}% 33
|
||||
\BOOKMARK [0][-]{chapter.4}{Problem 4 - QR method of finding eigenvalues}{}% 34
|
||||
\BOOKMARK [1][-]{section.4.1}{Problem}{chapter.4}% 35
|
||||
\BOOKMARK [1][-]{section.4.2}{Theoretical introduction}{chapter.4}% 36
|
||||
\BOOKMARK [1][-]{section.4.3}{Solution}{chapter.4}% 37
|
||||
\BOOKMARK [1][-]{section.4.4}{Discussion of the result}{chapter.4}% 38
|
||||
\BOOKMARK [1][-]{section.2.4}{Discussion of the result}{chapter.2}% 16
|
||||
\BOOKMARK [0][-]{chapter.3}{Problem 3 - Solving a system of n linear equations - iterative algorithm}{}% 17
|
||||
\BOOKMARK [1][-]{section.3.1}{Problem}{chapter.3}% 18
|
||||
\BOOKMARK [1][-]{section.3.2}{Theoretical introduction}{chapter.3}% 19
|
||||
\BOOKMARK [1][-]{section.3.3}{Solution}{chapter.3}% 20
|
||||
\BOOKMARK [1][-]{section.3.4}{Discussion of the result}{chapter.3}% 21
|
||||
\BOOKMARK [0][-]{chapter.4}{Problem 4 - QR method of finding eigenvalues}{}% 22
|
||||
\BOOKMARK [1][-]{section.4.1}{Problem}{chapter.4}% 23
|
||||
\BOOKMARK [1][-]{section.4.2}{Theoretical introduction}{chapter.4}% 24
|
||||
\BOOKMARK [1][-]{section.4.3}{Solution}{chapter.4}% 25
|
||||
\BOOKMARK [1][-]{section.4.4}{Discussion of the result}{chapter.4}% 26
|
||||
\BOOKMARK [0][-]{chapter.5}{Code appendix}{}% 27
|
||||
\BOOKMARK [1][-]{section.5.1}{Task 2 Code}{chapter.5}% 28
|
||||
\BOOKMARK [2][-]{subsection.5.1.1}{Main function}{section.5.1}% 29
|
||||
\BOOKMARK [2][-]{subsection.5.1.2}{checkIfMatrixIsSquareMatrix}{section.5.1}% 30
|
||||
\BOOKMARK [2][-]{subsection.5.1.3}{gaussianEliminationWithPartialPivoting}{section.5.1}% 31
|
||||
\BOOKMARK [2][-]{subsection.5.1.4}{partialPivoting}{section.5.1}% 32
|
||||
\BOOKMARK [2][-]{subsection.5.1.5}{partialPivotingSwapOneRow}{section.5.1}% 33
|
||||
\BOOKMARK [2][-]{subsection.5.1.6}{swapRowMatrix}{section.5.1}% 34
|
||||
\BOOKMARK [2][-]{subsection.5.1.7}{swapValueVector}{section.5.1}% 35
|
||||
\BOOKMARK [2][-]{subsection.5.1.8}{gaussianElimination}{section.5.1}% 36
|
||||
\BOOKMARK [2][-]{subsection.5.1.9}{substractRows}{section.5.1}% 37
|
||||
\BOOKMARK [2][-]{subsection.5.1.10}{backSubstitutionPhase}{section.5.1}% 38
|
||||
\BOOKMARK [2][-]{subsection.5.1.11}{iterativeResidualCorrection}{section.5.1}% 39
|
||||
\BOOKMARK [2][-]{subsection.5.1.12}{improveSolution}{section.5.1}% 40
|
||||
|
||||
BIN
ENUME/projectA/projectA.pdf
Executable file → Normal file
BIN
ENUME/projectA/projectA.pdf
Executable file → Normal file
Binary file not shown.
Binary file not shown.
@ -226,6 +226,213 @@ Then we swap this row with k-th row. Since the matrix we use is assumed to be no
|
||||
\newpage
|
||||
\section{Solution}
|
||||
|
||||
\section{Discussion of the result}
|
||||
Solutions vectors for matrix A and vector A and n = 16:
|
||||
\[ x_{algorithm} = \left( \begin{array}{cc}
|
||||
-0.930056653761514 \\
|
||||
-1.223503294617857 \\
|
||||
-1.273786563425385 \\
|
||||
-1.231189728991652 \\
|
||||
-1.153115956882885 \\
|
||||
-1.061491474990357 \\
|
||||
-0.964691801421511 \\
|
||||
-0.865917262607523 \\
|
||||
-0.766393319734375 \\
|
||||
-0.666596029928932 \\
|
||||
-0.566728103385765 \\
|
||||
-0.466921613561691 \\
|
||||
-0.367370070632649 \\
|
||||
-0.268521931669581 \\
|
||||
-0.171529057709426 \\
|
||||
-0.079398574792031
|
||||
\end{array} \right)
|
||||
%
|
||||
x_{Matlab Method} = \left( = \begin{array}{cc}
|
||||
-0.930056653761507 \\
|
||||
-1.223503294617854 \\
|
||||
-1.273786563425390 \\
|
||||
-1.231189728991649 \\
|
||||
-1.153115956882891 \\
|
||||
-1.061491474990357 \\
|
||||
-0.964691801421514 \\
|
||||
-0.865917262607518 \\
|
||||
-0.766393319734373 \\
|
||||
-0.666596029928935 \\
|
||||
-0.566728103385765 \\
|
||||
-0.466921613561692 \\
|
||||
-0.367370070632646 \\
|
||||
-0.268521931669579 \\
|
||||
-0.171529057709426 \\
|
||||
-0.079398574792031
|
||||
\end{array} \right)
|
||||
\]
|
||||
|
||||
Error for 'A' method for algorithm: \[ 3.383918772654241 \]
|
||||
Error for 'A' method for matlab method: \[ 3.383918772654241 \]
|
||||
\newpage
|
||||
Solutions vectors for matrix B and vector B and n = 16 (Both multiplied by $ 1.0e+17 $):
|
||||
\[ x_{algorithm} = \left( \begin{array}{cc}
|
||||
0.000001960155675 \\
|
||||
-0.000102773501571 \\
|
||||
0.001959454282882 \\
|
||||
-0.018894079120425 \\
|
||||
0.104895022735396 \\
|
||||
-0.352396798852209 \\
|
||||
0.705545645736628 \\
|
||||
-0.728747526649489 \\
|
||||
0.112818247768452 \\
|
||||
0.261440075930356 \\
|
||||
0.953713133491034 \\
|
||||
-3.080986443185790 \\
|
||||
3.765178552913233 \\
|
||||
-2.440218622397594 \\
|
||||
0.834768953546100 \\
|
||||
-0.118974790826378
|
||||
\end{array} \right)
|
||||
%
|
||||
x_{Matlab Method} = \left( = \begin{array}{cc}
|
||||
0.000001102587209 \\
|
||||
-0.000066546298462 \\
|
||||
0.001476714765758 \\
|
||||
-0.016859999627589 \\
|
||||
0.113920718370153 \\
|
||||
-0.488374161741872 \\
|
||||
1.368641128884513 \\
|
||||
-2.495283439985873 \\
|
||||
2.793405296264694 \\
|
||||
-1.547642305352008 \\
|
||||
-0.035332172403445 \\
|
||||
0.154726025421297 \\
|
||||
0.807694426359552 \\
|
||||
-1.133485136703852 \\
|
||||
0.592810708065954 \\
|
||||
-0.115632364630554
|
||||
\end{array} \right)
|
||||
\]
|
||||
|
||||
Error for 'B' method for algorithm: \[ 5.699979882700911e+17 \]
|
||||
Error for 'B' method for matlab method: \[ 4.569118543317684e+17 \]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\addtocontents{toc}{\protect\newpage}
|
||||
\chapter{Problem 3 - Solving a system of n linear equations - iterative algorithm}
|
||||
|
||||
\section{Problem}
|
||||
Write a general program for solving the system of n linear equations Ax = b using the Gauss-Seidel \textbf{and} Jacobi iterative algorithms.
|
||||
|
||||
We are given following system:
|
||||
\[
|
||||
\systeme{10x_1-4x_2+x_3+2x_4=-8, 2x_1-6x_2+3x_3-x_4=-12, x_1+4x_2-12x_3+x_4=4, 2x_1+3x_2-3x_3-10x_4=1}
|
||||
\]
|
||||
|
||||
Then we need to compare the results of iterations plotting norm of the solution error versus the iteration number \textbf{k}, untill we get accuracy better than $10^{-10}$.
|
||||
|
||||
We should also try to solve the equations from problem 2a) and 2b) for n = 10 using iterative method of our choice.
|
||||
|
||||
|
||||
\section{Theoretical introduction}
|
||||
|
||||
Itertaive methods differ from the Gauss elimination method since they are iterative, which means that our solution will improve with each iteration. Building on that we can cnclude that the number of iterations will depend on what accuracy we want to achieve.
|
||||
|
||||
In general:
|
||||
We start with:
|
||||
\textbf{$x^{(0)}$ } - being the best known approximation of the solution point
|
||||
|
||||
And we generate next vectors \textbf{$x^{i+1}$} in such way:
|
||||
\[ \mathbf{x^{i+1}} = \mathbf{M}\mathbf{x^{(i)}} + \mathbf{w} \]
|
||||
|
||||
Where $\mathbf{M}$ is some matrix.
|
||||
|
||||
For both Jacobi and Gauss-Seidel method we first decompose starting matrix $ \mathbf{A} $ to:
|
||||
\[ \mathbf{A} = \mathbf{L} + \mathbf{D} + \mathbf{U} \]
|
||||
where:
|
||||
$ \mathbf{L} $ - Subdiagonal matrix
|
||||
$ \mathbf{D} $ - Diagonal matrix
|
||||
$ \mathbf{U} $ - Matrix with entries over the diagonal.
|
||||
|
||||
For example:
|
||||
For:
|
||||
\[ \mathbf{A} = \begin{bmatrix}
|
||||
2 & 3 & 3\\
|
||||
1 & 2 & 3\\
|
||||
1 & 1 & 2
|
||||
\end{bmatrix}
|
||||
\]
|
||||
|
||||
We can get:
|
||||
\[ \mathbf{L} = \begin{bmatrix}
|
||||
0 & 0 & 0\\
|
||||
1 & 0 & 0\\
|
||||
1 & 1 & 0
|
||||
\end{bmatrix}
|
||||
\]
|
||||
\[ \mathbf{D} = \begin{bmatrix}
|
||||
2 & 0 & 0\\
|
||||
0 & 2 & 0\\
|
||||
0 & 0 & 2
|
||||
\end{bmatrix}
|
||||
\]
|
||||
\[ \mathbf{U} = \begin{bmatrix}
|
||||
0 & 0 & 0\\
|
||||
0 & 0 & 0\\
|
||||
0 & 0 & 0
|
||||
\end{bmatrix}
|
||||
\]
|
||||
|
||||
so:
|
||||
|
||||
\[ \mathbf{A} = \mathbf{L} + \mathbf{D} + \mathbf{U} \]
|
||||
|
||||
\[
|
||||
\begin{bmatrix}
|
||||
2 & 3 & 3\\
|
||||
1 & 2 & 3\\
|
||||
1 & 1 & 2
|
||||
\end{bmatrix}
|
||||
=
|
||||
\begin{bmatrix}
|
||||
0 & 0 & 0\\
|
||||
1 & 0 & 0\\
|
||||
1 & 1 & 0
|
||||
\end{bmatrix}
|
||||
+
|
||||
\begin{bmatrix}
|
||||
2 & 0 & 0\\
|
||||
0 & 2 & 0\\
|
||||
0 & 0 & 2
|
||||
\end{bmatrix}
|
||||
+
|
||||
\begin{bmatrix}
|
||||
0 & 3 & 3\\
|
||||
0 & 0 & 3\\
|
||||
0 & 0 & 0
|
||||
\end{bmatrix}
|
||||
\]
|
||||
|
||||
|
||||
Since we are using iterative method we don't have the guarantee of how many iteratiosn will be neeeded before we reach the solution,
|
||||
we also need to resolve the issue of convergence, the method we use may converge or it may not. We need to find what condition the method converges. We know that there is a sufficient condition which is faster but not 100 \% correct, the sufficient and necessary condition is slower but 100 \% correct. We should also answer the question what happens if the sufficient condition is not fullfiled.
|
||||
We also need to desin stop tests, when are we going to stop the process
|
||||
\section{Solution}
|
||||
|
||||
\section{Discussion of the result}
|
||||
\chapter{Problem 4 - QR method of finding eigenvalues}
|
||||
|
||||
\section{Problem}
|
||||
|
||||
\section{Theoretical introduction}
|
||||
|
||||
\section{Solution}
|
||||
|
||||
\section{Discussion of the result}
|
||||
|
||||
\chapter{Code appendix}
|
||||
|
||||
\section{Task 2 Code}
|
||||
|
||||
\subsection{Main function}
|
||||
\begin{simplechar}
|
||||
\begin{lstlisting}
|
||||
@ -393,118 +600,6 @@ end % end function
|
||||
\end{lstlisting}
|
||||
\end{simplechar}
|
||||
|
||||
|
||||
\section{Discussion of the result}
|
||||
Solutions vectors for matrix A and vector A and n = 16:
|
||||
\[ x_{algorithm} = \left( \begin{array}{cc}
|
||||
-0.930056653761514 \\
|
||||
-1.223503294617857 \\
|
||||
-1.273786563425385 \\
|
||||
-1.231189728991652 \\
|
||||
-1.153115956882885 \\
|
||||
-1.061491474990357 \\
|
||||
-0.964691801421511 \\
|
||||
-0.865917262607523 \\
|
||||
-0.766393319734375 \\
|
||||
-0.666596029928932 \\
|
||||
-0.566728103385765 \\
|
||||
-0.466921613561691 \\
|
||||
-0.367370070632649 \\
|
||||
-0.268521931669581 \\
|
||||
-0.171529057709426 \\
|
||||
-0.079398574792031
|
||||
\end{array} \right)
|
||||
%
|
||||
x_{Matlab Method} = \left( = \begin{array}{cc}
|
||||
-0.930056653761507 \\
|
||||
-1.223503294617854 \\
|
||||
-1.273786563425390 \\
|
||||
-1.231189728991649 \\
|
||||
-1.153115956882891 \\
|
||||
-1.061491474990357 \\
|
||||
-0.964691801421514 \\
|
||||
-0.865917262607518 \\
|
||||
-0.766393319734373 \\
|
||||
-0.666596029928935 \\
|
||||
-0.566728103385765 \\
|
||||
-0.466921613561692 \\
|
||||
-0.367370070632646 \\
|
||||
-0.268521931669579 \\
|
||||
-0.171529057709426 \\
|
||||
-0.079398574792031
|
||||
\end{array} \right)
|
||||
\]
|
||||
|
||||
Error for 'A' method for algorithm: \[ 3.383918772654241 \]
|
||||
Error for 'A' method for matlab method: \[ 3.383918772654241 \]
|
||||
\newpage
|
||||
Solutions vectors for matrix B and vector B and n = 16 (Both multiplied by $ 1.0e+17 $):
|
||||
\[ x_{algorithm} = \left( \begin{array}{cc}
|
||||
0.000001960155675 \\
|
||||
-0.000102773501571 \\
|
||||
0.001959454282882 \\
|
||||
-0.018894079120425 \\
|
||||
0.104895022735396 \\
|
||||
-0.352396798852209 \\
|
||||
0.705545645736628 \\
|
||||
-0.728747526649489 \\
|
||||
0.112818247768452 \\
|
||||
0.261440075930356 \\
|
||||
0.953713133491034 \\
|
||||
-3.080986443185790 \\
|
||||
3.765178552913233 \\
|
||||
-2.440218622397594 \\
|
||||
0.834768953546100 \\
|
||||
-0.118974790826378
|
||||
\end{array} \right)
|
||||
%
|
||||
x_{Matlab Method} = \left( = \begin{array}{cc}
|
||||
0.000001102587209 \\
|
||||
-0.000066546298462 \\
|
||||
0.001476714765758 \\
|
||||
-0.016859999627589 \\
|
||||
0.113920718370153 \\
|
||||
-0.488374161741872 \\
|
||||
1.368641128884513 \\
|
||||
-2.495283439985873 \\
|
||||
2.793405296264694 \\
|
||||
-1.547642305352008 \\
|
||||
-0.035332172403445 \\
|
||||
0.154726025421297 \\
|
||||
0.807694426359552 \\
|
||||
-1.133485136703852 \\
|
||||
0.592810708065954 \\
|
||||
-0.115632364630554
|
||||
\end{array} \right)
|
||||
\]
|
||||
|
||||
Error for 'B' method for algorithm: \[ 5.699979882700911e+17 \]
|
||||
Error for 'B' method for matlab method: \[ 4.569118543317684e+17 \]
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
\addtocontents{toc}{\protect\newpage}
|
||||
\chapter{Problem 3 - Solving a system of n linear equations - iterative algorithm}
|
||||
|
||||
\section{Problem}
|
||||
|
||||
\section{Theoretical introduction}
|
||||
|
||||
\section{Solution}
|
||||
|
||||
\section{Discussion of the result}
|
||||
\chapter{Problem 4 - QR method of finding eigenvalues}
|
||||
|
||||
\section{Problem}
|
||||
|
||||
\section{Theoretical introduction}
|
||||
|
||||
\section{Solution}
|
||||
|
||||
\section{Discussion of the result}
|
||||
|
||||
\begin{thebibliography}{9}
|
||||
\bibitem{texbook}
|
||||
Piotr Tatjewski (2014) \emph{Numerical Methods}, Oficyna Wydawnicza Politechniki Warszawskiej
|
||||
|
||||
@ -17,27 +17,29 @@
|
||||
\contentsline {subsection}{\numberline {2.2.2}Backward substitution}{8}{subsection.2.2.2}%
|
||||
\contentsline {subsection}{\numberline {2.2.3}Partial Pivoting}{8}{subsection.2.2.3}%
|
||||
\contentsline {section}{\numberline {2.3}Solution}{9}{section.2.3}%
|
||||
\contentsline {subsection}{\numberline {2.3.1}Main function}{9}{subsection.2.3.1}%
|
||||
\contentsline {subsection}{\numberline {2.3.2}checkIfMatrixIsSquareMatrix}{9}{subsection.2.3.2}%
|
||||
\contentsline {subsection}{\numberline {2.3.3}gaussianEliminationWithPartialPivoting}{10}{subsection.2.3.3}%
|
||||
\contentsline {subsection}{\numberline {2.3.4}partialPivoting}{10}{subsection.2.3.4}%
|
||||
\contentsline {subsection}{\numberline {2.3.5}partialPivotingSwapOneRow}{10}{subsection.2.3.5}%
|
||||
\contentsline {subsection}{\numberline {2.3.6}swapRowMatrix}{11}{subsection.2.3.6}%
|
||||
\contentsline {subsection}{\numberline {2.3.7}swapValueVector}{11}{subsection.2.3.7}%
|
||||
\contentsline {subsection}{\numberline {2.3.8}gaussianElimination}{11}{subsection.2.3.8}%
|
||||
\contentsline {subsection}{\numberline {2.3.9}substractRows}{11}{subsection.2.3.9}%
|
||||
\contentsline {subsection}{\numberline {2.3.10}backSubstitutionPhase}{12}{subsection.2.3.10}%
|
||||
\contentsline {subsection}{\numberline {2.3.11}iterativeResidualCorrection}{12}{subsection.2.3.11}%
|
||||
\contentsline {subsection}{\numberline {2.3.12}improveSolution}{12}{subsection.2.3.12}%
|
||||
\contentsline {section}{\numberline {2.4}Discussion of the result}{13}{section.2.4}%
|
||||
\contentsline {section}{\numberline {2.4}Discussion of the result}{9}{section.2.4}%
|
||||
\newpage
|
||||
\contentsline {chapter}{\numberline {3}Problem 3 - Solving a system of n linear equations - iterative algorithm}{15}{chapter.3}%
|
||||
\contentsline {section}{\numberline {3.1}Problem}{15}{section.3.1}%
|
||||
\contentsline {section}{\numberline {3.2}Theoretical introduction}{15}{section.3.2}%
|
||||
\contentsline {section}{\numberline {3.3}Solution}{15}{section.3.3}%
|
||||
\contentsline {section}{\numberline {3.4}Discussion of the result}{15}{section.3.4}%
|
||||
\contentsline {chapter}{\numberline {4}Problem 4 - QR method of finding eigenvalues}{16}{chapter.4}%
|
||||
\contentsline {section}{\numberline {4.1}Problem}{16}{section.4.1}%
|
||||
\contentsline {section}{\numberline {4.2}Theoretical introduction}{16}{section.4.2}%
|
||||
\contentsline {section}{\numberline {4.3}Solution}{16}{section.4.3}%
|
||||
\contentsline {section}{\numberline {4.4}Discussion of the result}{16}{section.4.4}%
|
||||
\contentsline {chapter}{\numberline {3}Problem 3 - Solving a system of n linear equations - iterative algorithm}{11}{chapter.3}%
|
||||
\contentsline {section}{\numberline {3.1}Problem}{11}{section.3.1}%
|
||||
\contentsline {section}{\numberline {3.2}Theoretical introduction}{11}{section.3.2}%
|
||||
\contentsline {section}{\numberline {3.3}Solution}{12}{section.3.3}%
|
||||
\contentsline {section}{\numberline {3.4}Discussion of the result}{12}{section.3.4}%
|
||||
\contentsline {chapter}{\numberline {4}Problem 4 - QR method of finding eigenvalues}{13}{chapter.4}%
|
||||
\contentsline {section}{\numberline {4.1}Problem}{13}{section.4.1}%
|
||||
\contentsline {section}{\numberline {4.2}Theoretical introduction}{13}{section.4.2}%
|
||||
\contentsline {section}{\numberline {4.3}Solution}{13}{section.4.3}%
|
||||
\contentsline {section}{\numberline {4.4}Discussion of the result}{13}{section.4.4}%
|
||||
\contentsline {chapter}{\numberline {5}Code appendix}{14}{chapter.5}%
|
||||
\contentsline {section}{\numberline {5.1}Task 2 Code}{14}{section.5.1}%
|
||||
\contentsline {subsection}{\numberline {5.1.1}Main function}{14}{subsection.5.1.1}%
|
||||
\contentsline {subsection}{\numberline {5.1.2}checkIfMatrixIsSquareMatrix}{14}{subsection.5.1.2}%
|
||||
\contentsline {subsection}{\numberline {5.1.3}gaussianEliminationWithPartialPivoting}{16}{subsection.5.1.3}%
|
||||
\contentsline {subsection}{\numberline {5.1.4}partialPivoting}{16}{subsection.5.1.4}%
|
||||
\contentsline {subsection}{\numberline {5.1.5}partialPivotingSwapOneRow}{16}{subsection.5.1.5}%
|
||||
\contentsline {subsection}{\numberline {5.1.6}swapRowMatrix}{17}{subsection.5.1.6}%
|
||||
\contentsline {subsection}{\numberline {5.1.7}swapValueVector}{17}{subsection.5.1.7}%
|
||||
\contentsline {subsection}{\numberline {5.1.8}gaussianElimination}{17}{subsection.5.1.8}%
|
||||
\contentsline {subsection}{\numberline {5.1.9}substractRows}{17}{subsection.5.1.9}%
|
||||
\contentsline {subsection}{\numberline {5.1.10}backSubstitutionPhase}{18}{subsection.5.1.10}%
|
||||
\contentsline {subsection}{\numberline {5.1.11}iterativeResidualCorrection}{18}{subsection.5.1.11}%
|
||||
\contentsline {subsection}{\numberline {5.1.12}improveSolution}{18}{subsection.5.1.12}%
|
||||
|
||||
@ -39,3 +39,11 @@ https://tex.stackexchange.com/questions/103998/how-to-force-a-table-of-contents-
|
||||
https://www.codegrepper.com/code-examples/whatever/column+vector+latex - Vector in latex
|
||||
|
||||
https://tex.stackexchange.com/questions/9901/how-to-have-matrices-side-by-side-in-latex - Matrices side by side in LaTeX
|
||||
|
||||
https://latex.wikia.org/wiki/Percent_sign_(LaTeX_symbol) - percentage sign latex
|
||||
|
||||
https://tex.stackexchange.com/questions/508341/writing-a-system-of-linear-equations - Writing system of equations LaTeX
|
||||
|
||||
https://www.overleaf.com/learn/latex/Matrices - matrixes latex
|
||||
|
||||
https://tex.stackexchange.com/questions/294561/using-textbf-vs-mathbf-in-math-mode - mathbf vs textbf
|
||||
|
||||
BIN
ENUME/references/report_A.pdf
Normal file
BIN
ENUME/references/report_A.pdf
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user