Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Evaluate the given formula to an accuracy of n digits.
Optional keyword arguments:

        Substitute numerical values for symbols, e.g.
        subs={x:3, y:1+pi}.

        Allow a maximum temporary working precision of maxn digits

src/s/y/sympy-HEAD/sympy/core/tests/test_evalf.py   sympy(Download)
def test_infinities():
    assert oo.evalf(chop=True) == inf
    assert (-oo).evalf(chop=True) == ninf

src/s/y/sympy-HEAD/sympy/solvers/tests/test_inequalities.py   sympy(Download)
from sympy.utilities.pytest import raises
inf = oo.evalf()