Hi Matheus,

On Mon, Apr 20, 2015 at 10:48 AM, Matheus Queiroz <k9del...@gmail.com> wrote:
> Hi!
> I'm a undergraduate student in need of a symbolic library.
> I know enough C++ and Qt Framework to get into some "adventures".
> I heard about sympy and I simply loved it. It's simple, efficient and has
> everything that I currently need.

Thanks, I am glad you like it.

> My question:
>
> Can I use it in C++?

You can call Python from C++ (using Cython or by hand using Python
C/API) if that is what you want.

> If yes... is there any documentation on how to use it in C++ code?

I found documentation how to call Python from C or C++ here:

https://docs.python.org/2/extending/embedding.html

> Sorry, folks. But I really have no time to learn Python up to the level I am
> currently programming in C++ (Not to mention that my scientific work uses a
> lot of matrices that are dynamically allocated).

I would mention that Python is very easy to learn, compared to C++,
and I would definitely recommend it to you. You can use NumPy for
dynamically allocated matrices and arrays.

That being said, we also have a pure C++ library:
https://github.com/sympy/csympy, and you can use it directly from C++
without any Python dependency. But it currently only has a subset of
all the SymPy functionality. To get a full featured computer algebra
system, use SymPy from Python. Use CSymPy if SymPy in Python is too
slow for your application.

Ondrej

-- 
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/CADDwiVAv9CtWZKGjhbXPbz%2B9kCVuEev5rgt-fxhc_ONhQ_ACCQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to