Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #propagation of uncertainties for Lab 3
- C_1 = 3.189 #c value of best fit curve for Potential(time) graph for Capacitor 1
- C_1_uncertainty = 0.1531 #uncertainty of c value of best fit curve for Potential(time) graph for Capacitor 1
- C_2 = 0.3773 #c value of best fit curve for Potential(time) graph for Capacitor 2
- C_2_uncertainty = 0.0004144 # uncertainty of c value of best fit curve for Potential(time) graph for Capacitor 2
- C_3 = 2.914 #c value of best fit curve for Potential(time) graph for both capacitors in series
- C_3_uncertainty = 0.1291 #uncertainty of c value of best fit curve for Potential(time) graph for both capacitors in series
- C_4 = 0.3449 #c value of best fit curve for Potential(time) graph for both capacitors in parallel
- C_4_uncertainty = 0.0003776 #uncertainty of c value of best fit curve for Potential(time) graph for both capacitors in parallel
- Capacitance_1 = 1/(C_1*22000)*1000000 #calculation of Experimental value of capacitance for Capacitor 1 (in µF)
- Capacitance_2 = 1/(C_2*22000)*1000000 #calculation of Experimental value of capacitance for Capacitor 2 (in µF)
- Capacitance_3 = 1/(C_3*22000)*1000000 #calculation of Experimental value of capacitance for Capacitor 1 and Capacitor 2 in series (in µF)
- Capacitance_4 = 1/(C_4*22000)*1000000 #calculation of Experimental value of capacitance for Capacitor 1 and Capacitor 2 in parallel (in µF)
- Resistance_uncertainty = 1100 #Value of propagation of uncertainty of the Resistor (in Ohms)
- Resistance = 22000 #Value of resistor used for all experiments (in Ohms)
- Capacitance_1_uncertainty = Capacitance_1*((C_1_uncertainty/C_1)+(Resistance_uncertainty/Resistance))
- #calculation for the propagated uncertainty of Experimental value of capacitance for Capacitor 1 (in µF)
- Capacitance_2_uncertainty = Capacitance_2*((C_2_uncertainty/C_2)+(Resistance_uncertainty/Resistance))
- #calculation for the propagated uncertainty of Experimental value of capacitance for Capacitor 2 (in µF)
- Capacitance_3_uncertainty = Capacitance_3*((C_3_uncertainty/C_3)+(Resistance_uncertainty/Resistance))
- #calculation for the propagated uncertainty of Experimental value of capacitance for Capacitor 1 and Capacitor 2 in series (in µF)
- Capacitance_4_uncertainty = Capacitance_4*((C_4_uncertainty/C_4)+(Resistance_uncertainty/Resistance))
- #calculation for the propagated uncertainty of Experimental value of capacitance for Capacitor 1 and Capacitor 2 in parallel (in µF)
- Theo_Cap1 = 10 #Theoretical Value of Capacitance of Capacitor 1 (in µF)
- Theo_Cap2 = 100 #Theoretical Value of Capacitance of Capacitor 2 (in µF)
- Theo_cap_series = (Theo_Cap1*Theo_Cap2)/(Theo_Cap1+Theo_Cap2) #Theoretical Value of Capacitance of Capacitors 1 and 2 in series (in µF)
- Theo_cap_parallel = Theo_Cap1+Theo_Cap2 #Theoretical Value of Capacitance of Capacitors 1 and 2 in parallel (in µF)
- Theo_cap_series_uncertainty = (Capacitance_1_uncertainty*Capacitance_2**2)/((Capacitance_1+Capacitance_2)**2)+(Capacitance_2_uncertainty*Capacitance_1**2)/((Capacitance_1+Capacitance_2)**2)
- #calculation for the propagated uncertainty of Theoretical value of capacitance for Capacitors 1 and 2 in Series (in µF)
- Theo_cap_parallel_uncertainty = Capacitance_1_uncertainty+Capacitance_2_uncertainty
- #calculation for the propagated uncertainty of Theoretical value of capacitance for Capacitors 1 and 2 in Parallel (in µF)
- print("Experimental Capacitance 1 = ", Capacitance_1, "µF")
- # print experimental capacitance of Capacitor 1
- print("Uncertainty of Experimental Capacitance 1 = ", Capacitance_1_uncertainty, "µF")
- # print propagated uncertainty of experimental capacitance of Capacitor 1
- print("Experimental Capacitance 2 = ", Capacitance_2, "µF")
- # print experimental capacitance of Capacitor 2
- print("Uncertainty of Experimental Capacitance 2 = ", Capacitance_2_uncertainty, "µF")
- # print propagated uncertainty of experimental capacitance of Capacitor 2
- print("Experimental Capacitance of both in series = ", Capacitance_3, "µF")
- # print experimental capacitance of Capacitors in series
- print("Uncertainty of Experimental Capacitance of both in series = ", Capacitance_3_uncertainty, "µF")
- # print propagated uncertainty of experimental capacitance of Capacitors in series
- print("Experimental Capacitance of both in parallel = ", Capacitance_4, "µF")
- # print experimental capacitance of Capacitors in parallel
- print("Uncertainty of Experimental Capacitance of both in parallel = ", Capacitance_4_uncertainty, "µF")
- # print propagated uncertainty of experimental capacitance of Capacitors in parallel
- print("Theoretical Capacitance of both in series = ", Theo_cap_series, "µF")
- # print Theoretical capacitance of Capacitors in series
- print("Uncertainty of Theoretical Capacitance of both in series = ", Theo_cap_series_uncertainty, "µF")
- # print propagated uncertainty of Theoretical capacitance of Capacitors in series
- print("Theoretical Capacitance of both in parallel = ", Theo_cap_parallel, "µF")
- # print Theoretical capacitance of Capacitors in parallel
- print("Uncertainty of Theoretical Capacitance of both in parallel = ", Theo_cap_parallel_uncertainty, "µF")
- # print propagated uncertainty of Theoretical capacitance of Capacitors in parallel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement