Hi, It's entirely possible I'm using ccode wrong, but I can't seem to get it to recognize my custom replacements for sqrt, fabs, or pow. Here's a simple test case:
#!/usr/bin/env python > from sympy import * > print ccode(sympify('sqrt(x)'), user_functions={"sqrt": "std::sqrt"}) > print ccode(sympify('Abs(x)'), user_functions={"fabs": "std::abs"}) > print ccode(sympify('x**2'), user_functions={"pow": "std::pow"}) On my system, this prints: sqrt(x) > fabs(x) > pow(x, 2) I can of course work around this pretty easily with text replacement, so it's not a big deal... -- 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/32b5380b-83e8-403c-a512-2d0417fbdf3e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.