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
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
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
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
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(
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