Changeset 6d37e8 in git


Ignore:
Timestamp:
Apr 11, 2002, 4:51:50 PM (21 years ago)
Author:
Eric Westenberger <westenb@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
Children:
0e8152ebb2559f1aabc537bc2bd088ef1c8c1041
Parents:
ca41246411e667fc0037f19eb53bf1a019285622
Message:
*westenb: removed static proc abs, call now absValue from general.lib


git-svn-id: file:///usr/local/Singular/svn/trunk@6049 2c84dea3-7e68-4137-9b89-c4e89433aadc
Location:
Singular/LIB
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/linalg.lib

    rca41246 r6d37e8  
    11//GMG last modified: 04/25/2000
    22//////////////////////////////////////////////////////////////////////////////
    3 version="$Id: linalg.lib,v 1.31 2002-03-26 12:41:43 mschulze Exp $";
     3version="$Id: linalg.lib,v 1.32 2002-04-11 14:48:43 westenb Exp $";
    44category="Linear Algebra";
    55info="
     
    3737LIB "ring.lib";
    3838LIB "elim.lib";
     39LIB "general.lib";
    3940//////////////////////////////////////////////////////////////////////////////
    4041// help functions
    4142//////////////////////////////////////////////////////////////////////////////
    42 static proc abs(poly c)
    43 "RETURN: absolut value of c, c must be constants"
    44 {
    45   if(c>=0){ return(c);}
    46   else{ return(-c);}
    47 }
    48 
    4943static proc const_mat(matrix A)
    5044"RETURN:   1 (0) if A is (is not) a constant matrix"
     
    797791      jp=i;pivo=0;
    798792      for(j=i+1;j<=n;j=j+1){
    799         c=abs(A[j,i+k]);
     793        c=absValue(A[j,i+k]);
    800794        if(pivo<c){ pivo=c;jp=j;}
    801795      }
     
    884878
    885879    //Pivotisierung
    886     pivo=abs(A[i,i+k]);jp=i;
     880    pivo=absValue(A[i,i+k]);jp=i;
    887881    for(j=i+1;j<=n;j=j+1){
    888       c=abs(A[j,i+k]);
     882      c=absValue(A[j,i+k]);
    889883      if(pivo<c){ pivo=c;jp=j;}
    890884    }
  • Singular/LIB/ntsolve.lib

    rca41246 r6d37e8  
    11//(GMG, last modified 16.12.00)
    22///////////////////////////////////////////////////////////////////////////////
    3 version="$Id: ntsolve.lib,v 1.13 2001-08-27 14:47:56 Singular Exp $";
     3version="$Id: ntsolve.lib,v 1.14 2002-04-11 14:51:50 westenb Exp $";
    44category="Symbolic-numerical solving";
    55info="
     
    1313";
    1414
     15LIB "general.lib";
    1516///////////////////////////////////////////////////////////////////////////////
    1617
     
    328329    for (i = 1; i <= n; i++)
    329330    {
    330         if ( abs(h[i]) > (1/10)^err)
     331        if ( absValue(h[i]) > (1/10)^err)
    331332        {
    332333            fertig = 0;
     
    338339        if (prot > 0)
    339340        {
    340            "// error:"; print(abs(h[i]));
     341           "// error:"; print(absValue(h[i]));
    341342           "// iterations to be performed: "+string(itb);
    342343        }
     
    363364}
    364365///////////////////////////////////////////////////////////////////////////////
    365 
    366 static proc abs( number r)
    367 {
    368    if (r >= 0)
    369    {
    370        return(r);
    371    }
    372    else
    373    {
    374        return(-r);
    375    }
    376 }
    377 ///////////////////////////////////////////////////////////////////////////////
    378 
Note: See TracChangeset for help on using the changeset viewer.