source: git/Tst/Manual/proc_declaration.tst

spielwiese
Last change on this file was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 324 bytes
Line 
1LIB "tst.lib"; tst_init();
2  proc milnor_number (poly p)
3  {
4    ideal i= std(jacob(p));
5    int m_nr=vdim(i);
6    if (m_nr<0)
7    {
8      "// not an isolated singularity";
9    }
10    return(m_nr);         // the value of m_nr is returned
11  }
12  ring r1=0,(x,y,z),ds;
13  poly p=x^2+y^2+z^5;
14  milnor_number(p);
15tst_status(1);$
Note: See TracBrowser for help on using the repository browser.