A computer algebra system written in pure Python http://sympy.org/ . To get started to with contributing https://github.com/sympy/sympy/wiki/Introduction-to-contributing
anutosh491 on hyperbolic_functions
Fix errors in test_control_plot… Remove whitespace Make sure all tests pass and 59 more (compare)
anutosh491 on hyperbolic_functions
Fixed Float handling for pow._e… (compare)
anutosh491 on hyperbolic_functions
Restructured tests for nseries … (compare)
anutosh491 on hyperbolic_functions
Improved Code for Bi-directiona… (compare)
anutosh491 on hyperbolic_functions
Fixed Bi-directional limit cases (compare)
anutosh491 on hyperbolic_functions
Fixed bi-directional limit case… (compare)
anutosh491 on hyperbolic_functions
Refactored leading term methods… (compare)
anutosh491 on hyperbolic_functions
Implemented series for function… (compare)
anutosh491 on hyperbolic_functions
Implemented taylor_term method … (compare)
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
Refactored Leading Term method … Fixed leading term methods for … Fixed leading term for trigonom… and 1 more (compare)
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
Added Todo (compare)
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
Added expand to log rewrites (compare)
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
updated test for asin,atan,acot… (compare)
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
removed wrong test (compare)
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
Modified test (compare)
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
Fixed leading term for acos/ase… (compare)
anutosh491 on series_for_arg
Updated code (compare)
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
Improved code quality (compare)
anutosh491 on GSOC_Pr1_Refactoring_Log_leading_term_method
Fixed code quality (compare)
mrationalize = lambda x: [nsimplify(e) for e in [r for r in x]]
that I do not like much the fell.
I have a problem with calculating eigenvectors for a simple 3x3 matrix in sympy. Trying to execute
q = symbols("q", positive=True)
m = Matrix([[-2, exp(-q), 1], [exp(q), -2, 1], [1, 1, -2]])
#m.eigenvects(simplify=True)
m.eigenvals()
results in very complicated expressions for the eigenvalues, trying to get the eigenvectors fails with a NotImplementedError. I expect the latter to be due to the former. However, when trying to do the same thing in Mathematica, I get much simpler expressions for everything. Is there some option / flag that I can set to have sympy compute these eigenvalues and eigenvectors? Is there currently some form of limitation within sympy that prevents me from doing this?
simplify
simplify
flag, but it doesn't work
Add
does the smart substitution but Symbol
does not
x.subs(x - 1, y)
vs. (x + 1).subs(x - 1, y)
Symbol._eval_subs
should do the same thing as Add._eval_subs
.
simplify(a_list)
and [simplify(element) for element in a_list]
. With the latter, I get the same expressions as in Mathematica, the former does not simplify at all o_O. In any case: thanks for opening the issue :-)
I'm trying to hunt down where in my code I'm using a now deprecated sympy function. I'm using pytest & python 3.7 and I'm looking at the python docs. This should work, but I can't seem to make it trigger:
$ PYTHONWARNINGS='ignore,error:::sympy' PYTHON=python3.7 PYTHONPATH=~/vc/sympy ./scripts/run_tests.sh chempy/util/pyutil.py
==== 6 passed, 1 skipped in 0.53 seconds ====
/home/bjorn/vc/sympy/sympy/matrices/matrices.py:2491: SymPyDeprecationWarning:
Dot product of non row/column vectors has been deprecated since SymPy
1.2. Use * to take matrix products instead. See
https://github.com/sympy/sympy/issues/13815 for more info.
useinstead="* to take matrix products").warn()
if I change the PYTHONWARNINGS
environment variable to simply error::DeprecationWarning
it triggers way before actually running the tests:
Traceback (most recent call last):
...
File "/opt/py37/lib/python3.7/site-packages/_pytest/assertion/rewrite.py", line 6, in <module>
import imp
File "/opt/py37/lib/python3.7/imp.py", line 33, in <module>
DeprecationWarning, stacklevel=2)
DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses
does anyone know the proper syntax to specifically turn SymPy warnings into errors?
PYTHONWARNINGS='ignore,error::DeprecationWarning:sympy'
and a few other combinations to no avail)