I tried to clarify the docstring a bit here:
https://github.com/sympy/sympy/pull/9062

Let me know if that is more helpful.


Jason
moorepants.info
+01 530-601-9791

On Thu, Feb 26, 2015 at 10:16 AM, Jason Moore <[email protected]> wrote:

> Another way to handle this is to sublcass the CCodePrinter and then define
> methods for the specific function names. You will have more control over
> the details if you do it that way.
>
>
> Jason
> moorepants.info
> +01 530-601-9791
>
> On Thu, Feb 26, 2015 at 10:15 AM, Jason Moore <[email protected]>
> wrote:
>
>> I'm on 0.7.6, so maybe a bug was fixed.
>>
>>
>> Jason
>> moorepants.info
>> +01 530-601-9791
>>
>> On Thu, Feb 26, 2015 at 10:04 AM, John Peterson <[email protected]>
>> wrote:
>>
>>>
>>>
>>> On Thursday, February 26, 2015 at 10:54:27 AM UTC-7, Jason Moore wrote:
>>>>
>>>> Also this one isn't obvious:
>>>>
>>>> In [21]: print sympy.ccode(sympy.symbols('x')**2,
>>>> user_functions={"Pow": "std::pow"})
>>>> std::pow(x, 2)
>>>>
>>>
>>> Interestingly, this line of code still prints pow(x,2) for me.  May be a
>>> different in Sympy version?  I am using 0.7.5.
>>>
>>> --
>>> 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.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/sympy/fa8762b6-04b1-4c9d-92fc-0a99b7935711%40googlegroups.com
>>> <https://groups.google.com/d/msgid/sympy/fa8762b6-04b1-4c9d-92fc-0a99b7935711%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAP7f1AjnUTF%2Bz05O1%2BoJpyb8WAqP2DHDfX577fuAGtwar3Rmsw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to