https://github.com/parasj/math2605project
Calc 3 for CS Project
https://github.com/parasj/math2605project
Last synced: 8 months ago
JSON representation
Calc 3 for CS Project
- Host: GitHub
- URL: https://github.com/parasj/math2605project
- Owner: parasj
- Created: 2015-03-16T18:19:26.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-04-03T05:37:46.000Z (almost 11 years ago)
- Last Synced: 2024-04-15T14:21:43.035Z (almost 2 years ago)
- Language: Matlab
- Size: 2.4 MB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme_Part1.txt
Awesome Lists containing this project
README
ANY VECTOR .dat FILES SHOULD BE INPUTTED AS TRANSPOSE VECTORS (1 x n).
Ex. 1 2 3 4
Part 1 Readme
1. lu_fact:
To test the lu_fact, run driver_lu_fact in the Matlab shell.
It will launch a file picker for an input .dat file and print L, U and the LU error out to the Matlab shell.
The lu_fact function takes in a Matlab matrix as an argument if you wish to test it directly.
2. qr_fact:
To test qr_fact_househ and qr_fact_givens, run driver_qr_fact in the Matlab shell. This driver lets you choose which method you wish to solve with.
It will launch a file picker for an input .dat file. After that, it will ask for whether you wish to use householders or givens so calculate the QR decomposition.
It will then print L, U and the LU error out to the Matlab shell.
The qr_fact_househ and qr_fact_givens function takes in a Matlab matrix as an argument if you wish to test it directly.
3a. solve_lu_b:
To test solve_lu_b, run driver_lu_b in the Matlab shell.
It will launch a file picker for an input .dat file and print x and the error out to the Matlab shell.
The solve_lu_b function takes in a n x (n + 1) augmented Matlab matrix as an argument if you wish to test it directly.
3b. solve_qr_b:
To test solve_qr_b, run driver_lu_b in the Matlab shell. This driver lets you choose which method you wish to solve with.
It will launch a file picker for an input .dat file. After that, it will ask for whether you wish to use householders or givens so calculate the QR decomposition.
It will then print x and the error out to the Matlab shell.
The solve_qr_b function takes in a n x (n + 1) augmented Matlab matrix as an argument if you wish to test it directly.
4. Solution and errors for the Hilbert matrix, Error plots
To process the Hilbert matricies in the range of 2 to n, run the command runHilbertSolution(2, n) where n is the last Hilbert matrix to process.
Wait a few seconds to let the program run and a graph will appear.
The human readable output on the results are written to the folder Part1/written/hilbert_partd.txt.