Singular
http://www.singular.uni-kl.de/forum/

Matlab-Singular interface
http://www.singular.uni-kl.de/forum/viewtopic.php?f=10&t=2269
Page 1 of 1

Author:  ttamba [ Tue Jul 09, 2013 8:44 am ]
Post subject:  Matlab-Singular interface

Is there any interface code available between singular and Matlab.
My current work primarily use Singular only to compute Groebner basis of toric ideals,
and the rests are done in matlab.
If there isn't any, is there any possible suggestion about how to do so?
Would linux-like environment (such as Cygwin) allow for such interface (accessing the Singular terminal)?
Thanks before and best regards

Author:  malex [ Tue Jul 09, 2013 4:59 pm ]
Post subject:  Re: Matlab-Singular interface

Hi ttamba,

no, unfortunately nobody reported such an interface yet.

and yes, it is pretty straightforward to write such an interface using Singular as a blackbox unix command and pass strings around. Alternatively it is possible to build a library out of Singular for direct usage by a ML toolbox.

both approaches should be possible under Cygwin.

ps: AFAIK you can use muPad in ML for symbolics - an interface to Singular could probably work similarly...
but keep in mind that Singular requires a context (polynomial algebra) defined first.

Cheers,
Oleksandr

Author:  ttamba [ Mon Jul 15, 2013 8:54 am ]
Post subject:  Re: Matlab-Singular interface

Hi Oleksandr,

Thanks for the reply. So far I can use Matlab to perform Singular functioning and the library works OK.

However I was thinking of doing this flow before:
Matlab --> notepad --> singular --> notepad --> matlab
i.e: using singular I/O to read commands from .txt file, execute tem, and write the result to .txt file

I looked into I/O section in the manual and encountered the discussion about ASCII link in which there's an example about write, read, and execute within ASCII link.
So I wrote some Singular routines (basic groebner search) in a .txt file, and tried to use Singular to read and execute them. But t didn't work. One o the message was 'there's no active ring'.

Is this I/O method correct/possible to do, or could you point me some sections in the manual that explain about how to define a .txt input file that can be read and execute by singular?

Thanks and best,

Author:  ttamba [ Tue Jul 16, 2013 12:22 am ]
Post subject:  Re: Matlab-Singular interface

Oh I've figured it out and thanks anyway,
best

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/