Math Reals Class

Entisoft Tools 2.0 Object Library
Version 2.1 Build 208
<-- Previous || Index || Main || Topics || Next -->

Declarations Section, MathReals_Verify Sub, Deg Property, DegVerify Sub, E Property, eVerify Sub, EulerGamma Property, EulerGammaVerify Sub, PI Property, PiVerify Sub, RPC Property, RPCVerify Sub, Approx Function, ApproxVerify Sub, Ceiling Function, CeilingVerify Sub, Chi Function, ChiVerify Sub, DegreesToRadians Function, DegreesToRadiansVerify Sub, DivideOnErrRtnZero Function, DivideOnErrRtnZeroVerify Sub, DivideOffsetByOne Function, DivideOffsetByOneVerify Sub, ExponentPart Function, ExponentPartVerify Sub, FixReal Function, FixRealVerify Sub, Floor Function, FloorVerify Sub, FractionalPart Function, FractionalPartVerify Sub, IntReal Function, IntRealVerify Function, IntegerPart Function, IntegerPartVerify Function, IsPentiumFlawed Function, IsPentiumFlawedAlt Function, LogNReal Function, LogNRealVerify Function, Mantissa Function, MantissaVerify Function, Max2Real Function, Max2RealVerify Function, Max2Variant Function, Max2VariantVerify Function, Max3Real Function, Max3RealVerify Function, Max3Variant Function, Max3VariantVerify Function, MaxReal Function, MaxRealVerify Function, Min2Real Function, Min2RealVerify Function, Min2Variant Function, Min2VariantVerify Function, Min3Real Function, Min3RealVerify Function, Min3Variant Function, Min3VariantVerify Function, MinReal Function, MinRealVerify Function, ModAlt Function, ModAltVerify Function, ModOffsetByOne Function, ModOffsetByOneVerify Function, ModStd Function, ModStdVerify Function, ModSym Function, ModSymVerify Function, Percent Function, PercentVerify Function, PercentChange Function, PercentChangeVerify Function, PercentOfTotal Function, PercentOfTotalVerify Function, RadiansToDegrees Function, RadiansToDegreesVerify Sub, RoundToPrecision Function, RoundToPrecisionVerify Sub, RoundToDigits Function, RoundToDigitsVerify Sub, Set1stIfNeg2ndIfPos Sub, StepFn Function, StepFnVerify Sub, MathBuiltInBenchmark Sub

Declarations Section
 
