Re: [sympy] type of a defined function

2014-06-10 Thread Ondřej Čertík
On Mon, Jun 9, 2014 at 5:31 PM, Aaron Meurer asmeu...@gmail.com wrote: On Mon, Jun 9, 2014 at 6:21 PM, Anton Akhmerov anton.akhme...@gmail.com wrote: I have encountered this independently, and it's a major source of headache. Wouldn't a more useful representation of a(b) be something like

Re: [sympy] SymPy talk at PyData Berlin

2014-06-10 Thread Paul
Hi! Received the Mention. :) Matthew, you are completely right! I used Sympy just for the calculation of the Jacobians and then retyped it manually (probably with errors?!) again as Python code. Did not know, that there are easier methods in Sympy. But anyways, I developed the Kalman Filter in

Re: [sympy] type of a defined function

2014-06-10 Thread Anton Akhmerov
Hi Ondrej and Aaron, Thanks for the replies. On Tuesday, June 10, 2014 8:38:15 AM UTC+2, Ondřej Čertík wrote: Agreed, we should do that. In C++, which allows even less freedom than Python, I just created a FunctionSymbol class in CSymPy, you use it like: FunctionSymbol(a, b). The string

Re: [sympy] SymPy talk at PyData Berlin

2014-06-10 Thread Matthew Rocklin
We do have ccode and fcode for C and Fortran In [25]: fcode(sin(x)**2) Out[25]: ' sin(x)**2' In [26]: ccode(sin(x)**2) Out[26]: 'pow(sin(x), 2)' These don't support matrices though. The Theano code printer produces Theano expressions. The Theano project then compiles these expressions

[sympy] mpmath 0.19 released

2014-06-10 Thread Fredrik Johansson
Hi all, Version 0.19 of mpmath is now available: http://mpmath.org/files/mpmath-0.19.tar.gz http://mpmath.org/files/mpmath-docsrc-0.19.tar.gz (documentation sources) http://mpmath.org/files/mpmath-all-0.19.tar.gz (combined archive) Documentation as of this version: http://mpmath.org/doc/0.19/

Re: [sympy] SymPy talk at PyData Berlin

2014-06-10 Thread Aaron Meurer
The SymPy code printers are also very extensible. It should not be hard to add matrices support to the C printer, or to add a Matlab printer (you can do so in your own code by subclassing the printer, but we would also gladly accept pull requests that added this). Aaron Meurer On Tue, Jun 10,