Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Matlab-Singular interface
PostPosted: Tue Jul 09, 2013 8:44 am 

Joined: Mon Jul 08, 2013 5:31 am
Posts: 3
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Matlab-Singular interface
PostPosted: Tue Jul 09, 2013 4:59 pm 

Joined: Tue Jun 23, 2009 10:33 pm
Posts: 51
Location: Kaiserslautern
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


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Matlab-Singular interface
PostPosted: Mon Jul 15, 2013 8:54 am 

Joined: Mon Jul 08, 2013 5:31 am
Posts: 3
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,


Report this post
Top
 Profile  
Reply with quote  
 Post subject: Re: Matlab-Singular interface
PostPosted: Tue Jul 16, 2013 12:22 am 

Joined: Mon Jul 08, 2013 5:31 am
Posts: 3
Oh I've figured it out and thanks anyway,
best


Report this post
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

It is currently Fri May 13, 2022 10:58 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group