⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dfflibv12.txt

📁 Delphi for fun library v12, latest. This is the library for manuplating list, combination-permutati
💻 TXT
字号:
This is release  12 of the DFF Library - common units containing classes
used in many programs throughout DelphiForFun.

Changes with this version:
----------------------------------------
DFFUtils 	Changes:
                  New Routines:
                        MoveToTop  Scrolls a TMemo so the first line is in view;

MathLib Changes
                  New routines
	    StrToAngle - Convert a  dms formatted degrees-minutes-seconds string to an angle value in degrees
                      AngleToStr - Convert a angle in degrees to a dms formatted string
                      Deg2Rad - Degree to radians
 	    Rad2Deg - Radians to degrees
	    GetLongToMercProjection - Longitude to Mercurial projection
	    GetLatToMercProjection - Latitude to Mercurial projection 
	    GetMercprojectionToLong - Mercurial projection to longitude
       	    GetMercprojectionToLong - Mercurial projection to longitude
	 

UGeometry Unit changes 
                  New Routines:
                        Circle - Make a circle from center and radius}
                        GetTheta - Get the angle of a line from horizontal
                        Extendline - Extend right end of a line a given length
  	      DegtoRad  - Degrees to radians
	      RadtoDeg  -  Radians to degrees
	      TranslateLeftTo - Move a line to a new left end point
                        RotateRightEndBy - Rotate Right end of line about left end by a  given angle
	      RotateRightEndTo - Rotate Right end of line about left end to a  given angle 
                        CircleCircleIntersect - Find intersection points of 2 circles
                        PointCircleTangentLines - Find tangent lines from a point to a circle
                        CircleCircleExtTangentLines Find exterior tangent lines between 2 circles

UCardComponentV2
                   Changes to TCard class
                          Add Onpaint event exit
                          Expose TCard.canvas so that card image can be manipulated when it is painted
                                
UComboV2
                   Increased maximum reported  	      	


Previous version routines:
----------------------------

DFFUtils	Support procedures:
		AdjustGridSize
		Reformatmemo
		SetmemoMargins
		RotateStrLeft - Move 1st character to end of string
		SortStrUp - Sort string characters ascending
		SortStrDown - Sort string chCiraractes descending
		StrToFloatDef - Convert string to extended with default value if error
		DeleteGridRow - Delete row N of Stringgrid
		InsertgridRow - Insert new row after N in Stringgrid
		Sortgrid  - Sort Stringgrid ascending on column N
                IntToBinaryString - Converts integer to binary string representation.

MathsLib	Misc math related functions and procedures
		function GetNextPandigital
		function IsPolygonal
		function GeneratePentagon
		function IsPentagon
		function isSquare
		function isCube
               		function isPalindrome
		function GetEulerPhi
		function IntPower
		function gcd2
                	function GCDMany
		function LCMMany
		procedure ContinuedFraction
		function Factorial
		TPrimes = Object relating to prime numbers
		Prime  - Array of primes up 1,000,000
  	             	function IsPrime  - Is N prime?
    		function GetNextPrime  - Next prime > N
    		function GetPrevPrime  - First prime < N
    		procedure GetFactors - Get all prime factors of N
                		Factors  - Array of factors of N, set by GetFactors
	    	function GetNthPrime - Get prime of rank R
    		procedure GetCanonicalFactors - get ccanonical prime factors of N
		CanonicalFactors - Array of factors of N Cacnonical form (integer pairs)
		procedure GetDivisors - Get all divisors of N
		Divisors - Array of divisor of N
		function Getnbrdivisors - Number of divisors of N



UBigIntsV2	TInteger - Big Integer definition and arithmetic

