예제 #1
0
 def _calculate_area_by_volume(self):
     self.area = math.pi * (helpers.cube_root((3 * self.volume) / (4 *
                     math.pi)) ** 2)
     return
예제 #2
0
 def _calculate_perimeter_by_volume(self):
     self.perimeter = 2 * math.pi * (helpers.cube_root((3 * self.volume) /
                 (4 * math.pi)))
     return
예제 #3
0
 def _calculate_radius_by_volume(self):
     self.radius = helpers.cube_root((3 * self.volume) / (4 * math.pi))
     return
예제 #4
0
 def _calculate_diameter_by_volume(self):
     self.diameter = helpers.cube_root((6 * self.volume) / math.pi)
     return
예제 #5
0
 def _calculate_incircle_radius_by_volume(self):
     self.incircle_radius = helpers.cube_root(self.volume) / 2
     return
예제 #6
0
 def _calculate_surface_area_by_volume(self):
     self.surface_area = 6 * (helpers.cube_root(self.volume) ** 2)
     return
예제 #7
0
 def _calculate_diagonal_length_by_volume(self):
     self.diagonal_length = helpers.cube_root(self.volume) * math.sqrt(2)
     return
예제 #8
0
 def _calculate_circumscribed_circle_radius_by_volume(self):
     self.circumscribed_circle_radius = helpers.cube_root(self.volume) / math.sqrt(2)
     return
예제 #9
0
 def _calculate_perimeter_by_volume(self):
     self.perimeter = 4 * helpers.cube_root(self.volume)
     return
예제 #10
0
 def _calculate_area_by_volume(self):
     self.area = helpers.cube_root(self.volume) ** 2
     return
예제 #11
0
 def _calculate_side_length_by_volume(self):
     self.side_length = helpers.cube_root(self.volume)
     return
예제 #12
0
 def _calculate_circumscribed_sphere_radius_by_volume(self):
     self.circumscribed_sphere_radius = (math.sqrt(3) / 2) * helpers.cube_root(self.volume)
     return
예제 #13
0
 def _calculate_space_diagonal_length_by_volume(self):
     self.space_diagonal_length = math.sqrt(3) * helpers.cube_root(self.volume)
     return