System.Math

From RAD Studio API Documentation
Jump to: navigation, search


Contents

Classes

EInvalidArgumentEInvalidArgument is the exception class for out-of-range parameters in specialized math and accounting functions.

Routines

ArcCosCalculates the inverse cosine of a given number.
ArcCoshCalculates the inverse hyperbolic cosine of a given number.
ArcCotCalculates the inverse cotangent of a given number.
ArcCotHCalculates the inverse hyperbolic cotangent of a given number.
ArcCscCalculates the inverse cosecant of a given number.
ArcCscHCalculates the inverse hyperbolic cosecant of a given number.
ArcSecCalculates the inverse secant of a given number.
ArcSecHCalculates the inverse hyperbolic secant of a given number.
ArcSinCalculates the inverse sine of a given number.
ArcSinhCalculates the inverse hyperbolic sine of a given number.
ArcTan2Calculates the arctangent angle and quadrant of a given number.
ArcTanhCalculates the inverse hyperbolic tangent of a given number.
CeilRounds variables up toward positive infinity.
ClearExceptionsClears floating-point number's exception status.
ClearFPUExceptionsClears exception bits in the FPU status word.
ClearSSEExceptionsClears exception bits in the SSE status word.
CompareValueReturns the relationship between two numeric values.
CosecantReturns the cosecant of an angle.
CoshCalculates the hyperbolic cosine of an angle.
CotCalculates the cotangent of an angle.
CotanCalculates the cotangent of an angle.
CotHCalculates the hyperbolic cotangent of an angle.
CscReturns the cosecant of an angle.
CscHReturns the hyperbolic cosecant of an angle.
CycleToDegConverts an angle measurement from cycles to degrees.
CycleToGradConverts an angle measurement from cycles to grads.
CycleToRadConverts an angle measurement from cycles to radians.
DegNormalize
DegToCycleReturns the value of a degree measurement expressed in cycles.
DegToGradReturns the value of a degree measurement expressed in grads.
DegToRadReturns the value of a degree measurement expressed in radians.
DivModReturns the result of an integer division, including the remainder.
DoubleDecliningBalanceCalculates the depreciation of an asset using the double-declining balance method.
EnsureRangeReturns the closest value to a specified value within a specified range.
FloorRounds variables toward negative infinity.
FrexpSeparates the Mantissa and Exponent of X
FutureValueCalculates the future value of an investment.
GetExceptionMaskReturns the exception mask from the current floating-point hardware.
GetExceptions
GetFPUExceptionMask
GetFPURoundMode
GetPrecisionModeReturns the FPU precision control mode.
GetRoundModeReturns the current floating-point rounding mode.
GetSSEExceptionMask
GetSSERoundMode
GradToCycleConverts grad measurements to cycles.
GradToDegConverts grad measurements to degrees.
GradToRadConverts grad measurements to radians.
HypotCalculates the length of the hypotenuse.
IfThenConditionally returns one of two specified values.
InRangeIndicates whether a value falls within a specified range.
InterestPaymentCalculates the interest portion of a loan payment.
InterestRateReturns the interest rate required to increase PresentValue to FutureValue.
InternalRateOfReturnCalculates the internal rate of return for an investment.
IntPowerCalculates the integral power of a base value.
IsInfiniteIndicates when a variable or expression represents an infinite value.
IsNanIndicates when a variable or expression does not evaluate to a numeric value.
IsZeroIndicates when a floating-point variable or expression evaluates to zero, or very close to zero.
LdexpCalculates X times (2 to the power of P).
LnXP1Returns the natural log of (X+1)
Log10Calculates log base 10.
Log2Calculates log base 2.
LogNCalculates the log of X for a specified base.
MaxReturns the greater of two numeric values (Delphi only).
MaxIntValueReturns the largest signed value in an integer array.
MaxValueReturns the largest signed value in an array.
MeanReturns the average of all values in an array.
MeanAndStdDevCalculates the mean and standard deviation of array elements.
MinReturns the lesser of two numeric values (Delphi only).
MinIntValueReturns the smallest signed value in an integer array.
MinValueReturns smallest signed value in an array.
MomentSkewKurtosisCalculates the mean, variance, skew, and kurtosis.
NetPresentValueCalculates the current value from an array of estimated cash flow values.
NormReturns the Euclidean 'L-2' norm.
NumberOfPeriodsReturns the number of payment periods for an investment.
PaymentCalculates a fully amortized payment.
PeriodPaymentReturns the principal amount from a full payment.
PolyEvaluates a uniform polynomial of one variable at the value X.
PopnStdDevCalculates the population standard deviation.
PopnVarianceCalculates the population variance.
PowerRaises Base to any power.
PresentValueCalculates the present value of an investment.
RadToCycleConverts radians to cycles.
RadToDegConverts radians to degrees.
RadToGradConverts radians to grads.
RaisEexceptions
RandGGenerates random numbers with Gaussian distribution.
RandomFromReturns a randomly selected element from an array.
RandomRangeReturns a random integer from a specified range.
RoundToRounds a floating-point value to a specified digit or power of ten using "Banker's rounding".
SameValueIndicates whether two floating-point values are (approximately) equal.
SecCalculates the secant of an angle.
SecantCalculates the secant of an angle.
SecHCalculates the hyperbolic secant of an angle.
SetExceptionMaskSets the exception mask on the floating-point-number hardware. Sets the FPU control word for 32-bit Windows, or the SSE control word for 64-bit Windows. You typically need to mask and unmask exceptions when you are interacting with external code such as TWebBrowser, OLEDB, .NET assembly, ActiveX controls, and OpenGL.
SetExceptions
SetFPUExceptionMaskSets the exception mask on the FPU control word.
SetFPURoundModeSets the FPU rounding mode on x32.
SetPrecisionModeSets the FPU precision control mode.
SetRoundModeSets the rounding mode for floating-point calculations.
SetSSEExceptionMaskSets the exception mask on the SSE’s MXCSR register.
SetSSERoundModeSets the SSE rounding mode.
SignIndicates whether a numeric value is positive, negative, or zero.
SimpleRoundToRounds a floating-point value to a specified digit or power of ten using symmetric arithmetic rounding.
SinCosReturns sine and cosine of an angle.
SinhReturns the hyperbolic sine of an angle.
SLNDepreciationReturns the straight-line depreciation allowance of an asset.
StdDevReturns the sample standard deviation for elements in an array.
SumReturns the sum of the elements in an array.
SumIntReturns the sum of the elements in an integer array.
SumOfSquaresReturns the sum of the squared values from a data array.
SumsAndSquaresReturns the sum of the values and the sum of the squared values in an array.
SYDDepreciationCalculates depreciation for an asset.
TanReturns the tangent of X.
TanhReturns the hyperbolic tangent of X.
TotalVarianceReturns the statistical variance from an array of values.
VarianceCalculates statistical sample variance from an array of data.

