Also take a look at
http://code.google.com/p/sympy/issues/detail?id=1497. This is
something that we would like to disable by default, but we haven't
fixed it yet (it will require a bit of work, because a lot of code
implicitly relies on this behavior).

Aaron Meurer

On Thu, Feb 14, 2013 at 7:38 PM, Chris Smith <[email protected]> wrote:
> On Fri, Feb 15, 2013 at 3:35 AM, Johan Hake <[email protected]> wrote:
>> Hello!
>>
>> First thanks for a wonderful toolkit!
>>
>> Second stupid questions and it might have been answered previously. Is it
>> possible to not perform a scalar multiplication a la:
>>
>> from sympy import *
>> s = Symbol("s")
>> expr=(2.+s)*5
>>
>> without simplifying the expr to 5*s + 10.0?
>>
>> I use sympy to generate code and I would like the original expression
>> instead of the simplified.
>>
>> Is this at all possible?
>>
>
> You can use Mul(5, 2+s, evaluate=False).
>
> --
> 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 [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/sympy?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to