Back to Forum | View unanswered posts | View active topics
Topic review - Matlab-Singular interface |
Author |
Message |
|
|
Post subject: |
Re: Matlab-Singular interface |
|
|
Oh I've figured it out and thanks anyway, best
Oh I've figured it out and thanks anyway, best
|
|
|
|
Posted: Tue Jul 16, 2013 12:22 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,
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 [b]ASCII link[/b] in which there's an example about [i]write[/i], [i]read[/i], and [i]execute[/i] 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 '[i]there's no active ring[/i]'.
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,
|
|
|
|
Posted: Mon Jul 15, 2013 8:54 am |
|
|
|
|
|
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
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
|
|
|
|
Posted: Tue Jul 09, 2013 4:59 pm |
|
|
|
|
|
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
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
|
|
|
|
Posted: Tue Jul 09, 2013 8:44 am |
|
|
|
|
|
It is currently Fri May 13, 2022 10:58 am
|
|