Example #1
0
 def test_sinusoidal_intercepts(self):
     sinusoidal_intercepts = intercepts('sinusoidal', coefficients,
                                        precision)
     self.assertEqual(sinusoidal_intercepts, [None])
Example #2
0
 def test_logarithmic_intercepts(self):
     logarithmic_intercepts = intercepts('logarithmic', coefficients[:2],
                                         precision)
     self.assertEqual(logarithmic_intercepts, [0.2231])
Example #3
0
 def test_logistic_intercepts(self):
     logistic_intercepts = intercepts('logistic', coefficients[:3],
                                      precision)
     self.assertEqual(logistic_intercepts, [None])
Example #4
0
 def test_exponential_intercepts(self):
     exponential_intercepts = intercepts('exponential', coefficients[:2],
                                         precision)
     self.assertEqual(exponential_intercepts, [None])
Example #5
0
 def test_hyperbolic_intercepts(self):
     hyperbolic_intercepts = intercepts('hyperbolic', coefficients[:2],
                                        precision)
     self.assertEqual(hyperbolic_intercepts, [-0.6667])
Example #6
0
 def test_cubic_intercepts(self):
     cubic_intercepts = intercepts('cubic', coefficients, precision)
     self.assertEqual(cubic_intercepts, [-1.4455])
Example #7
0
 def test_quadratic_intercepts(self):
     quadratic_intercepts = intercepts('quadratic', coefficients[:3],
                                       precision)
     self.assertEqual(quadratic_intercepts, [None])
Example #8
0
 def test_linear_intercepts(self):
     linear_intercepts = intercepts('linear', coefficients[:2], precision)
     self.assertEqual(linear_intercepts, [-1.5])