You can make custom printers for any SymPy function to return what you
desire. Subclass the C printer and overwrite/create methods for your
functions. The current c code printer does not target any specialized C
libraries (but that would be a nice addition!).

Jason
moorepants.info
+01 530-601-9791


On Sat, Mar 18, 2023 at 3:18 PM brombo <[email protected]> wrote:

> I have looked further and while ccode(expr) can export functions like sin,
> cox, exp it cannot export special functions such as bessel, elliptic, etc..
> Is there a way to export special functions into c-code?
>
> On Saturday, March 18, 2023 at 9:52:48 AM UTC-4 brombo wrote:
>
>> Does the C code generator generate special function calls with the same
>> syntax that is used in the gsl (GNU Scientific Library).  For example is
>> the sympy call besselj(nu,z) translated to J(nu,z) etc.?
>>
> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/sympy/73a99292-df6c-420a-804a-b2a52dfae437n%40googlegroups.com
> <https://groups.google.com/d/msgid/sympy/73a99292-df6c-420a-804a-b2a52dfae437n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/sympy/CAP7f1AhS9tMr%2BZ7KsoQ23eX09Y2O%2BKswbqn4N28t7M_xtpHkxQ%40mail.gmail.com.

Reply via email to