5 Commits

Author SHA1 Message Date
5147389217 Merge branch 'main' into coryab/implement-problem-5 2023-09-10 13:05:56 +02:00
85e469f101 Stuff 2023-09-10 12:58:56 +02:00
439bcefcb4 Merge pull request #20 from FYS3150-G2-2023/9-solve-problem-9
9 solve problem 9
2023-09-10 12:57:06 +02:00
02302e1255 Merge pull request #19 from FYS3150-G2-2023/6-solve-problem-6
Finished exercise 6
2023-09-10 12:56:54 +02:00
46d3a78767 Implement problem 5 and a bit more 2023-09-10 12:41:15 +02:00
6 changed files with 7 additions and 5 deletions

BIN
latex/assignment_1.pdf Normal file

Binary file not shown.

View File

@@ -80,7 +80,7 @@
\begin{document}
\title{Project 1} % self-explanatory
\author{Cory Balaton \& Janita Willumsen} % self-explanatory
\author{Cory Alexander Balaton \& Janita Ovidie Sandtrøen Willumsen} % self-explanatory
\date{\today} % self-explanatory
\noaffiliation % ignore this, but keep it.
@@ -107,4 +107,6 @@
\input{problems/problem9}
\input{problems/problem10}
\end{document}

View File

@@ -40,5 +40,5 @@ Using the values that we found for $c_1$ and $c_2$, we get
\begin{align*}
u(x) &= -e^{-10x} + (e^{-10} - 1) x + 1 \\
&= 1 - (1 - e^{-10}) - e^{-10x}
&= 1 - (1 - e^{-10})x - e^{-10x}
\end{align*}

View File

@@ -1,6 +1,6 @@
\section*{Problem 5}
\subsection*{a)}
\subsection*{a \& b)}
\subsection*{b)}
$n = m - 2$ since when solving for $\vec{v}$, we are finding the solutions for all the points that are in between the boundaries and not the boundaries themselves. $\vec{v}^*$ on the other hand includes the boundary points.

View File

@@ -44,4 +44,4 @@ Following Thomas algorithm for gaussian elimination, we first perform a forward
Counting the number of FLOPs for the general algorithm by looking at one procedure at a time.
For every iteration of i in forward sweep we have 1 division, 2 multiplications, and 2 subtractions, resulting in $5(n-1)$ FLOPs.
For backward sweep we have 1 division, and for every iteration of i we have 1 subtraction, 1 multiplication, and 1 division, resulting in $3(n-1)+1$ FLOPs.
Total FLOPs for the general algorithm is $8(n-1)+1$.
Total FLOPs for the general algorithm is $8(n-1)+1$.

View File