def test_bounded(self, string, bounded): func_parser = cbook._StringFuncParser(string) b = func_parser.is_bounded_0_1 assert_array_equal(b, bounded)
def test_inverse(self, string): func_parser = cbook._StringFuncParser(string) f = func_parser.func_info fdir = f.function finv = f.inverse assert_array_almost_equal(finv(fdir(self.x_test)), self.x_test)
def test_get_inverse(self, string): func_parser = cbook._StringFuncParser(string) finv1 = func_parser.inverse finv2 = func_parser.func_info.inverse assert_array_almost_equal(finv1(self.x_test), finv2(self.x_test))
def test_values(self, string, func): func_parser = cbook._StringFuncParser(string) f = func_parser.function assert_array_almost_equal(f(self.x_test), func(self.x_test))