FORM v5.0.0-35-g6318119
Macros | Functions
normal.c File Reference
#include "form3.h"
Include dependency graph for normal.c:

Go to the source code of this file.

Macros

#define MAXNUMBEROFNONCOMTERMS   2
 

Functions

int CompareFunctions (WORD *fleft, WORD *fright)
 
int Commute (WORD *fleft, WORD *fright)
 
int Normalize (PHEAD WORD *term)
 
int ExtraSymbol (WORD sym, WORD pow, WORD nsym, WORD *ppsym, WORD *ncoef)
 
int DoTheta (PHEAD WORD *t)
 
int DoDelta (WORD *t)
 
void DoRevert (WORD *fun, WORD *tmp)
 
WORD DetCommu (WORD *terms)
 
WORD DoesCommu (WORD *term)
 
int TreatPolyRatFun (PHEAD WORD *prf)
 
void DropCoefficient (PHEAD WORD *term)
 
void DropSymbols (PHEAD WORD *term)
 
int SymbolNormalize (WORD *term)
 
int TestFunFlag (PHEAD WORD *tfun)
 
int BracketNormalize (PHEAD WORD *term)
 

Detailed Description

Mainly the routine Normalize. This routine brings terms to standard form. Its main buffers are in AT, but they have a fixed size controlled by NORMSIZE, which limit the maximum complexity of terms which can be normalized.

Normalize is called recursively, currently via: Normalize -> ExpandRat -> Normalize.

Definition in file normal.c.

Macro Definition Documentation

◆ MAXNUMBEROFNONCOMTERMS

#define MAXNUMBEROFNONCOMTERMS   2

Definition at line 4559 of file normal.c.

Function Documentation

◆ CompareFunctions()

int CompareFunctions ( WORD *  fleft,
WORD *  fright 
)

Definition at line 55 of file normal.c.

◆ Commute()

int Commute ( WORD *  fleft,
WORD *  fright 
)

Definition at line 119 of file normal.c.

◆ Normalize()

int Normalize ( PHEAD WORD *  term)

Definition at line 193 of file normal.c.

◆ ExtraSymbol()

int ExtraSymbol ( WORD  sym,
WORD  pow,
WORD  nsym,
WORD *  ppsym,
WORD *  ncoef 
)

Definition at line 4247 of file normal.c.

◆ DoTheta()

int DoTheta ( PHEAD WORD *  t)

Definition at line 4309 of file normal.c.

◆ DoDelta()

int DoDelta ( WORD *  t)

Definition at line 4406 of file normal.c.

◆ DoRevert()

void DoRevert ( WORD *  fun,
WORD *  tmp 
)

Definition at line 4473 of file normal.c.

◆ DetCommu()

WORD DetCommu ( WORD *  terms)

Definition at line 4561 of file normal.c.

◆ DoesCommu()

WORD DoesCommu ( WORD *  term)

Definition at line 4620 of file normal.c.

◆ TreatPolyRatFun()

int TreatPolyRatFun ( PHEAD WORD *  prf)

Definition at line 5011 of file normal.c.

◆ DropCoefficient()

void DropCoefficient ( PHEAD WORD *  term)

Definition at line 5147 of file normal.c.

◆ DropSymbols()

void DropSymbols ( PHEAD WORD *  term)

Definition at line 5165 of file normal.c.

◆ SymbolNormalize()

int SymbolNormalize ( WORD *  term)

Routine normalizes terms that contain only symbols. Regular minimum and maximum properties are ignored.

We check whether there are negative powers in the output. This is not allowed.

Definition at line 5195 of file normal.c.

Referenced by InFunction(), and poly_sort().

◆ TestFunFlag()

int TestFunFlag ( PHEAD WORD *  tfun)

Definition at line 5294 of file normal.c.

◆ BracketNormalize()

int BracketNormalize ( PHEAD WORD *  term)

Definition at line 5325 of file normal.c.