Post a reply
Username:
Note:If not registered, provide any username. For more comfort, register here.
Subject:
Message body:
Enter your message here, it may contain no more than 60000 characters. 

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:
Font size:
Font colour
Options:
BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON
Disable BBCode
Disable smilies
Do not automatically parse URLs
Confirmation of post
To prevent automated posts the board requires you to enter a confirmation code. The code is displayed in the image you should see below. If you are visually impaired or cannot otherwise read this code please contact the %sBoard Administrator%s.
Confirmation code:
Enter the code exactly as it appears. All letters are case insensitive, there is no zero.
   

Topic review - Matlab-Singular interface
Author Message
  Post subject:  Re: Matlab-Singular interface  Reply with quote
Oh I've figured it out and thanks anyway,
best
Post Posted: Tue Jul 16, 2013 12:22 am
  Post subject:  Re: Matlab-Singular interface  Reply with quote
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,
Post Posted: Mon Jul 15, 2013 8:54 am
  Post subject:  Re: Matlab-Singular interface  Reply with quote
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
Post Posted: Tue Jul 09, 2013 4:59 pm
  Post subject:  Matlab-Singular interface  Reply with quote
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
Post Posted: Tue Jul 09, 2013 8:44 am


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