Did I find the right examples for you? yes no

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

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

    maxn=<integer>
        Allow a maximum temporary working precision of maxn digits
        (default=100)(more...)

src/s/y/sympy-HEAD/sympy/printing/tests/test_fcode.py   sympy(Download)
        set([(E, p._print(E.evalf(15)))]), set([]), '      E')
    assert fcode(GoldenRatio, human=False) == (set([(GoldenRatio, p._print(
        GoldenRatio.evalf(15)))]), set([]), '      GoldenRatio')
    assert fcode(pi, human=False) == (
        set([(pi, p._print(pi.evalf(15)))]), set([]), '      pi')

src/s/y/sympy-HEAD/sympy/core/tests/test_numbers.py   sympy(Download)
    assert (Catalan + x).evalf() == Catalan.evalf() + x
    assert (EulerGamma + x).evalf() == EulerGamma.evalf() + x
    assert (GoldenRatio + x).evalf() == GoldenRatio.evalf() + x
 
 

src/s/y/sympy-polys-HEAD/sympy/printing/tests/test_fcode.py   sympy-polys(Download)
    assert fcode(EulerGamma,human=False) == ([('EulerGamma', EulerGamma.evalf(15))], set([]), '      EulerGamma')
    assert fcode(E,human=False) == ([('E', E.evalf(15))], set([]), '      E')
    assert fcode(GoldenRatio,human=False) == ([('GoldenRatio', GoldenRatio.evalf(15))], set([]), '      GoldenRatio')
    assert fcode(pi,human=False) == ([('pi', pi.evalf(15))], set([]), '      pi')
    assert fcode(pi,precision=5,human=False) == ([('pi', pi.evalf(5))], set([]), '      pi')

src/s/y/sympy-polys-HEAD/sympy/core/tests/test_numbers.py   sympy-polys(Download)
    assert (Catalan+x).evalf() == Catalan.evalf()+x
    assert (EulerGamma+x).evalf() == EulerGamma.evalf()+x
    assert (GoldenRatio+x).evalf() == GoldenRatio.evalf()+x
 
def test_conversion_to_mpmath():

src/s/y/sympy-0.7.5/sympy/printing/tests/test_fcode.py   sympy(Download)
        set([(E, p._print(E.evalf(15)))]), set([]), '      E')
    assert fcode(GoldenRatio, human=False) == (set([(GoldenRatio, p._print(
        GoldenRatio.evalf(15)))]), set([]), '      GoldenRatio')
    assert fcode(pi, human=False) == (
        set([(pi, p._print(pi.evalf(15)))]), set([]), '      pi')