Пример #1
0
 def calculate_2c(self):
     var1 = self.radius_scale.get()
     var2 = self.mass_scale.get()
     var3 = self.ang_vel_scale.get()
     ans1 = Moment_Inertia(circle_constant, var1, var2)
     ans2 = Rotational_Kinetic_Energy(ans1, var3)
     self.frame2c_entry1.delete(0, END)
     self.frame2c_entry1.insert(0, round(ans1, 2))
     self.frame2c_entry2.delete(0, END)
     self.frame2c_entry2.insert(0, round(ans2, 2))
Пример #2
0
 def calculate_2b(self):
     var1 = self.radius_scale.get()
     var2 = self.mass_scale.get()
     var3 = self.ang_vel_scale.get()
     ans1 = Moment_Inertia(circle_constant, var1, var2)
     ans2 = Angular_Momentum(ans1, var3)
     self.frame2b_entry1.delete(0, END)
     self.frame2b_entry1.insert(0, round(ans1, 2))
     self.frame2b_entry2.delete(0, END)
     self.frame2b_entry2.insert(0, round(ans2, 2))
Пример #3
0
 def calculate_3b(self):
     var1 = self.radius_scale.get()
     var2 = self.mass_scale.get()
     var3 = self.ang_vel_scale.get()
     var4 = atl(var3, var1)
     ans1 = Moment_Inertia(circle_constant, var1, var2)
     ans2 = Angular_Momentum(ans1, var3)
     ans3 = Linear_Momentum(var2, var4)
     self.frame3b_entry1.delete(0, END)
     self.frame3b_entry1.insert(0, round(ans1, 2))
     self.frame3b_entry2.delete(0, END)
     self.frame3b_entry2.insert(0, round(ans2, 2))
     self.frame3b_entry3.delete(0, END)
     self.frame3b_entry3.insert(0, round(ans3, 2))
Пример #4
0
 def calculate_3c(self):
     var1 = self.radius_scale.get()
     var2 = self.mass_scale.get()
     var3 = self.ang_vel_scale.get()
     var4 = atl(var3, var1)
     ans1 = Moment_Inertia(circle_constant, var1, var2)
     ans2 = Rotational_Kinetic_Energy(ans1, var3)
     ans3 = Linear_Kinetic_Energy(var2, var4)
     ans4 = TKE(ans2, ans3)
     self.frame3c_entry1.delete(0, END)
     self.frame3c_entry1.insert(0, round(ans1, 2))
     self.frame3c_entry2.delete(0, END)
     self.frame3c_entry2.insert(0, round(ans2, 2))
     self.frame3c_entry3.delete(0, END)
     self.frame3c_entry3.insert(0, round(ans3, 2))
     self.frame3c_entry4.delete(0, END)
     self.frame3c_entry4.insert(0, round(ans4, 2))
Пример #5
0
 def calculate_3a(self):
     var1 = self.radius_scale.get()
     var2 = self.mass_scale.get()
     ans1 = Moment_Inertia(circle_constant, var1, var2)
     self.frame3a_entry1.delete(0, END)
     self.frame3a_entry1.insert(0, round(ans1, 2))