unit mathunit; {$mode objfpc}{$H+} interface uses Classes, SysUtils; type tExtPoint = record x,y: extended; end; tExtPointArray = array of tExtPoint; pTExtPointArray = ^tExtPointArray; tLongintArray = array of longint; pTLongintArray = ^tLongintArray; tExtendedArray = array of extended; function Plus(a,b: tExtPoint): tExtPoint; function Durch(a: tExtPoint; b: extended): tExtPoint; function myFrac(x: extended): extended; implementation function Plus(a,b: tExtPoint): tExtPoint; begin result.x:=a.x+b.x; result.y:=a.y+b.y; end; function Durch(a: tExtPoint; b: extended): tExtPoint; begin result.x:=a.x/b; result.y:=a.y/b; end; function myFrac(x: extended): extended; begin result:=frac(x); while result<0 do result:=result+1; end; end.