
Hi Mark,

now only 5400 Delphi lines or 4700 BP lines (-2000 lines include)
are used to build 'PrAmoeb' with all the testcode. And 'PrA0'
which should be usable contains only 350 commented lines. UNITS are:

  Vw0Io             Volker Walter Input Output
  VwDbgw                          Debug Windows (only for Delphi Dbg)
  Vw0Hlp                          with only some functions for testing
       for mimimal string handling
    FUNCTION RptStr(x:stdStr; i:stdInt):stdStr;
    PROCEDURE SetPadChar(CONST x:Char);
    FUNCTION GetPadChar:Char;
    FUNCTION RightPadStr(CONST x:stdStr; CONST i:stdInt):stdStr;

       for formattinmg numbers to strings
    FUNCTION IntToStr(CONST x:stdInt; CONST width:stdInt):stdStr;
    FUNCTION FltFxdStr(CONST x:flt80; CONST width,decimals:stdInt):stdStr;
    FUNCTION FltSciStr(CONST x:flt80; CONST width,expDigs:stdInt):stdStr;

       really needed in Amoeba
    PROCEDURE SwapF(VAR x,y:stdFlt);

  PrFun0          Press  Functions
       the bessel function which is used for testing Amoeba
    FUNCTION BessJ0(CONST x:stdFlt):stdFlt;


  PrAmoeba        Press  Amoeba UNIT
               with fixed CONSTants for the size of the simplex
    CONST
      PARAMmax=3+5;                 { maximum number of parameters }
      POINTmax=PARAMmax+1;          { maximum number of points     }
      ITmax=5000;                   { maximum number of iterartions}
    TYPE
      parameterArr=ARRAY[1..PARAMmax] OF stdFlt;
      simplexParMat=ARRAY[1..POINTmax] OF parameterArr;
      simplexFunVec=ARRAY[1..POINTmax] OF stdFlt;

      arrayFun=FUNCTION(VAR x:parameterArr):stdFlt;

    FUNCTION Amoeba(VAR p:simplexParMat; VAR y:simplexFunVec;
                  CONST nDim:stdInt; CONST fTol:stdFlt;
                  Funk:arrayFun; VAR iter:stdInt; VAR tol:stdFlt):Boolean;


Only PARAMmax has to be adjusted for real applications.

Now it should be possible to make this source-code available
for other users.

Volker

