mirror of
https://github.com/kuhyx/WUT_Computer_Science.git
synced 2026-11-10 22:07:10 +01:00
The 250-line cap applies to prose too, and the reports were the worst
offenders -- ENUME's projectA.tex alone was 1,876 lines. Each is now a
preamble plus one \input{} per section, which is how a long LaTeX document is
normally organised; not one byte of prose was rewritten.
"The PDF is unchanged" is checked by a script rather than by eye, because
hashing the PDF cannot work: pdflatex stamps a /CreationDate and an /ID into
every build, so two runs of the SAME source already differ. tex_fingerprint.sh
compares what a reader sees instead -- page count plus a hash of the extracted
text -- and it is stable across rebuilds of untouched sources, which is the
property that makes it usable as a gate.
It earned its keep immediately. Both ECOTE reports quote an example LaTeX
document inside an lstlisting block, so \end{document} appears in the middle
of the file; splitting on the FIRST one stranded everything after it. Same
page count, different text, caught automatically. EOPSY lab3 exposed a second
bug: a \section{} title that runs onto the next line.
Result: 19 .tex over the cap -> 1. The survivor,
ELAC/.../03-building-nfa-...tex, is 418 lines of consecutive tikz figures
with no subsection to split on and needs a hand-placed boundary.
Verified: 29 splits across two passes (section, then subsection for the
pieces still over), every one reporting `unchanged` from
scripts/tex_fingerprint.sh --check.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0172dj34FDpao6wsix8ZuCzE
101 lines
2.6 KiB
TeX
101 lines
2.6 KiB
TeX
\section{Results}
|
|
\subsection{2a)}
|
|
Solutions vectors for matrix A and vector A and n = 10 \\
|
|
Without residual correction:
|
|
\[ x_{algorithm} = \left(\begin{array}{cc}
|
|
-0.930024655110760 \\
|
|
-1.223407298665613 \\
|
|
-1.273530574219411 \\
|
|
-1.230517757325955 \\
|
|
-1.151356031091789 \\
|
|
-1.056883669282743 \\
|
|
-0.952628310089775 \\
|
|
-0.834334594319914 \\
|
|
-0.683708806203301 \\
|
|
-0.450125157623323
|
|
\end{array} \right)
|
|
\]
|
|
With residual correction:
|
|
\[ x_{algorithm} = \left(\begin{array}{cc}
|
|
-0.930024655110760 \\
|
|
-1.223407298665613 \\
|
|
-1.273530574219411 \\
|
|
-1.230517757325955 \\
|
|
-1.151356031091788 \\
|
|
-1.056883669282743 \\
|
|
-0.952628310089775 \\
|
|
-0.834334594319914 \\
|
|
-0.683708806203301 \\
|
|
-0.450125157623323
|
|
\end{array} \right)
|
|
\]
|
|
Matlab method:
|
|
\[
|
|
x_{Matlab Method} = \left( = \begin{array}{cc}
|
|
-0.930024655110760 \\
|
|
-1.223407298665612 \\
|
|
-1.273530574219411 \\
|
|
-1.230517757325956 \\
|
|
-1.151356031091789 \\
|
|
-1.056883669282743 \\
|
|
-0.952628310089775 \\
|
|
-0.834334594319914 \\
|
|
-0.683708806203301 \\
|
|
-0.450125157623323
|
|
\end{array} \right)
|
|
\]
|
|
Error for 'A' system of equations for algorithm before residual correction: \[ 1.986027322597818e-15 \]
|
|
Error for 'A' system of equations for algorithm after residual correction: \[ 1.986027322597818e-15 \]
|
|
Error for 'A' system of equations for matlab method: \[ 3.383918772654241 \]
|
|
\newpage
|
|
\subsection{2b)}
|
|
Solutions vectors for matrix B and vector B and n = 10
|
|
Without residual correction:
|
|
\[ x_{algorithm} = 10^{14} * \left(\begin{array}{cc}
|
|
-0.000050600471710 \\
|
|
0.001764889142984 \\
|
|
-0.022358533990003 \\
|
|
0.142964542843099 \\
|
|
-0.526425616773059 \\
|
|
1.184552423606169 \\
|
|
-1.655429692441864 \\
|
|
1.402099618098568 \\
|
|
-0.659000958954395 \\
|
|
0.131884594651908 \\
|
|
\end{array} \right)
|
|
\]
|
|
With residual correction:
|
|
\[ x_{algorithm} = 10^{14} * \left(\begin{array}{cc}
|
|
-0.000050600463347 \\
|
|
0.001764888849422 \\
|
|
-0.022358530253741 \\
|
|
0.142964518868662 \\
|
|
-0.526425528251739 \\
|
|
1.184552223980917 \\
|
|
-1.655429412965713 \\
|
|
1.402099381042299 \\
|
|
-0.659000847398248 \\
|
|
0.131884572303072 \\
|
|
\end{array} \right)
|
|
\]
|
|
Matlab method:
|
|
\[
|
|
x_{Matlab Method} = 10^{14} * \left( = \begin{array}{cc}
|
|
-0.000050613652388 \\
|
|
0.001765340333555 \\
|
|
-0.022364164880105 \\
|
|
0.143000107689097 \\
|
|
-0.526555232536911 \\
|
|
1.184841538613606 \\
|
|
-1.655830695338199 \\
|
|
1.402437027506887 \\
|
|
-0.659158629093553 \\
|
|
0.131915987214953 \\
|
|
\end{array} \right)
|
|
\]
|
|
Error for 'B' system of equations for algorithm before residual correction: \[ 3.775702543583306e-04 \]
|
|
Error for 'B' system of equations for algorithm after residual correction: \[ 7.395459186003887e-04 \]
|
|
Error for 'B' system of equations for matlab method: \[ 2.611906929269057e-04 \]
|
|
|
|
\newpage
|