Changeset 518545 in git for Singular/LIB/solve.lib


Ignore:
Timestamp:
May 18, 2005, 9:07:32 AM (19 years ago)
Author:
Hans Schönemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
f4c2ba9853622f20e7ecef2060bd6cdadcbecb2a
Parents:
9cbb7a33486e748cd292269343614278488d977f
Message:
*hannes: more error checks


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

Legend:

Unmodified
Added
Removed
  • Singular/LIB/solve.lib

    r9cbb7a3 r518545  
    11///////////////////////////////////////////////////////////////////////////////
    2 version="$Id: solve.lib,v 1.32 2005-05-06 14:39:13 hannes Exp $";
     2version="$Id: solve.lib,v 1.33 2005-05-18 07:07:32 Singular Exp $";
    33category="Symbolic-numerical solving";
    44info="
     
    557557// test if basering admissible
    558558  if (char(basering)!=0){ERROR("characteristic of basering not 0");}
    559   if ((charstr(basering)[1]=="0") and (npars(basering)!=0)){
    560     ERROR("basering has parameters");
    561   }
     559  if ((charstr(basering)[1]=="0") and (npars(basering)!=0))
     560  { ERROR("basering has parameters"); }
    562561
    563562// some global settings and control
     
    568567  int prec = 30;
    569568  // check additional parameters...
    570   if (size(#)>0){
     569  if (size(#)>0)
     570  {
    571571    int sofar=1;
    572572    if (typeof(#[1])=="int"){
     
    601601    }
    602602    for (ii=sofar+1;ii<=size(#);ii++) { // check for additional strings
    603        if (#[ii]=="oldring"){ oldr=1; }
    604        if (#[ii]=="nodisplay"){ nodisp=1; }
     603       if (typeof(#[ii])=="string")
     604       {
     605          if (#[ii]=="oldring"){ oldr=1; }
     606          if (#[ii]=="nodisplay"){ nodisp=1; }
     607       }
    605608    }
    606609  }
     
    608611  // if interaktive version is chosen -- choice of basering (Top::`outR`)
    609612  // and name for list of solutions (outL):
    610   if (oldr==1) {
     613  if (oldr==1)
     614  {
    611615    list Out;
    612616    LL=names(Top);
Note: See TracChangeset for help on using the changeset viewer.