Types

TArithmeticException
TArithmeticExceptionMask
TArithmeticExceptions
TFPUExceptionTFPUException defines TFPUExceptionMask values.
TFPUExceptionMaskTFPUExceptionMask defines a set of TFPUException values.
TFPUPrecisionModeTFPUPrecisionMode defines how the FPU handles precision.
TFPURoundingModeTFPURoundingMode defines how the FPU handles rounding issues.
TPaymentTimeTPaymentTime is an enumerated type used as a parameter in financial functions.
TRoundingModeDefines the floating-point rounding mode.
TRoundToEXRangeExtended

Represents the permitted range for a power of ten used by System.Math.RoundTo.

TRoundToRangeTRoundToRange defines the RoundTo rounding limits.
TSSEException
TSSEExceptionMask
TSSERoundingModeTSSERoundingMode defines how the processor handles rounding issues.
TValueSignTValueSign defines the Sign returned value.

Variables

InfinityInfinity represents positive infinity.
MaxCompMaxComp represents the maximum absolute value for a Comp variable.
MaxDoubleMaxDouble represents the maximum positive value for a Double variable.
MaxExtendedMaxExtended represents the maximum absolute value for an Extended variable.
MaxSingleMaxSingle represents the maximum positive value for a Single variable.
MinCompMinComp represents the minimum value for a Comp variable.
MinDoubleMinDouble represents the minimum positive non-zero value for a Double variable.
MinExtendedMinExtended represents the minimum positive non-zero value for an Extended variable.
MinSingleMinSingle represents the minimum positive non-zero value for a Single variable.
NaNNaN represents a value that cannot be represented as a valid number.
NegInfinityNegInfinity represents negative infinity.

Constants

DefaultExceptionFlagsDefaultExceptionFlags: Set = [exInvalidOp,exZeroDivide..exOverflow];
exAllArithmeticExceptionsexAllArithmeticExceptions: Set = [exInvalidOp..exPrecision];
NegativeValueNegativeValue: Integer = $FFFFFFFF;
PositiveValuePositiveValue: Integer = 1;
seAESNIseAESNI: Integer = $80;
sePCLMULQDQsePCLMULQDQ: Integer = $100;
sePOPCNTsePOPCNT: Integer = $40;
seSSEseSSE: Integer = 1;
seSSE2seSSE2: Integer = 2;
seSSE3seSSE3: Integer = 4;
seSSE41seSSE41: Integer = $10;
seSSE42seSSE42: Integer = $20;
seSSSE3seSSSE3: Integer = 8;
ZeroValueZeroValue: Integer = 0;


Personal tools
Translations