def test_sympyissue_5486_bug(): assert abs(Expr._from_mpmath(I._to_mpmath(15), 15) - I) < 1.0e-15 pytest.raises(TypeError, lambda: Expr._from_mpmath(I, 15))
def test_issue_5486_bug(): from diofant import I, Expr assert abs(Expr._from_mpmath(I._to_mpmath(15), 15) - I) < 1.0e-15 pytest.raises(TypeError, lambda: Expr._from_mpmath(I, 15))
def test_sympyissue_5486(): assert not cos(sqrt(0.5 + I)).evalf(strict=False).is_Function assert abs(Expr._from_mpmath(I._to_mpmath(15), 15) - I) < 1.0e-15
def test_sympyissue_5486_bug(): assert abs(Expr._from_mpmath(I._to_mpmath(15), 15) - I) < 1.0e-15