Math Arithmetic Class

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

Declarations Section, ContinuedFraction Function, FactorNumberToVariantMatrix Function, FactorMatrixToExpr Function, FactorNumberToExpr Function, Fibonacci Function, FloatToFraction Function, GeneratePi Function, GreatestCommonDivisor Function, IsPrime Function, IsWithinPlusOrMinusOf Function, LeastCommonMultiple Function, NextEven Function, NextEvenSample Sub, NextNumber Function, NextNumberSample Sub, NextOdd Function, NextOddSample Sub, NextPrime Function, NextPrimeSample Function, NthPrime Function, NumComp Function, PreviousEven Function, PreviousEvenSample Sub, PreviousNumber Function, PreviousNumberSample Sub, PreviousOdd Function, PreviousOddSample Sub, PreviousPrime Function, PreviousPrimeSample Function, RangeComp Function, RationalDividend Function, RationalDivisor Function, RationalNumber Function, RationalToFraction Function, RationalToFractionString Function, SawtoothWave Function, SawtoothWaveSample Sub, SquareWave Function, SquareWaveSample Sub, TextPlot Function, TextPlotAsteriskSample Sub, TextPlotCosineSample Sub, TextPlotCubicSample Sub, TextPlotQuadraticSample Sub, TextPlotRandomSample Sub, TextPlotSineSample Sub

Declarations Section
 
Continued Fraction Function
"Evaluate Continued Fraction" Evaluates the continued fraction illustrated below.
Factor Number To Variant Matrix Function
Factor a number, filling an array with a list of prime factors and their powers.
Factor Matrix To Expr Function
"Factor Matrix To Algebraic Expression" Convert an array of FactorCount elements into a printable string. The FactorCount array represents the prime factors of a number along with the power of each factor.
Factor Number To Expr Function
"Factor Number To Algebraic Expression" Factor a number and return its prime factors in a string as an algebraic expression.
Fibonacci Function
Return the Nth Fibonacci number as specified in vX. Every Fibnonacci number is the sum of the previous two numbers in the sequence, except for the first two numbers which are both 1 (one). vX must be between 1 and 1476.
Float To Fraction Function
Convert a floating point number into a fractional number represented by a string.
Generate Pi Function
One (slow) method for generating Pi. We strongly suggest that you use the Pi property instead of calling this function.
Greatest Common Divisor Function
Return the largest number equally divisible by both numbers. Also known as GCD and Greatest Common Factor and GCF.
Is Prime Function
"Is Number Prime" Return true if a number is prime; return False otherwise.
Is Within Plus Or Minus Of Function
Return True if vCheck is within plus or minus vVariance of vTarget; return False otherwise. Summary: True if vTarget - vVariance <= vCheck <= vTarget + vVariance.
Least Common Multiple Function
Return the smallest number which is divisible by both arguments vX and vY. Also known as LCM.
Next Even Function
"Next Even Number" Returns the next larger even number.
Next Even Sample Sub
Print some samples of the NextEven function.
Next Number Function
Rounds vX up to the next largest number that is a multiple of vPrecision. vOffset is the start of the sequence of numbers and vPrecision is the step.
Next Number Sample Sub
Print some samples of the NextNumber function.
Next Odd Function
"Next Odd Number" Returns the next larger odd number.
Next Odd Sample Sub
Print some samples of the NextOdd function.
Next Prime Function
"Next Prime Number" Returns the next larger prime number. Returns the smallest prime number greater than the argument.
Next Prime Sample Function
Print some samples of the NextPrime function.
Nth Prime Function
"Nth Number Prime" Return the Nth number in the prime number sequence 2, 3, 5, 7, 11, etc.
Num Comp Function
"Number Compare" or "Numeric Comparison" Determine if one number is less than, equal to, or greater than the other. Returns -1 if A < B; 0 if A = B; 1 if A > B.
Previous Even Function
"Previous Even Number" Returns the next smaller even number.
Previous Even Sample Sub
Print some samples of the PreviousEven function.
Previous Number Function
Rounds vX down to the next smallest number that is a multiple of vPrecision. vOffset is the start of the sequence of numbers and vPrecision is the step.
Previous Number Sample Sub
Print some samples of the PreviousNumber function.
Previous Odd Function
"Previous Odd Number" Returns the next smaller odd number.
Previous Odd Sample Sub
Print some samples of the PreviousOdd function.
Previous Prime Function
"Previous Prime Number" Returns the previous, smaller prime number. Returns the largest prime number less than the argument.
Previous Prime Sample Function
Print some samples of the PreviousPrime function.
Range Comp Function
"Range Compare" or "Range Comparison" Determine is X is below, within, or above the range from A through B.
Rational Dividend Function
Return the dividend of the fractional part of the floating-point number vRational. Converts vRational to X+Y/Z (where X, Y, and X are all integers) then returns Y.
Rational Divisor Function
Return the divisor of the fractional part of the floating-point number vRational. Converts vRational to X+Y/Z (where X, Y, and X are all integers) then returns Z.
Rational Number Function
Return the integer part of the floating-point number vRational. Converts vRational to X+Y/Z (where X, Y, and X are all integers) then returns X. Same as calling the Visual Basic Fix function.
Rational To Fraction Function
"Rational Number To Fractional Components" Converts vRational to X+Y/Z (where X, Y, and X are all integers) then returns X, Y, and Z via arguments. Function returns True upon success and False upon failure.
Rational To Fraction String Function
"Rational Number To Fraction String" Converts vRational to X+Y/Z (where X, Y, and X are all integers) then returns that algebraic expression as a string.
Sawtooth Wave Function
Function whose plotted output resembles the teeth of a saw. Note that this function is offset from the origin.
Sawtooth Wave Sample Sub
Print some samples of the SawtoothWave function.
Square Wave Function
Function whose output resembles a square wave.
Square Wave Sample Sub
Print some samples of the SquareWave function.
Text Plot Function
Text plot of a series of X and Y numbers. vNums(1, n) is the X value; vNums(2, n) is the Y value.
Text Plot Asterisk Sample Sub
Print a bunch of straight lines that all cross at the origin. They look something like the asterisk character when plotted.
Text Plot Cosine Sample Sub
Plot F(X) = Cosine(X)
Text Plot Cubic Sample Sub
Plot F(X) = X ^ 3.
Text Plot Quadratic Sample Sub
Plot F(X) = X ^ 2.
Text Plot Random Sample Sub
Plot random X & Y values.
Text Plot Sine Sample Sub
Plot F(X) = Sine(X)

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.