Changeset 041dbdc in git
 Timestamp:
 Mar 12, 1998, 11:26:47 AM (25 years ago)
 Branches:
 (u'spielwiese', '91fdef05f09f54b8d58d92a472e9c4a43aa4656f')
 Children:
 e7232f5348c7b68d627b5f9df4f8cceceba610c9
 Parents:
 97194345e85a42bf5f6feac310528de922da216a
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

factory/cf_algorithm.h
r9719434 r041dbdc 1 1 /* emacs edit mode for this file is * C++ * */ 2 /* $Id: cf_algorithm.h,v 1. 9 19980116 08:56:34schmidt Exp $ */2 /* $Id: cf_algorithm.h,v 1.10 19980312 10:26:47 schmidt Exp $ */ 3 3 4 4 #ifndef INCL_CF_ALGORITHM_H … … 11 11 // This header file collects declarations of most of the 12 12 // functions in factory which implement higher level algorithms 13 // on canonical forms (factorization, gcd, etc.). 13 // on canonical forms (factorization, gcd, etc.) and declarations 14 // of some low level mathematical functions, too (absolute vale, 15 // euclidean norm, etc.). 14 16 // 15 17 // This header file corresponds to: … … 34 36 void psqr ( const CanonicalForm & f, const CanonicalForm & g, CanonicalForm & q, CanonicalForm & r, const Variable & x ); 35 37 36 CanonicalForm common_den ( const CanonicalForm & f );38 CanonicalForm bCommonDen ( const CanonicalForm & f ); 37 39 38 40 bool divides ( const CanonicalForm & f, const CanonicalForm & g ); 41 42 CanonicalForm maxNorm ( const CanonicalForm & f ); 43 44 CanonicalForm euclideanNorm ( const CanonicalForm & f ); 39 45 //}}} 40 46 … … 67 73 //}}} 68 74 75 //{{{ inline CanonicalForm abs ( const CanonicalForm & f ) 76 //{{{ docu 77 // 78 // abs()  return absolute value of `f'. 79 // 80 // The absolute value is defined in terms of the function 81 // `sign()'. If it reports negative sign for `f' than `f' is 82 // returned, otherwise `f'. 83 // 84 // Most useful for integers and rationals. May be used to 85 // signnormalize the leading coefficient of arbitrary 86 // polynomials, too. 87 // 88 //}}} 89 inline CanonicalForm 90 abs ( const CanonicalForm & f ) 91 { 92 // it is not only more general using `sign()', it is faster, too 93 if ( sign( f ) < 0 ) 94 return f; 95 else 96 return f; 97 } 98 //}}} 99 69 100 /*ENDPUBLIC*/ 70 101
Note: See TracChangeset
for help on using the changeset viewer.