[sympy] bug in series

2016-01-31 Thread swdrury
This is literally my first program using sympy, based on an example from my calculus class: from sympy import * def main(): x=symbols("x") f=exp(x**3)*cos(x**6) print(series(f,x,0,14)) print(series(f,x,0,19)) if __name__ == "__main__": main() The output: 1 + x**3 + x**6/2

Re: [sympy] Re: hyperexpand returns incorrect result for negative coefficients

2016-01-31 Thread Sergey B Kirpichev
On Sat, Jan 30, 2016 at 09:28:54PM -0700, Ondřej Čertík wrote: > It is not practical to have all ~450 contributors in the copyright > statement, so we have just "SymPy Development Team" and then all the > authors are in the AUTHORS files Perhaps, that's fine for your authors. But, thanks to you,

Re: [sympy] Re: hyperexpand returns incorrect result for negative coefficients

2016-01-31 Thread Denis Akhiyarov
is there SymPy code of conduct? Especially since SymPy is one of NumFOCUS projects: http://www.numfocus.org/code-of-conduct.html On Sunday, January 31, 2016 at 10:01:10 AM UTC-6, Sergey Kirpichev wrote: > > On Sat, Jan 30, 2016 at 09:28:54PM -0700, Ondřej Čertík wrote: > > It is not practical t

Re: [sympy] Re: hyperexpand returns incorrect result for negative coefficients

2016-01-31 Thread Ondřej Čertík
Hi Denis, On Sun, Jan 31, 2016 at 9:49 AM, Denis Akhiyarov wrote: > is there SymPy code of conduct? Especially since SymPy is one of NumFOCUS > projects: > > http://www.numfocus.org/code-of-conduct.html We are in the process of adopting one. We will update this list once we adopt it and publish

Re: [sympy] bug in series

2016-01-31 Thread Ondřej Čertík
Hi Swdrury, On Sun, Jan 31, 2016 at 5:04 AM, wrote: > This is literally my first program using sympy, based on an example from my > calculus class: > > from sympy import * > > def main(): > x=symbols("x") > f=exp(x**3)*cos(x**6) > print(series(f,x,0,14)) > print(series(f,x,0,19))

[sympy] Aaron talks about SymPy on a podcast

2016-01-31 Thread Jason Moore
http://pythonpodcast.com/aaron-meurer-sympy.html Jason moorepants.info +01 530-601-9791 -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to sympy+unsubscr...@googlegroups.

Re: [sympy] Re: hyperexpand returns incorrect result for negative coefficients

2016-01-31 Thread Sergey Kirpichev
On Sun, Jan 31, 2016 at 8:06 PM, Ondřej Čertík wrote: > Regarding the legal question that arose in this thread, I have asked here: > http://programmers.stackexchange.com/questions/308909/how-to-manage-copyright-notices-from-contributors-to-a-bsd-licensed-project Ondrej, I'm sorry, but it's a wron

[sympy] Changing symbol printing for adjoint

2016-01-31 Thread Michael Hansen
Quick question. Is there a way to change what symbols are used for things like adjoint for a matrix. In latex, it is currently \dagger but I would rather use "H" or something like that. -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe f

Re: [sympy] Re: hyperexpand returns incorrect result for negative coefficients

2016-01-31 Thread Ondřej Čertík
Hi Sergey, On Sun, Jan 31, 2016 at 11:26 AM, Sergey Kirpichev wrote: > On Sun, Jan 31, 2016 at 8:06 PM, Ondřej Čertík > wrote: >> Regarding the legal question that arose in this thread, I have asked here: >> http://programmers.stackexchange.com/questions/308909/how-to-manage-copyright-notices-f

[sympy] Code of Conduct

2016-01-31 Thread Aaron Meurer
We have been discussing for a while about adding a code of conduct to SymPy, so that it is very clear to everyone what kind of conduct we expect from those who participate in the community. This is something that should have been done much sooner, but late is better than never. I have opened https

Re: [sympy] Code of Conduct

