Added deprecation warnings to tests
refine Pow of Abs.
added elementary arithmetic operations on algebraic numbers
fixed bug in ``minpoly_pow``; added ``minpoly_neg``
ipython: reenable mathjax and fix issue 3537.
Revert "Remove IPython sniffing" to fix part of issue 3728.

This reverts commit a4541e3af31eb33f4559d56e069d1150f332194b.
Don't load latex in ipython-console (terminal console).
ipython pretty printing tests should not rely on use_unicode=True.
If substitution in gosper_sum fails - take limit instead (issue 2934)
faster ``minpoly_pow`` using resultants
faster ``minpoly_op_algebraic_number`` with co-prime degrees
added option ``compose`` to ``minpoly`` to use ``minpoly1``

``minpoly1`` computes the minimal polynomial using arithmetic operations
on minimal polynomials.

Added ``minpoly_add``, ``munpoly_mul``.

Added ``_minpoly_sin``, ``_minpoly_cos`` and ``_minpoly_exp`` to
compute the minimal polynomial of trigonometric expressions.
This implementation is incomplete;
the case with angles ``pi*p/q`` with ``q`` prime has been implemented.
s/render_latex/use_latex/ and allow to pick png or mathjax.
_print_latex_png should also use the _can_print_latex logic.
ipython: check for the Terminal case instead of the kernel.
``minpoly`` now uses by default ``minpoly1``
``minpoly1`` can deal with ``RootOf`` objects

added default maximum precision to ``_choose_factor``
covered more cases in ``_minpoly_ex``

taken away ``op='div'`` in ``minpoly_op_algebraic_number``
``minpoly_op_algebraic_number`` only with resultant method
fixed bug in _minpoly_mul