start new:
tmux
start new with session name:
tmux new -s myname
--------------------------------------------------------------------------- | |
TypeError Traceback (most recent call last) | |
<ipython-input-156-4180082d09fd> in <module>() | |
----> 1 sin(1/a).is_constant() | |
/home/aries/foss/sympy/sympy/core/expr.pyc in is_constant(self, *wrt, **flags) | |
548 except ZeroDivisionError: | |
549 b = None | |
--> 550 if b is not None and b is not S.NaN and b.equals(a) is False: |
Note that `taylor` returns the answer in the form of Basic expr (though it does this | |
smartly). Therefore, it has an extra( < 1% ) overhead compared to `series_fast` | |
1. series: p = (sin(a)+cos(a))**10, prec=10 | |
series_fast: 1 loops, best of 3: 1.87 s per loop taylor: too long | |
2. series: p = sin(a) + cos(a), prec=100 | |
series_fast: 10 loops, best of 3: 113 ms per loop taylor: 1 loops, best of 3: 181 ms per loop | |
3. series: p=sin(a)*cos(a)*sin(a)**2*cos(a)**3, prec=50 | |
series_fast: 1 loops, best of 3: 336 ms per loop taylor: 1 loops, best of 3: 1.2 s per loop |
=== test session starts ============================== | |
platform linux2 -- Python 2.7.9 -- py-1.4.25 -- pytest-2.6.3 | |
collected 0 items / 21 errors | |
==================================== ERRORS ==================================== | |
_______________ ERROR collecting build/csympy/tests/test_arit.py _______________ | |
../../Software/anaconda/lib/python2.7/site-packages/py/_path/local.py:630: in pyimport | |
__import__(pkgpath.basename) | |
build/csympy/__init__.py:1: in <module> | |
from .lib.csympy_wrapper import (Symbol, symbols, Integer, sympify, SympifyError, Add, |
python: /home/aries/gsoc/csympy/src/mul.cpp:16: CSymPy::Mul::Mul(const CSymPy::RCP<const CSymPy::Number>&, CSymPy::map_basic_basic&&): Assertion `is_canonical(coef, dict_)' failed. | |
Abort caught. Printing stacktrace: | |
Traceback (most recent call last): | |
File unknown, in _start() | |
File "/build/buildd/eglibc-2.19/csu/libc-start.c", line 287, in __libc_start_main() | |
File "-------src-dir-------/Python-2.7.9/Modules/main.c", line 645, in Py_Main() | |
File "-------src-dir-------/Python-2.7.9/Python/pythonrun.c", line 747, in PyRun_AnyFileExFlags() | |
File "-------src-dir-------/Python-2.7.9/Python/pythonrun.c", line 778, in PyRun_InteractiveLoopFlags() |
diff --git a/sympy/plotting/tests/test_plot_implicit.py b/sympy/plotting/tests/test_plot_implicit.py | |
index 1eb6d88..d1787bd 100644 | |
--- a/sympy/plotting/tests/test_plot_implicit.py | |
+++ b/sympy/plotting/tests/test_plot_implicit.py | |
@@ -5,19 +5,28 @@ | |
from tempfile import NamedTemporaryFile | |
from sympy.utilities.pytest import skip | |
from sympy.external import import_module | |
+from sympy.plotting.tests.test_plot import TmpFileManager | |
+from functools import wraps |
diff --git a/sympy/plotting/tests/test_plot_implicit.py b/sympy/plotting/tests/test_plot_implicit.py | |
index 1eb6d88..36dae3e 100644 | |
--- a/sympy/plotting/tests/test_plot_implicit.py | |
+++ b/sympy/plotting/tests/test_plot_implicit.py | |
@@ -15,6 +15,7 @@ def tmp_file(name=''): | |
def plot_and_save(name): | |
+ import matplotlib.pyplot as plt | |
x = Symbol('x') |