Did I find the right examples for you? yes no

sympy.printing.pretty.pretty

All Samples(32)  |  Call(28)  |  Derive(0)  |  Import(4)

```    grlex, elliptic_k, elliptic_f, elliptic_e, elliptic_pi)

from sympy.printing.pretty import pretty as xpretty
from sympy.printing.pretty import pprint

```
```def pretty(expr, order=None):
"""ASCII pretty-printing"""
return xpretty(expr, order=order, use_unicode=False, wrap_line=False)

def upretty(expr, order=None):
"""Unicode pretty-printing"""
return xpretty(expr, order=order, use_unicode=True, wrap_line=False)
```
```def test_pretty_prec():
assert xpretty(S("0.3"), full_prec=True) == "0.300000000000000"
assert xpretty(S("0.3"), full_prec="auto") == "0.300000000000000"
assert xpretty(S("0.3"), full_prec=False) == "0.3"
assert xpretty(S("0.3")*x, full_prec=True, use_unicode=False) in [
```

```    grlex, elliptic_k, elliptic_f, elliptic_e, elliptic_pi)

from sympy.printing.pretty import pretty as xpretty
from sympy.printing.pretty import pprint

```
```def pretty(expr, order=None):
"""ASCII pretty-printing"""
return xpretty(expr, order=order, use_unicode=False, wrap_line=False)

def upretty(expr, order=None):
"""Unicode pretty-printing"""
return xpretty(expr, order=order, use_unicode=True, wrap_line=False)
```
```def test_pretty_prec():
assert xpretty(S("0.3"), full_prec=True) == "0.300000000000000"
assert xpretty(S("0.3"), full_prec="auto") == "0.300000000000000"
assert xpretty(S("0.3"), full_prec=False) == "0.3"
assert xpretty(S("0.3")*x, full_prec=True, use_unicode=False) in [
```

```    Limit, oo, cos, Pow, Integral, exp, Eq, Lt, Gt, Ge, Le, gamma

from sympy.printing.pretty import pretty as xpretty
from sympy.printing.pretty import pprint

```
```def pretty(expr, order=None):
"""ASCII pretty-printing"""
return xpretty(expr, order=order, use_unicode=False)

def upretty(expr):
"""Unicode pretty-printing"""
return xpretty(expr, use_unicode=True)
```
```def test_pretty_prec():
assert xpretty(S("0.3"), full_prec=True) == "0.300000000000000"
assert xpretty(S("0.3"), full_prec="auto") == "0.300000000000000"
assert xpretty(S("0.3"), full_prec=False) == "0.3"
assert xpretty(S("0.3")*x, full_prec=True, use_unicode=False) in [
```

```
from sympy.printing import srepr
from sympy.printing.pretty import pretty as xpretty
from sympy.printing.latex import latex

```
```def pretty(expr):
"""ASCII pretty-printing"""
return xpretty(expr, use_unicode=False, wrap_line=False)

def upretty(expr):
"""Unicode pretty-printing"""
return xpretty(expr, use_unicode=True, wrap_line=False)
```