コード例 #1
0
ファイル: test_math.py プロジェクト: jadelord/TomoKTH
 def test8(self):
     """ b = R; r < b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 1.2, 1.2), 1.76216, places=4)
コード例 #2
0
ファイル: test_math.py プロジェクト: jadelord/TomoKTH
 def test9(self):
     """ b > R; r < b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 1.0, 1.2), 1.15367, places=4)
コード例 #3
0
ファイル: test_math.py プロジェクト: jadelord/TomoKTH
 def test6(self):
     """ b > R; r = b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.2, 0.8), 0.14128, places=4)
コード例 #4
0
ファイル: test_math.py プロジェクト: jadelord/TomoKTH
 def test7(self):
     """ b < R; r < b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 1.0, 0.2), 3.90657, places=4)
コード例 #5
0
ファイル: test_math.py プロジェクト: jadelord/TomoKTH
 def test4(self):
     """ b < R; r = b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.8, 0.2), 3.13728, places=4)
コード例 #6
0
ファイル: test_math.py プロジェクト: jadelord/TomoKTH
 def test5(self):
     """ b = R; r = b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.5, 0.5), 1.20550, places=4)
コード例 #7
0
 def test1(self):
     """ b > R; r > b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.2, 0.3),
                            0.23696,
                            places=4)
コード例 #8
0
 def test3(self):
     """ b < R; r > b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.2, 0.1),
                            0.24752,
                            places=4)
コード例 #9
0
 def test7(self):
     """ b < R; r < b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 1.0, 0.2),
                            3.90657,
                            places=4)
コード例 #10
0
 def test8(self):
     """ b = R; r < b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 1.2, 1.2),
                            1.76216,
                            places=4)
コード例 #11
0
 def test6(self):
     """ b > R; r = b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.2, 0.8),
                            0.14128,
                            places=4)
コード例 #12
0
 def test5(self):
     """ b = R; r = b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.5, 0.5),
                            1.20550,
                            places=4)
コード例 #13
0
 def test4(self):
     """ b < R; r = b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.8, 0.2),
                            3.13728,
                            places=4)
コード例 #14
0
ファイル: test_math.py プロジェクト: jadelord/TomoKTH
 def test1(self):
     """ b > R; r > b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.2, 0.3), 0.23696, places=4)
コード例 #15
0
ファイル: test_math.py プロジェクト: jadelord/TomoKTH
 def test3(self):
     """ b < R; r > b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.2, 0.1), 0.24752, places=4)
コード例 #16
0
ファイル: test_math.py プロジェクト: jadelord/TomoKTH
 def test2(self):
     """ b = R; r > b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.2, 0.2), 0.24361, places=4)
コード例 #17
0
 def test2(self):
     """ b = R; r > b + R """
     self.assertAlmostEqual(vintersect_sphcyl(1., 0.2, 0.2),
                            0.24361,
                            places=4)