Math Reals _ Verify Sub
Tests the routines in this Class during Development.
Deg Property
"Radians Per Degree"
Deg Verify Sub
Test the Deg property.
E Property
Property whose constant numeric value is the base of natural logarithms.
e Verify Sub
Test the e property.
Euler Gamma Property
Property whose constant numeric value is Euler's Constant.
Euler Gamma Verify Sub
Test the EulerGamma property.
PI Property
The constant Pi. The ratio of the circumference of a circle to its diameter.
Pi Verify Sub
Test the Pi property.
RPC Property
"Radians Per Circle" Also known as Pi / 2.
RPC Verify Sub
Test the RPC property.
Approx Function
"Approximate" Return True if two expressions are approximately equal.
Approx Verify Sub
Test the Approx function.
Ceiling Function
Ceiling of a real number. Number vNumber is rounded-up with precision vPrecision.
Ceiling Verify Sub
Test the Ceiling function.
Chi Function
"Hyperbolic Cosine Integral" Chi where A, X, and B are real numbers. Return 1 if A < X < B; .5 if X = A or X = B; 0 if X < A or X > B.
Chi Verify Sub
Test the Chi function.
Degrees To Radians Function
Converts degrees to radians.
Degrees To Radians Verify Sub
Test the DegreesToRadians function.
Divide On Err Rtn Zero Function
"Divide; On Error Return Zero" Divide two real numbers. Return 0 (zero) in case of division by zero and other errors.
Divide On Err Rtn Zero Verify Sub
Test the DivideOnErrRtnZero function.
Divide Offset By One Function
"Divide Offset By One" Integer division offset by one (except that the function does accept floating-point numbers).
Divide Offset By One Verify Sub
Test the DivideOffsetByOne function.
Exponent Part Function
"Exponent Part Of Real Number" Return the exponential part of a real number.
Exponent Part Verify Sub
Test the ExponentPart function.
Fix Real Function
"Fixed Part Of Real Number" Integer Part of a real number. Return the largest integer less than or equal to vNumber when vNumber is positive. Return the smallest integer greater than or equal to vNumber when vNumber is negative. Same as the IntegerPart function.
Fix Real Verify Sub
Test the FixReal function.
Floor Function
Floor of a real number. Number vNumber is rounded-down with precision vPrecision.
Floor Verify Sub
Test the Floor function.
Fractional Part Function
"Fractional Part Of Real Number" Return the real number with its integer part removed.
Fractional Part Verify Sub
Test the FractionalPartVerify function.
Int Real Function
Floor of a real number. Return the largest integer less than or equal to vX.
Int Real Verify Function
Test the IntReal function.
Integer Part Function
"Integer Part Of Real Number" Return the largest integer less than or equal to vNumber when vNumber is positive. Return the smallest integer greater than or equal to vNumber when vNumber is negative. Same as the FixReal function.
Integer Part Verify Function
Test the IntegerPart function.
Is Pentium Flawed Function
"Is Intel Pentium Chip Flawed" Returns True if Intel Pentium chip suffers from floating point division flaw; original version.
Is Pentium Flawed Alt Function
"Is Intel Pentium Chip Flawed (Alternate)" Returns True if Intel Pentium chip suffers from floating point division flaw; alternate version.
Log N Real Function
"Log Base N Of Real Number" Return the base Y logarithm of X, where both arguments are real numbers.
Log N Real Verify Function
Test the LogNReal function.
Mantissa Function
"Mantissa Of Real Number" Return the mantissa of a real number.
Mantissa Verify Function
Test the Mantissa function.
Max 2 Real Function
"Maximum Of Two Real Number" Return the maximum of two numeric arguments. Returns argument on left (vX) if arguments are equal.
Max 2 Real Verify Function
Test the Max2Real function.
Max 2 Variant Function
"Maximum Of Two Variant Values" Return the maximum of two values. Returns argument on left (vX) if arguments are equal.
Max 2 Variant Verify Function
Test the Max2Variant function.
Max 3 Real Function
"Maximum Of Three Real Numbers" Return the maximum of three numeric arguments. Returns the leftmost of the maximum arguments.
Max 3 Real Verify Function
Test the Max3Real function.
Max 3 Variant Function
"Maximum Of Three Variant Values" Return the maximum of three arguments. Returns the leftmost of the maximum arguments.
Max 3 Variant Verify Function
Test the Max3Variant function.
Max Real Function
"Maximum Of Real Numbers" Return the maximum value of the numeric arguments. The arguments must contain strings or numbers, but not both. Function returns the leftmost of the maximum arguments.
Max Real Verify Function
Test the MaxReal function.
Min 2 Real Function
"Minimum Of Two Real Numbers" Return the minimum of two numeric arguments. Returns argument on left if arguments are equal.
Min 2 Real Verify Function
Test the Min2Real function.
Min 2 Variant Function
"Minimum Of Two Variant Values" Return the minimum of two arguments. Returns argument on left if arguments are equal.
Min 2 Variant Verify Function
Test the Min2Variant function.
Min 3 Real Function
"Minimum Of Three Real Numbers" Return the minimum of three numeric arguments. Returns the leftmost of the minimum arguments.
Min 3 Real Verify Function
Test the Min3Real function.
Min 3 Variant Function
"Minimum Of Three Variant Values" Return the minimum of three arguments. Returns the leftmost of the minimum arguments.
Min 3 Variant Verify Function
Test the Min3Variant function.
Min Real Function
"Minimum Of Real Numbers" Return the minimum value of the numeric arguments. The arguments must contain strings or numbers, but not both. Function returns the leftmost of the minimum arguments.
Min Real Verify Function
Test the MinReal function.
Mod Alt Function
"Modulo (Alternate Definition)" or "Modulus" or "Remainder" Floating-point modulus of real numbers.
Mod Alt Verify Function
Test the ModAlt function.
Mod Offset By One Function
"Modulus Offset By One" Floating-point modulus of real numbers, offset by 1 (one).
Mod Offset By One Verify Function
Test the ModOffsetByOne function.
Mod Std Function
"Modulo (Standard Definition)" or "Modulus" or "Remainder" Floating-point modulus of real numbers.
Mod Std Verify Function
Test the ModStd function.
Mod Sym Function
"Symmetric Modulo" or "Symmetric Modulus" Floating-point symmetric modulus of real numbers.
Mod Sym Verify Function
Test the ModSym function.
Percent Function
Returns X percent of Y.
Percent Verify Function
Test the Percent function.
Percent Change Function
Percent increase of Y over X.
Percent Change Verify Function
Test the PercentChange function.
Percent Of Total Function
Answers X is ? percent of Y.
Percent Of Total Verify Function
Test the PercentOfTotal function.
Radians To Degrees Function
Converts radians to degrees.
Radians To Degrees Verify Sub
Test the RadiansToDegrees function.
Round To Precision Function
Round the number vNumber to the nearest vPrecision.
Round To Precision Verify Sub
Test the RoundToPrecision function.
Round To Digits Function
Round the number vNumber to vDigits digits of accuracy.
Round To Digits Verify Sub
Test the RoundToDigits function.
Set 1st If Neg 2nd If Pos Sub
"Set First If Negative Or Set Second If Positive" Subroutine assigns positive values to one of the arguments. Subroutine assigns (Absolute value of) negative values to the other argument.
Step Fn Function
"Step Function" Returns 0 if X < 0; .5 if X = 0; 1 if X > 0.
Step Fn Verify Sub
Test the StepFn function.
Math Built In Benchmark Sub
Perform a benchmark on the built-in Visual Basic functions.

This Windows-based ActiveX DLL provides many useful routines through its function-bearing and data structure classes. Consult the Help file for more information, or call us at 1-310-472-3736. For the latest news and files, visit our home page on the World Wide Web: http://www.entisoft.com

Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.