Changeset 730a1f in git


Ignore:
Timestamp:
Sep 13, 2016, 11:30:40 AM (8 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
57b2b9bd91b192001e22eedc5da8c62ec7ffc879
Parents:
6de4f47c2595122ae8162280a8ac90eefcfce27c
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2016-09-13 11:30:40+02:00
git-committer:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2016-09-13 11:32:35+02:00
Message:
simplified error checks in nctools.lib
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/nctools.lib

    r6de4f47 r730a1f  
    755755  {
    756756    ERROR("You have to call the procedure from the ring");
    757     return();
    758757  }
    759758
     
    772771    {
    773772      ERROR("The argument 'b' must be an integer!");
    774       return();
    775773    }
    776774    b = #[1];
     
    779777    {
    780778      ERROR("The argument 'b' must within [1..nvars(basering)]!");
    781       return();
    782779    }
    783780
     
    789786    {
    790787      ERROR("The argument 'e' must be an integer!");
    791       return();
    792788    }
    793789    e = #[2];
     
    796792    {
    797793      ERROR("The argument 'e' must within [1..nvars(basering)]!");
    798       return();
    799794    }
    800795
     
    802797    {
    803798      ERROR("The argument 'e' must be bigger or equal to 'b'!");
    804       return();
    805799    }
    806800  }
     
    811805    {
    812806      ERROR("The argument 'Q' must be an ideal!");
    813       return();
    814807    }
    815808    Q = #[3];
     
    821814    {
    822815      ERROR("The argument 'flag' must be an integer!");
    823       return();
    824816    }
    825817    flag = #[4];
     
    11421134    return(l[1]);
    11431135  }
    1144 
    11451136  ERROR(l);
    1146   return();
    11471137}
    11481138example
     
    11811171    return(l[2]);
    11821172  }
    1183 
    11841173  ERROR(l);
    1185   return();
    11861174}
    11871175example
Note: See TracChangeset for help on using the changeset viewer.