Back to Forum | View unanswered posts | View active topics
Topic review - pausing SINGULAR-LIB-code |
Author |
Message |
|
|
Post subject: |
pausing SINGULAR-LIB-code |
|
|
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
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
|
|
|
|
Posted: Wed Jun 09, 2010 11:41 am |
|
|
|
|
|
It is currently Fri May 13, 2022 10:56 am
|
|