From 59f49375547326a4e7e379ff5372b1b93f620d8d Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 14 Dec 2017 12:51:11 +0100 Subject: matheunit.pas: ermittleAnstief aufgerÀumt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- matheunit.pas | 40 +++++++++++++++++++++++++++------------- 1 file changed, 27 insertions(+), 13 deletions(-) (limited to 'matheunit.pas') diff --git a/matheunit.pas b/matheunit.pas index 71005c5..5247f68 100644 --- a/matheunit.pas +++ b/matheunit.pas @@ -919,39 +919,53 @@ var s: string; xSum,xQdrSum,ySum,xySum: extended; wert: tExtPoint; - i,anz: longestOrdinal; + i,j,anz: longestOrdinal; + reihenfolge: string[2]; + positionen: array[0..2] of longestOrdinal; begin if xSpalte=ySpalte then begin result:=1; exit; end; - anz:=0; + + positionen[0]:=-1; + positionen[1]:=min(xSpalte,ySpalte); + positionen[2]:=max(xSpalte,ySpalte); + + if xSpalte