Changeset 6b8433 in git


Ignore:
Timestamp:
Dec 8, 2008, 3:24:41 PM (15 years ago)
Author:
Alexander Dreyer <dreyer@…>
Branches:
(u'spielwiese', '828514cf6e480e4bafc26df99217bf2a1ed1ef45')
Children:
a6b576a7994def0a72d9623eed6bc45b7074c746
Parents:
18ef40f42eafb26bcadfdbf8f8f70a8a0de137d6
Message:
+ Fix for Trac#42 by anne


git-svn-id: file:///usr/local/Singular/svn/trunk@11218 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/classify.lib

    r18ef40 r6b8433  
    11// KK,GMG last modified: 17.12.00
    22///////////////////////////////////////////////////////////////////////////////
    3 version  = "$Id: classify.lib,v 1.53 2006-07-31 09:11:10 Singular Exp $";
     3version  = "$Id: classify.lib,v 1.54 2008-12-08 14:24:41 dreyer Exp $";
    44category="Singularities";
    55info="
     
    9696
    9797  v = Klassifiziere(conv_ext2top(f_in));
    98   poly f_out = v[1];
    99   s2 = v[2];          // s2: Typ des Polynoms f z.b: E[18]
    100   corank = v[3];
     98  if(typeof(v[1])=="poly") {
     99     poly f_out = v[1];
     100     s2 = v[2];          // s2: Typ des Polynoms f z.b: E[18]
     101     corank = v[3];
     102  }
     103  else {
     104     s2="NoClass";
     105  }
    101106
    102107//---------------- collect results and create return-value --------------------
     
    261266    }
    262267//-------------------------- classification done ------------------------------
     268    if(typeof(v_class[1])!="poly") {
     269       return(v);
     270    }
    263271    poly f_result = v_class[1];
    264272    v[2] = v_class[2];
     
    532540        if(Dim==1) {
    533541           return(printresult(32, f,
    534                   "W#["+string(k)+","+string(Mu-12*k-2)+"]", cstn, 3*k-1));
     542                  "W#["+string(k)+","+string(Mu-12*k-3)+"]", cstn, 3*k-1));
    535543        }
    536544        return(printresult(29, f, "error!", cstn, -1));
     
    14611469  int Mu = cstn[2];
    14621470  int K  = cstn[3];
    1463   string s = "The Singularity ";+Show(jet(f, K), corank, K);
     1471  string s = "The Singularity "+Show(jet(f, K));
    14641472  string tp="";
    14651473//  return(printresult(47, f, tp, cstn, -1));
    14661474
    14671475  s = s +" has 4-jet equal to zero. (F47), mu="+string(Mu);
    1468 
     1476 
    14691477  s; // +"  ("+SG_Typ+")";
     1478  s = "No further classification available.";
     1479  s;
    14701480  return(Show(f), tp, corank);
    14711481}
     
    22122222  list v;
    22132223
    2214   if(sg[1]==1 && sg[2]==0 && sg[3]==1) { v=HKclass7_teil_1(sg, SG_Typ, cnt); }
     2224  if(sg[1]==1 && sg[2]==0 && sg[3]==1) {
     2225      v=HKclass7_teil_1(sg, SG_Typ, cnt);
     2226  }
     2227  else {
     2228      v[1]="not in list";
     2229      v[2]=0;
     2230  }
    22152231  debug_log(6, "HKclass7: ", v[1], " cnt=", v[2]);
    22162232  return(v);
Note: See TracChangeset for help on using the changeset viewer.