From adda6869cb2a07984b48c39fcd70ee76449c353d Mon Sep 17 00:00:00 2001
From: Elizabeth Hunt <elizabeth.hunt@simponic.xyz>
Date: Mon, 9 Oct 2023 21:08:25 -0600
Subject: updates 10/9

---
 homeworks/hw-2.tex | 36 +++++++++++++++++++-----------------
 1 file changed, 19 insertions(+), 17 deletions(-)

(limited to 'homeworks/hw-2.tex')

diff --git a/homeworks/hw-2.tex b/homeworks/hw-2.tex
index e0aa172..da8d3f5 100644
--- a/homeworks/hw-2.tex
+++ b/homeworks/hw-2.tex
@@ -1,4 +1,4 @@
-% Created 2023-09-27 Wed 10:09
+% Created 2023-10-07 Sat 14:51
 % Intended LaTeX compiler: pdflatex
 \documentclass[11pt]{article}
 \usepackage[utf8]{inputenc}
@@ -29,7 +29,7 @@
 \setlength\parindent{0pt}
 
 \section{Question One}
-\label{sec:orga21c813}
+\label{sec:org58b9af4}
 Computing \(\epsilon_{\text{mac}}\) for single precision numbers
 
 \begin{verbatim}
@@ -49,6 +49,7 @@ Computing \(\epsilon_{\text{mac}}\) for single precision numbers
 \begin{center}
 \begin{tabular}{rrr}
 a & h & err\\[0pt]
+1.0 & 1.0 & 1.0\\[0pt]
 1.0 & 0.5 & 0.5\\[0pt]
 1.0 & 0.25 & 0.25\\[0pt]
 1.0 & 0.125 & 0.125\\[0pt]
@@ -65,7 +66,7 @@ a & h & err\\[0pt]
 \(\epsilon_{\text{mac single precision}}\) \(\approx\) 1.192(10\textsuperscript{-7})
 
 \section{Question Two}
-\label{sec:org06c4a23}
+\label{sec:org27557b4}
 Computing \(\epsilon_{\text{mac}}\) for double precision numbers:
 
 \begin{verbatim}
@@ -81,6 +82,7 @@ Computing \(\epsilon_{\text{mac}}\) for double precision numbers:
 \begin{center}
 \begin{tabular}{rrr}
 a & h & err\\[0pt]
+1.0d0 & 1.0d0 & 1.0d0\\[0pt]
 1.0d0 & 0.5d0 & 0.5d0\\[0pt]
 1.0d0 & 0.25d0 & 0.25d0\\[0pt]
 1.0d0 & 0.125d0 & 0.125d0\\[0pt]
@@ -102,7 +104,7 @@ a & h & err\\[0pt]
 Thus, \(\epsilon_{\text{mac double precision}}\) \(\approx\) 2.220 \(\cdot\) 10\textsuperscript{-16}
 
 \section{Question Three - |v|\textsubscript{2}}
-\label{sec:orgf181ba7}
+\label{sec:org59c6c10}
 \begin{verbatim}
 (let ((vs '((1 1) (2 3) (4 5) (-1 2)))
       (2-norm (lizfcm.vector:p-norm 2)))
@@ -124,7 +126,7 @@ x & y & 2norm\\[0pt]
 \end{center}
 
 \section{Question Four - |v|\textsubscript{1}}
-\label{sec:org2196087}
+\label{sec:org2b67b3e}
 \begin{verbatim}
 (let ((vs '((1 1) (2 3) (4 5) (-1 2)))
       (1-norm (lizfcm.vector:p-norm 1)))
@@ -146,7 +148,7 @@ x & y & 1norm\\[0pt]
 \end{center}
 
 \section{Question Five - |v|\textsubscript{\(\infty\)}}
-\label{sec:org11b8894}
+\label{sec:org922206e}
 \begin{verbatim}
 (let ((vs '((1 1) (2 3) (4 5) (-1 2))))
   (lizfcm.utils:table (:headers '("x" "y" "max-norm")
@@ -167,11 +169,11 @@ x & y & infty-norm\\[0pt]
 \end{center}
 
 \section{Question Six - ||v - u|| via |v|\textsubscript{2}}
-\label{sec:orga2324b2}
+\label{sec:org29ec18f}
 \begin{verbatim}
-(let* ((vs '((1 1) (2 3) (4 5) (-1 2)))
-       (vs2 '((7 9) (2 2) (8 -1) (4 4)))
-       (2-norm (lizfcm.vector:p-norm 2)))
+(let ((vs '((1 1) (2 3) (4 5) (-1 2)))
+      (vs2 '((7 9) (2 2) (8 -1) (4 4)))
+      (2-norm (lizfcm.vector:p-norm 2)))
   (lizfcm.utils:table (:headers '("v1" "v2" "2-norm-d")
                        :domain-order (v1 v2)
                        :domain-values (mapcar (lambda (v1 v2)
@@ -193,11 +195,11 @@ v1 & v2 & 2-norm\\[0pt]
 \end{center}
 
 \section{Question Seven - ||v - u|| via |v|\textsubscript{1}}
-\label{sec:org388fbc7}
+\label{sec:org7a87810}
 \begin{verbatim}
-(let* ((vs '((1 1) (2 3) (4 5) (-1 2)))
-       (vs2 '((7 9) (2 2) (8 -1) (4 4)))
-       (1-norm (lizfcm.vector:p-norm 1)))
+(let ((vs '((1 1) (2 3) (4 5) (-1 2)))
+      (vs2 '((7 9) (2 2) (8 -1) (4 4)))
+      (1-norm (lizfcm.vector:p-norm 1)))
   (lizfcm.utils:table (:headers '("v1" "v2" "1-norm-d")
                        :domain-order (v1 v2)
                        :domain-values (mapcar (lambda (v1 v2)
@@ -219,10 +221,10 @@ v1 & v2 & 1-norm-d\\[0pt]
 \end{center}
 
 \section{Question Eight - ||v - u|| via |v|\textsubscript{\(\infty\)}}
-\label{sec:org6e77f76}
+\label{sec:org0f3b64f}
 \begin{verbatim}
-(let* ((vs '((1 1) (2 3) (4 5) (-1 2)))
-       (vs2 '((7 9) (2 2) (8 -1) (4 4))))
+(let ((vs '((1 1) (2 3) (4 5) (-1 2)))
+      (vs2 '((7 9) (2 2) (8 -1) (4 4))))
   (lizfcm.utils:table (:headers '("v1" "v2" "max-norm-d")
                        :domain-order (v1 v2)
                        :domain-values (mapcar (lambda (v1 v2)
-- 
cgit v1.3

