diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b6a065 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.Rproj.user +.Rhistory +.RData +.Ruserdata diff --git a/CS-7863-Sci-Stat-Proj-5.Rproj b/CS-7863-Sci-Stat-Proj-5.Rproj new file mode 100644 index 0000000..8e3c2eb --- /dev/null +++ b/CS-7863-Sci-Stat-Proj-5.Rproj @@ -0,0 +1,13 @@ +Version: 1.0 + +RestoreWorkspace: Default +SaveWorkspace: Default +AlwaysSaveHistory: Default + +EnableCodeIndexing: Yes +UseSpacesForTab: Yes +NumSpacesForTab: 2 +Encoding: UTF-8 + +RnwWeave: Sweave +LaTeX: pdfLaTeX diff --git a/Schrick-Noah_Homework-5.R b/Schrick-Noah_Homework-5.R new file mode 100644 index 0000000..e094edf --- /dev/null +++ b/Schrick-Noah_Homework-5.R @@ -0,0 +1,43 @@ +# Project 5 for the University of Tulsa's CS-7863 Sci-Stat Course +# Systems of Equations and Finite Difference Methods +# Professor: Dr. McKinney, Spring 2023 +# Noah L. Schrick - 1492657 + +## 1. Systems of Equations in Matrix Form +# a. Use built-in R solve + +# b. Verify with matrix mult + +## 2. Matrix from polynomial +# a. Create vector for x and y + +# b. Create coefficient matrix + +# c. Solve + +# d. Plot + +## 3. Kirchoff +# a. Create vectors +# Resistance vec +# Voltage vec +# Matrix A and vector b +# Solve +# Show currents + +# b. Repeat a. Use V=200, and R=(5,10,5,15,0,20) + +## 4. Schrodinger eq +#a. Solve and plot the 1d quantum harmonic oscillator wave function + +# b. Solve with Shooting Method + +## 5. Solve harmonic oscillator Schrodinger with finite difference +# a. Solve with R and Julia + +# b. Solve damped oscillator with perturbation param +# Plot + +## 6. Solve heat diffusion equation + +# EC. Solve the square plate problem \ No newline at end of file