From 8c4fb4bb23529fb60a6918e27ccb04f1fe97b147 Mon Sep 17 00:00:00 2001 From: Ryan C Cooper Date: Tue, 31 Oct 2017 16:32:41 -0400 Subject: [PATCH 1/2] fix readme format --- HW4/README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/HW4/README.md b/HW4/README.md index 08be1df..7f782af 100644 --- a/HW4/README.md +++ b/HW4/README.md @@ -33,14 +33,18 @@ README before 10/26 by midnight: as inputs and calculates the Cholseky factorization of a tridiagonal matrix. The output should be 2 vectors, the diagonal and the off-diagonal vector of the Cholesky matrix. -```[d,u]=chol_tridiag(e,f);``` +```matlab +[d,u]=chol_tridiag(e,f); +``` **4\.** Use the output from `chol_tridiag.m` to create a forward substitution and back-substitution function called `solve_tridiag.m` that provides the solution of Ax=b given the vectors from the output of [d,u]=lu_tridiag(e,f). *Note: do not use the backslash solver `\`, create an algebraic solution* -```x=solve_tridiag(d,u,b);``` +```matlab +x=solve_tridiag(d,u,b); +``` ![Spring-mass system for problem 5](./figures/mass_springs.png) From a0b77e84e9e4099de084228b55c81c989d912ded Mon Sep 17 00:00:00 2001 From: Ryan C Cooper Date: Tue, 31 Oct 2017 16:33:04 -0400 Subject: [PATCH 2/2] Update README.md --- HW4/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/HW4/README.md b/HW4/README.md index 7f782af..eaf6bf1 100644 --- a/HW4/README.md +++ b/HW4/README.md @@ -8,12 +8,11 @@ with \`\`\` and document your code in the README.md file* **1\.** Create a new github repository called '04_linear_algebra'. - a. Add rcc02007 and zhs15101 as collaborators. +a. Add rcc02007 and zhs15101 as collaborators. - b. Clone the repository to your computer. +b. Clone the repository to your computer. - c. Submit clone repo link to - [https://goo.gl/forms/gFNxhNM4qJJKj8hE3](https://goo.gl/forms/gFNxhNM4qJJKj8hE3) +c. Submit clone repo link to [https://goo.gl/forms/gFNxhNM4qJJKj8hE3](https://goo.gl/forms/gFNxhNM4qJJKj8hE3) **2\.** Create the 4x4 and 5x5 [Hilbert matrix](https://en.wikipedia.org/wiki/Hilbert_matrix) as H. Include the following results in your README before 10/26 by midnight: