Adding HW R skeleton

This commit is contained in:
Noah L. Schrick 2023-03-26 16:35:15 -05:00
parent 7141d58453
commit ab314c00ea
3 changed files with 60 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata

View File

@ -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

43
Schrick-Noah_Homework-5.R Normal file
View File

@ -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