Advertisement
Guest User

Untitled

a guest
Nov 14th, 2019
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.16 KB | None | 0 0
  1. #propagation of uncertainties for Lab 3
  2.  
  3. C_1 = 3.189 #c value of best fit curve for Potential(time) graph for Capacitor 1
  4. C_1_uncertainty = 0.1531 #uncertainty of c value of best fit curve for Potential(time) graph for Capacitor 1
  5. C_2 = 0.3773 #c value of best fit curve for Potential(time) graph for Capacitor 2
  6. C_2_uncertainty = 0.0004144 # uncertainty of c value of best fit curve for Potential(time) graph for Capacitor 2
  7. C_3 = 2.914 #c value of best fit curve for Potential(time) graph for both capacitors in series
  8. C_3_uncertainty = 0.1291 #uncertainty of c value of best fit curve for Potential(time) graph for both capacitors in series
  9. C_4 = 0.3449 #c value of best fit curve for Potential(time) graph for both capacitors in parallel
  10. C_4_uncertainty = 0.0003776 #uncertainty of c value of best fit curve for Potential(time) graph for both capacitors in parallel
  11.  
  12. Capacitance_1 = 1/(C_1*22000)*1000000 #calculation of Experimental value of capacitance for Capacitor 1 (in µF)
  13. Capacitance_2 = 1/(C_2*22000)*1000000 #calculation of Experimental value of capacitance for Capacitor 2 (in µF)
  14. Capacitance_3 = 1/(C_3*22000)*1000000 #calculation of Experimental value of capacitance for Capacitor 1 and Capacitor 2 in series (in µF)
  15. Capacitance_4 = 1/(C_4*22000)*1000000 #calculation of Experimental value of capacitance for Capacitor 1 and Capacitor 2 in parallel (in µF)
  16.  
  17. Resistance_uncertainty = 1100 #Value of propagation of uncertainty of the Resistor (in Ohms)
  18. Resistance = 22000 #Value of resistor used for all experiments (in Ohms)
  19.  
  20. Capacitance_1_uncertainty = Capacitance_1*((C_1_uncertainty/C_1)+(Resistance_uncertainty/Resistance))
  21. #calculation for the propagated uncertainty of Experimental value of capacitance for Capacitor 1 (in µF)
  22. Capacitance_2_uncertainty = Capacitance_2*((C_2_uncertainty/C_2)+(Resistance_uncertainty/Resistance))
  23. #calculation for the propagated uncertainty of Experimental value of capacitance for Capacitor 2 (in µF)
  24. Capacitance_3_uncertainty = Capacitance_3*((C_3_uncertainty/C_3)+(Resistance_uncertainty/Resistance))
  25. #calculation for the propagated uncertainty of Experimental value of capacitance for Capacitor 1 and Capacitor 2 in series (in µF)
  26. Capacitance_4_uncertainty = Capacitance_4*((C_4_uncertainty/C_4)+(Resistance_uncertainty/Resistance))
  27. #calculation for the propagated uncertainty of Experimental value of capacitance for Capacitor 1 and Capacitor 2 in parallel (in µF)
  28.  
  29. Theo_Cap1 = 10 #Theoretical Value of Capacitance of Capacitor 1 (in µF)
  30. Theo_Cap2 = 100 #Theoretical Value of Capacitance of Capacitor 2 (in µF)
  31. Theo_cap_series = (Theo_Cap1*Theo_Cap2)/(Theo_Cap1+Theo_Cap2) #Theoretical Value of Capacitance of Capacitors 1 and 2 in series (in µF)
  32. Theo_cap_parallel = Theo_Cap1+Theo_Cap2 #Theoretical Value of Capacitance of Capacitors 1 and 2 in parallel (in µF)
  33.  
  34.  
  35. 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)
  36. #calculation for the propagated uncertainty of Theoretical value of capacitance for Capacitors 1 and 2 in Series (in µF)
  37. Theo_cap_parallel_uncertainty = Capacitance_1_uncertainty+Capacitance_2_uncertainty
  38. #calculation for the propagated uncertainty of Theoretical value of capacitance for Capacitors 1 and 2 in Parallel (in µF)
  39.  
  40.  
  41.  
  42. print("Experimental Capacitance 1 = ", Capacitance_1, "µF")
  43. # print experimental capacitance of Capacitor 1
  44. print("Uncertainty of Experimental Capacitance 1 = ", Capacitance_1_uncertainty, "µF")
  45. # print propagated uncertainty of experimental capacitance of Capacitor 1
  46. print("Experimental Capacitance 2 = ", Capacitance_2, "µF")
  47. # print experimental capacitance of Capacitor 2
  48. print("Uncertainty of Experimental Capacitance 2 = ", Capacitance_2_uncertainty, "µF")
  49. # print propagated uncertainty of experimental capacitance of Capacitor 2
  50. print("Experimental Capacitance of both in series = ", Capacitance_3, "µF")
  51. # print experimental capacitance of Capacitors in series
  52. print("Uncertainty of Experimental Capacitance of both in series = ", Capacitance_3_uncertainty, "µF")
  53. # print propagated uncertainty of experimental capacitance of Capacitors in series
  54. print("Experimental Capacitance of both in parallel = ", Capacitance_4, "µF")
  55. # print experimental capacitance of Capacitors in parallel
  56. print("Uncertainty of Experimental Capacitance of both in parallel = ", Capacitance_4_uncertainty, "µF")
  57. # print propagated uncertainty of experimental capacitance of Capacitors in parallel
  58.  
  59. print("Theoretical Capacitance of both in series = ", Theo_cap_series, "µF")
  60. # print Theoretical capacitance of Capacitors in series
  61. print("Uncertainty of Theoretical Capacitance of both in series = ", Theo_cap_series_uncertainty, "µF")
  62. # print propagated uncertainty of Theoretical capacitance of Capacitors in series
  63. print("Theoretical Capacitance of both in parallel = ", Theo_cap_parallel, "µF")
  64. # print Theoretical capacitance of Capacitors in parallel
  65. print("Uncertainty of Theoretical Capacitance of both in parallel = ", Theo_cap_parallel_uncertainty, "µF")
  66. # print propagated uncertainty of Theoretical capacitance of Capacitors in parallel
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement