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 expression

If I do

ccode(exp(Min(2,x)))

I get: 'exp(Min(2,x))'

which seems correct

-- 
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.com.
To post to this group, send email to sympy@googlegroups.com.
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/36105b9f-eeef-4bc5-92eb-7aad845429c6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to