Dear all, I wonder if it is possible to use GiNaC in a C program? Is there a binding for that? I guess there may be one, because GiNaC is used in other software, for example, Octave and Sage Math. But I couldn't find relevant information. Yours sincerely, Xianwen
Hello, 22.06.2020, 16:45, "Xianwen Chen (陈贤文)" <x@chen.ac>:
I wonder if it is possible to use GiNaC in a C program?
I think it's rather non-trivial due to exceptions, smart pointers, and all other C++ stuff.
Is there a binding for that?
None I know of.
I guess there may be one, because GiNaC is used in other software, for example, Octave and Sage Math.
As far as I know Octave is written in C++, so there's no need for wrappers. On the other hand Sage builds python wrappers (with cython) instead of generic C wrappers. And Sage uses pynac (http://github.com/pynac/pynac) rather than the original GiNaC. Best regards, Alexey
Thank you Alexey! There is a symbolic math program call symengine. I think symenigne is also written in C++. Symengine has a C interface: https://github.com/symengine/symengine/blob/master/symengine/cwrapper.h But I do not have the knowledge to understand how one makes a C interface for a C++ library. Yours sincerely, Xianwen
participants (2)
-
Alexey Sheplyakov
-
Xianwen Chen (陈贤文)