Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: pausing SINGULAR-LIB-code
PostPosted: Wed Jun 09, 2010 11:41 am 
Site Admin

Joined: Wed Nov 12, 2008 5:09 pm
Posts: 20
Replying to the below mail of Stephen, there is indeed a way to pause SINGULAR when LIB code is being executed:
1) You will need to modify the LIB. Hence, you need to find out where it is situated on your computer. The easiest way to do so is by loading the LIB inside SINGULAR. SINGULAR will then tell you from where exactly it has been loaded.
2) Go to the LIB and open it in a text editor.
3) Find the appropriate line of SINGULAR code where you want to pause execution. (In the below case this will be somewhere in linalg.lib, proc jordan or jordannf.)
4) a) You can simply insert a print statement which will of course not pause execution but provide some more useful output.
4) b) You put a "pause()" which will halt execution and wait for you to hit "return".
4) c) You may also put a "~;". This halts execution and allows you to execute any SINGULAR command before you go on by simply hitting "return" right after the promt.

Hope that helps!
Regards,
Frank



Hello-

I am a student at Fordham University, and I am wondering if there is a way to pause Gauss-Jordan elimination after each row in Singular? I would like to look at the matrix at this intermediate step.

Thank you for the help.

My best,

Stephen Fox


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

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:59 am
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group