polishing function.py, had to fail another 2 tests in pretty printing
[sympy.git] / sympy / core / __init__.py
blob743f9e4f6ffeab670420bdeb738e4be594dab39a
1 """Core module. Provides the basic operations needed in sympy.
2 """
4 from basic import Basic, S
5 from symbol import Symbol, Wild, symbols
6 from numbers import Number, Real, Rational, Integer
7 from power import Pow
8 from mul import Mul
9 from add import Add
10 from relational import Equality, Inequality, Unequality, StrictInequality
11 from function import Lambda, Apply, FApply, Composition, FPow, \
12 WildFunction, Derivative, diff, FunctionClass, Function2, \
13 SingleValuedFunction
14 from interval import Interval
16 # set repr output to pretty output:
17 Basic.set_repr_level(1)
19 # expose singletons like exp, log, oo, I, etc.
20 for _n, _cls in Basic.singleton.items():
21 exec '%s = _cls()' % (_n)
23 sympify = Basic.sympify
25 class Function(Basic):
26 pass
27 class DefinedFunction(Function):
28 pass