I don't know if there's an option to print_ccode to do this (if not,
one should be added), but a manual workaround to this was discussed at
https://groups.google.com/d/topic/sympy/qaJGesRbX_0/discussion.

Aaron Meurer

On Wed, Jul 18, 2012 at 4:52 PM, rochabm <[email protected]> wrote:
> Hi everyone,
>
> A very simple question, but I did not find anything about it.
> Is it possible to use ccode or print_ccode and instead of creating code like
> " pow(x,2) " somehow specify to SymPy to create it like "x*x" ? My idea is
> just to reduce the number of function calls in my code.
>
> That's it.
> Thanks a lot.
>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/J90L8LcXJzYJ.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to