[sympy] C Code Generator

2023-03-18 Thread brombo
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.

[sympy] Re: C Code Generator

2023-03-18 Thread brombo
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 generato

Re: [sympy] Re: C Code Generator

2023-03-18 Thread Jason Moore
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

Re: [sympy] Self Introductory and Gröebner Bases

2023-03-18 Thread Chris Smith
There was some promising work (as I recall) that stalled at https://github.com/sympy/sympy/pull/609. See discussion there for idea to get that work from level 0 representation of Poly to level 1. /c On Friday, March 17, 2023 at 8:16:48 PM UTC-5 Oscar wrote: > On Fri, 17 Mar 2023 at 20:39, Aaro

Re: [sympy] Self Introductory and Gröebner Bases

2023-03-18 Thread Chris Smith
update: When reviewing this it is not clear to me how much of this already made it in in some form or another. Look for PRs be author:pernici that were committed. Search also for lpoly. /c On Saturday, March 18, 2023 at 11:57:58 AM UTC-5 Chris Smith wrote: > There was some promising work (as I

Re: [sympy] Self Introductory and Gröebner Bases

2023-03-18 Thread Chris Smith
There is some preliminary work at https://github.com/sympy/sympy/issues/23665 that aims to improve exponentiation of certain types of polynomials. It might be a good GSOC task. /c On Saturday, March 18, 2023 at 9:18:10 PM UTC-5 Chris Smith wrote: > update: When reviewing this it is not clear t