Re: [sympy] The great issue cleanup of 2015

2015-04-20 Thread Chris Smith
Needs Decision is good to keep, but I would drop Needs Work. If the PR is open and has comments that haven't been addressed it needs work. If someone has made changes and they want to indicate that it'res ready for review again they can use the Needs Review -- or perhaps because of permission

[sympy] CSympy and C++

2015-04-20 Thread Matheus Queiroz
Hi! I'm a undergraduate student in need of a symbolic library. I know enough C++ and Qt Framework to get into some "adventures". I heard about sympy and I simply loved it. It's simple, efficient and has everything that I currently need. My question: Can I use it in C++? If yes... is there any doc

Re: [sympy] CSympy and C++

2015-04-20 Thread Ondřej Čertík
Hi Matheus, On Mon, Apr 20, 2015 at 10:48 AM, Matheus Queiroz wrote: > Hi! > I'm a undergraduate student in need of a symbolic library. > I know enough C++ and Qt Framework to get into some "adventures". > I heard about sympy and I simply loved it. It's simple, efficient and has > everything that

[sympy] bug in fcode

2015-04-20 Thread Dirk Van Essendelft
I'm writing some code to produce some fortran and c compilable math expressions and I notices a strange thing: if I do: x = symbols("x") exp(Min(2,x)) I get 'exp(Min(2,x))' as I would expect, but if I do fcode(exp(Min(2,x))) I get: 'exp(Min(1.0d0, x))' which is obviously not the right expr

Re: [sympy] bug in fcode

2015-04-20 Thread Ondřej Čertík
On Mon, Apr 20, 2015 at 1:35 PM, Dirk Van Essendelft wrote: > I'm writing some code to produce some fortran and c compilable math > expressions and I notices a strange thing: > > if I do: > > x = symbols("x") > > exp(Min(2,x)) > > I get 'exp(Min(2,x))' > > as I would expect, but if I do > > fcode(

Re: [sympy] evalf behaves differently for E**x and exp(x)

2015-04-20 Thread G B
Hey Aaron-- This bug came up to bite me again, so I tried your work around. The replace you suggested doesn't work (I get the same result back). What does seem to work is expr.replace(exp, lambda x: Pow(E, N(x))) That forces the evaluation of the argument to exp, and then carries on. Thanks