Initial transfer of larger repo from git. IF full history and branches are needed must go to github at https://github.com/DulcisL/CCUCoding.git

This commit is contained in:
dolcel committed 2026-10-20 23:59:02 +00:00
commit c09ce40be0
4048 files changed
+603256

No files matched your search

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 391 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 429 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 388 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

+39
View File
@@ -0,0 +1,39 @@
import numpy as np
import matplotlib.pyplot as plt
import math
"""
Lakota Dolce
Lab 2
"""
#Title and label variables
title = "Charge of a Capacitor over Time (t)"
horizontal="Time"
vertical = "Charge"
gridTF = True
fsize = 20 #Font size
lwidth = 1; #line width
lstyle = "solid" #line style
lcolor = "" #line color
llabel = ""
start = 0
stop = .5
accuracy = 100
#Function
t = np.linspace(start,stop, accuracy) #(start, stop, # of points)
ft = 10*(np.exp(-(50*t)/(2*5)))*(np.cos(math.sqrt((1/(5*(10**-4)))-(50/(2*5))**2) * t))
#Note
# x = np.arange(start,stop,accuracy) #(start, stop, gap)
#e^x = np.exp(x) e^(2x) = np.exp(2*x)
#cos() = np.cos() sin() = np.sin()
#Plotting
plt.plot(t,ft, linestyle = lstyle, linewidth = lwidth, label = llabel)
plt.title(title,fontsize = fsize)
plt.xlabel(horizontal)
plt.ylabel(vertical)
plt.legend()
plt.grid(gridTF)
plt.show()
+39
View File
@@ -0,0 +1,39 @@
import numpy as np
import matplotlib.pyplot as plt
import math
"""
Lakota Dolce
Lab 2
"""
#Title and label variables
title = "Charge of a Capacitor over Time"
horizontal="Time (t)"
vertical = "Charge (q)"
gridTF = True
fsize = 20 #Font size
lwidth = 1; #line width
lstyle = "solid" #line style
lcolor = "black" #line color
llabel = "Charge as a Function over Time"
start = 0
stop = .5
accuracy = 100
#Function
t = np.linspace(start,stop, accuracy) #(start, stop, # of points)
ft = 10*(np.exp(-(50*t)/(2*5)))*(np.cos(math.sqrt((1/(5*(10**-4)))-(50/(2*5))**2) * t))
#Note
# x = np.arange(start,stop,accuracy) #(start, stop, gap)
#e^x = np.exp(x) e^(2x) = np.exp(2*x)
#cos() = np.cos() sin() = np.sin()
#Plotting
plt.plot(t,ft, linestyle = lstyle, linewidth = lwidth, label = llabel, color = lcolor)
plt.title(title,fontsize = fsize)
plt.xlabel(horizontal)
plt.ylabel(vertical)
plt.legend()
plt.grid(gridTF)
plt.show()
+49
View File
@@ -0,0 +1,49 @@
import numpy as np
import matplotlib.pyplot as plt
import math
"""
Lakota Dolce
Lab 2
"""
#Title and label variables
title = "Comparing Functions"
horizontal="X"
vertical = "Y"
gridTF = True
fsize = 20 #Font size
lwidth = 1; #line width
lstyle = "solid" #line style
lstyle2 = "dashed" #line style
lstyle3 = "dotted" #line style
lcolor = "red" #line color
lcolor2 = "green" #line color
lcolor3 = "blue" #line color
llabel = "e^(x)"
llabel2 = "-e^(-x)"
llabel3 = "e^(-x) * cos(6x)"
start = 0
stop = 5
accuracy = 100
#Function
x = np.linspace(start,stop, accuracy) #(start, stop, # of points)
y = np.exp(-x)
y2 = -np.exp(-x)
y3 = np.exp(-x) * np.cos(6*x)
#Note
# x = np.arange(start,stop,accuracy) #(start, stop, gap)
#e^x = np.exp(x) e^(2x) = np.exp(2*x)
#cos() = np.cos() sin() = np.sin()
#Plotting
plt.plot(x,y, linestyle = lstyle, linewidth = lwidth, label = llabel, color = lcolor)
plt.plot(x,y2, linestyle = lstyle2, linewidth = lwidth, label = llabel2, color = lcolor2)
plt.plot(x,y3, linestyle = lstyle3, linewidth = lwidth, label = llabel3, color = lcolor3)
plt.title(title,fontsize = fsize)
plt.xlabel(horizontal)
plt.ylabel(vertical)
plt.legend()
plt.grid(gridTF)
plt.show()
+44
View File
@@ -0,0 +1,44 @@
import numpy as np
import matplotlib.pyplot as plt
import math
"""
Lakota Dolce
Lab 2
"""
#Title and label variables
title = "Photodegredation of Aqueos Bromine"
horizontal="Concentration (c)"
vertical = "Time (t)"
gridTF = True
fsize = 20 #Font size
lwidth = 1; #line width
lstyle = "dotted" #line style
lcolor = "blue" #line color
llabel = "Concentration curve"
llabel2 = "Concentration Data"
start = 10
stop = 70
accuracy = 100
gap = 10
#Function
#t = np.linspace(start,stop, accuracy) #(start, stop, # of points)
t = np.arange(start, stop, gap) #(start, stop, gap)
y = 4.84 * (np.exp(-.034*t))
y2 = [3.4, 2.6, 1.6, 1.3, 1, .5]
#Note
#e^x = np.exp(x), e^(2x) = np.exp(2*x)
#cos() = np.cos(), sin() = np.sin()
#Plotting
plt.plot(t,y, linestyle = lstyle, linewidth = lwidth, label = llabel, color = lcolor)
plt.plot(t,y2, "*")
plt.title(title,fontsize = fsize)
plt.xlabel(horizontal)
plt.ylabel(vertical)
plt.legend()
plt.grid(gridTF)
plt.show()