UBigFloatV2     TBigFloat Large floating point number class with many arithmetic operations
		and functions defined.
			function GetNumber(s: string): boolean;
   			function GetNumber(s: string): boolean;
 			function ShowNumber(const View: TView): string;
 			function ConvertToString(const View: TView): string;
    			function ConvertToExtended(var num: extended): boolean;
    			function ConvertToInt64(var N: int64): boolean;
    			function IntPart: int64;

    			{assign}
    			procedure Assign(A: TBigFloat); overload;
    			procedure Assign(A: TBigFloat; SigDig: cardinal); overload;
    			procedure Assign(A: TInteger); overload;
    			procedure Assign(N: int64); overload;
    			procedure Assign(N: int64; SigDig: integer); overload;
    			procedure Assign(d: extended); overload;
    			procedure Assign(S: string); overload;
    			procedure Assign(S: string; SigDig: cardinal); overload;

    			{assign fixed values}
    			procedure AssignZero;
    			procedure AssignHalf;
    			procedure AssignOne;
    			procedure AssignTwo;
    			procedure AssignThree;
    			procedure AssignFour;

    			{add, subtract, multiply, divide and square}
    			procedure Add(B: TBigFloat); overload;
    			procedure Add(B: int64); overload;
    			procedure AbsAdd(B: TBigFloat);
    			procedure Subtract(B: TBigFloat); overload;
    			procedure Subtract(B: int64); overload;
    			procedure Mult(B: TBigFloat); overload;
    			procedure Mult(B: TBigfloat; const MaxSig: cardinal); overload;
    			procedure Mult(B: TInteger); overload;
    			procedure Mult(B: int64); overload;
    			procedure MultRaw(B: TBigFloat);
    			procedure Reciprocal(const MaxSig: cardinal);
    			procedure Divide(B: TBigFloat; const MaxSig: cardinal); overload;
    			procedure Divide(B: TInteger; const MaxSig: cardinal); overload;
    			procedure Divide(B: int64; const MaxSig: cardinal); overload;
    			procedure Square(const MaxSig: cardinal);
    			procedure SquareRaw;

    			{Compare, iszero, max and min}
    			function Compare(B: TBigFloat): integer;
    			function IsZero: boolean;
    			procedure MaxBigFloat(B: TBigFloat);
    			procedure MinBigFloat(B: TBigFloat);

    			{Sqroot, Nroot, Intpower and Power}
   			procedure Sqrt; overload;
    			procedure Sqrt(const MaxSig: cardinal); overload;
    			procedure NRoot(N: integer; const MaxSig: cardinal);
    			procedure IntPower(intpower: integer; const MaxSig: cardinal);
    			procedure Power(power: TBigfloat; const MaxSig: cardinal);

    			{Log, Log10 and Exp}
    			procedure Log(const MaxSig: cardinal);
    			procedure Log10(const MaxSig: cardinal);
    			procedure Exp(const MaxSig: cardinal);

    			{Constants - Pi and Log2}
    			procedure PiConst(const MaxSig: cardinal);
    			procedure Log2Const(const MaxSig: cardinal);

    			{Round, Trunc, Floor, Ceiling}
    			procedure Round(const MaxSig: cardinal); overload;
    			procedure Round; overload;
    			procedure Trunc(const x: integer = 0);
    			procedure Floor(const x: integer = 0);
    			procedure Ceiling(const x: integer = 0);
    			{Change sign of number}
    			procedure AbsoluteValue;
    			procedure Negate;

UCardComponent	A TCards class that can display cards images, front and back, shuffle a deck, etc.

UComboV2	ComboSet class for computing combinations and permutations

UDict           A dictionary component.

UGeometry	Geometrical functions
			Line returns a line structuire from two points.
			IntDistance returns integer distance between two points.
			LinesIntersect (tests intersection of two line segments)
			PointInPoly - tests if point is internal to a given polygon
			PointPerpendicularLine - Determines line perpendicular to given point
			 through a given line.
			PerpDistance - returns perpendicular distance from point to
			given line.
			AngledLineFromLine - determines line at given angle from a point
			on a given line.


UTGraphSearch		Defines a structure to contain Nodes and Edges for a graph. Search 							procedures from a given source a given destination nodes for Depth first 						search, Breadth first search, and Dijkstra Shortest path search are included.

UIntList		An Integer list version of TStringlist

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -