source: git/libfac/factor/helpstuff.h @ d270b8

fieker-DuValspielwiese
Last change on this file since d270b8 was 3e55bc, checked in by Hans Schönemann <hannes@…>, 27 years ago
* hannes/michael: libfac 0.2.4 git-svn-id: file:///usr/local/Singular/svn/trunk@377 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.8 KB
Line 
1/** Copyright 1996 Michael Messollen. All rights reserved. */
2////////////////////////////////////////////////////////////
3// emacs edit mode for this file is -*- C++ -*-
4// $Id: helpstuff.h,v 1.2 1997-06-09 15:56:09 Singular Exp $
5////////////////////////////////////////////////////////////
6#ifndef HELPSTUFF_H
7#define HELPSTUFF_H
8bool mydivremt ( const CanonicalForm&, const CanonicalForm&, CanonicalForm&, CanonicalForm& );
9///////////////////////////////////////////////////////////////
10// Now some procedures used in MVMultiHensel and in Truefactors
11///////////////////////////////////////////////////////////////
12CanonicalForm mod_power( const CanonicalForm & f, int k, int levelU);
13int subvardegree( const CanonicalForm & F, int levelF );
14CanonicalForm change_poly( const CanonicalForm & f , const SFormList & Substitutionlist, int directionback );
15
16///////////////////////////////////////////////////////////////
17// Now some procedures used in SqrFree and in Factor
18///////////////////////////////////////////////////////////////
19CFFList myappend( const CFFList & Inputlist, const CFFactor & TheFactor) ;
20CFFList myUnion(const CFFList & Inputlist1,const CFFList & Inputlist2);
21int Powerup( const int base , const int exp=1);
22inline int min ( const int a, const int b ){
23  return (a<=b ? a:b);
24}
25inline int max ( const int a, const int b ){
26  return (a>b ? a:b);
27}
28//////////////////
29// For testing  //
30//////////////////
31#ifdef SPARSEGCD
32#include "gcd.h"
33#define mygcd(f,g) \
34((CanonicalForm) sparsemod( f,  g ))
35#else
36#define mygcd(f,g) \
37((CanonicalForm) gcd( f, g ))
38#endif
39
40#endif /* HELPSTUFF_H */
41
42///////////////////////////////////////////////////////////////////////////////
43/*
44$Log: not supported by cvs2svn $
45Revision 1.2  1997/04/25 22:23:49  michael
46Version for libfac-0.2.1
47
48*/
Note: See TracBrowser for help on using the repository browser.