2016-01-31 Thread Nathan Goldbaum
It looks like version 1.4 was released a few days ago, which I think is a bit clearer than version 1.3 which you've used in your PR: https://github.com/ContributorCovenant/contributor_covenant/blob/master/version/latest/code_of_conduct.md On Sun, Jan 31, 2016 at 3:10 PM, Aaron Meurer wrote: > We

Re: [sympy] Code of Conduct

2016-01-31 Thread Aaron Meurer
I didn't use 1.4 because it wasn't clear to me if it had been finalized or not (and also the npm tool listed on the Contributor Covenant website downloaded 1.3 for me). Aaron Meurer On Sun, Jan 31, 2016 at 4:29 PM, Nathan Goldbaum wrote: > It looks like version 1.4 was released a few days ago,

Re: [sympy] Aaron talks about SymPy on a podcast

2016-01-31 Thread Amit Saha
Thanks for sharing that Jason. Aaron: Thank you again for the taking the time out to review "Doing Math with Python" and recommending it in the podcast! On Mon, Feb 1, 2016 at 4:32 AM, Jason Moore wrote: > http://pythonpodcast.com/aaron-meurer-sympy.html > > Jason > moorepants.info > +01 530-601

Re: [sympy] Changing symbol printing for adjoint

2016-01-31 Thread Jason Moore
You can subclass the LatexPrinter and modify the method that controls the adjoint printing to your liking. See http://docs.sympy.org/dev/modules/printing.html for an example. Jason moorepants.info +01 530-601-9791 On Sun, Jan 31, 2016 at 12:01 PM, Michael Hansen < michael.schacht.han...@gmail.c

Re: [sympy] Changing symbol printing for adjoint

2016-01-31 Thread Michael Hansen
Based on the manual I did something like: import sympy from sympy.printing.latex import LatexPrinter class CustomLatexPrinter(LatexPrinter): def _print_Adjoint(self, expr): mat = expr.arg from sympy.matrices import MatrixSymbol if not isinstance(mat, MatrixSymbol):

Re: [sympy] Changing symbol printing for adjoint

2016-01-31 Thread Jason Moore
Can you please paste your full code that checks whether this works? Jason moorepants.info +01 530-601-9791 On Sun, Jan 31, 2016 at 5:31 PM, Michael Hansen < michael.schacht.han...@gmail.com> wrote: > Based on the manual I did something like: > > import sympy > from sympy.printing.latex import L

[sympy] Re: Changing symbol printing for adjoint

2016-01-31 Thread Michael Hansen
import sympy from sympy.printing.latex import LatexPrinter class CustomLatexPrinter(LatexPrinter): def _print_Adjoint(self, expr): mat = expr.arg from sympy.matrices import MatrixSymbol if not isinstance(mat, MatrixSymbol): return r"\left(%s\right)^H" % sel

Re: [sympy] Re: Changing symbol printing for adjoint

2016-01-31 Thread Jason Moore
This is what you want to do: In [1]: %paste import sympy from sympy.printing.latex import LatexPrinter class CustomLatexPrinter(LatexPrinter): def _print_Adjoint(self, expr): mat = expr.arg from sympy.matrices import MatrixSymbol if not isinstance(mat, MatrixSymbol):

Re: [sympy] bug in series

2016-01-31 Thread Denis Akhiyarov
omg has the patch On Sunday, January 31, 2016 at 11:14:33 AM UTC-6, Ondřej Čertík wrote: > > Hi Swdrury, > > On Sun, Jan 31, 2016 at 5:04 AM, > > wrote: > > This is literally my first program using sympy, based on an example from > my > > calculus class: > > > > from sympy import * > > >

Re: [sympy] Re: Changing symbol printing for adjoint

2016-01-31 Thread Michael Hansen
That will not work if I want to use it in an interactive session. There I need the actual latex function overloaded since that is what it seems to call. Is there a way to do that? -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from th

Re: [sympy] Re: Changing symbol printing for adjoint

2016-01-31 Thread Jason Moore
You can pass in the custom latex printer to init_printing or init_session as a kwarg. Jason Jason moorepants.info +01 530-601-9791 On Sun, Jan 31, 2016 at 7:30 PM, Michael Hansen < michael.schacht.han...@gmail.com> wrote: > That will not work if I want to use it in an interactive session. Ther