def test_cosine(self): dt = equations.Cosine() assert dt.parameters == {'amp': 1.0, 'frequency': 0.01}
def test_cosine(self): dt = equations.Cosine() self.assertEqual(dt.parameters, {'amp': 1.0, 'frequency': 0.01})
def test_cosine(self): dt = equations.Cosine() self.assertEqual(dt.parameters, {'amp': 1.0, 'frequency': 0.01}) self.assertEqual(dt.ui_equation, 'amp * cos(6.283185307179586 * frequency * var)')
def test_cosine(self): t = np.linspace(0,100) dt = equations.Cosine() assert dt.parameters == {'amp': 1.0, 'frequency': 0.01} np.testing.assert_allclose( dt.evaluate(t)[10:], dt.evaluate(t[10:]))