Read-only forum archive

Singular callable library example

Singular callable library example

renaud · Wed Oct 06, 2010 12:36 pm

Hello,

I would like to use Singular functions in a C program (namely multivariate polynomial multiplication) but I can't find examples or documentation on the use of the library. Does someone have a small example in C?
Thank you.

Re: Singular callable library example

malex · Thu Oct 07, 2010 3:11 pm

Dear renaud,

You may either
1. compile 'libsingular' (as Sage does) and link against it (which may be quite tricky)
OR
2. write your program as a Singular dynamic module in which case you will need to
start Singular first, load you module and start you stuff from within...

Regards,
Oleksandr