## Math Complex Class

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

Divide By Zero Property
For differentiating between divide-by-zero and other types of errors when testing the trig. functions. Currently defined as the Null value.
Absolute Function
"Absolute Value" Absolute value of a real number. Returns the norm of a complex number. Function always returns either Null or a real number.
Approx Complex Function
"Approximate" Return True if two expressions are approximately equal. Compare the real and imaginary parts of complex numbers separately.
Conj Function
"Conjugate" Conjugate of a real or complex number.
Cubic Expr Function
"Evaluate The Cubic Expression" Evaluates the expression A X^3 + B X^2 + C X + D where A, B, C, D, and X are real and/or complex numbers.
Cubic Root Function
"Root Of Cubic Equation" Returns one of the three roots of the cubic equation. Solves the equation A X^3 + B X^2 + C X + D = 0 for X. Real solutions are returned as a numeric value and complex solutions are returned as a complex number string.
Cubic Root Benchmark Sub
Run a benchmark of the CubicRoot function.
Cubic Root Sample Sub
Print some samples of the CubicRoot function.
Div Function
"Divide" or "Division" Divide two real and/or complex numbers.
Fibonacci Complex Function
"Nth Fibonacci Number" Returns the Nth Fibonacci number where N can be a floating-point or complex number.
Imag Part Function
"Imaginary Part" Return the iamginery part of a complex (or real) number. Function returns 0 (zero) if the argument is a real number.
Inv Function
"Inverse" Reciprocal of a real or complex number.
Is Complex Function
Determine if the argument vX is a complex (or real) number, according to the way that complex numbers are represented within this library, which is as a string like "R|I" where R is the real part and I is the imaginary part of the number.
Max 2 Complex Function
"Maximum Of Two Numbers" Maximum of two real and/or complex numbers. Returns argument on left (vX) if the arguments are equal real numbers.
Max 3 Complex Function
"Maximum Of Three Numbers" Maximum of three Real and/or Complex numbers. Returns the leftmost of the maximum arguments if all arguments are real numbers.
Min 2 Complex Function
"Minimum Of Two Numbers" Minimum of two Real and/or Complex numbers. Returns argument on left (vX) if arguments are equal real numbers.
Min 3 Complex Function
"Minimum Of Three Numbers" Minimum of three Real and/or Complex numbers. Returns the leftmost of the minimum arguments if all arguments are real numbers.
Mult Function
"Multiply" or "Multiplication" Multiply two real and/or complex numbers.
Neg Function
"Negate" or "Negative" Negate a real or complex number.
Nth Root Function
Return the Nth root given real and/or complex numbers.
Power Function
"X To The Power Of Y" X and Y can be real and/or complex numbers.
Power Verify Sub
Display some results of calling the Power function with some real number arguments to help verify that the function is working properly.
"Evaluate The Quadratic Expression" Evaluates the expression A X^2 + B X + C where A, B, C, and X are real and/or complex numbers.
"Root Of Quadratic Equation" Returns one of the three roots of the cubic equation. Solves the equation A X^2 + B X + C = 0 for X. Real solutions are returned as a numeric value and complex solutions are returned as a complex number string.
Run a benchmark of the QuadraticRoot function.
Print some samples of the QuadraticRoot function.
Real To Complex Function
"Real Numbers To Complex Number" Construct a complex number string from two real numbers.
Real Part Function
"Real Part" Return the real part of a complex (or real) number. Function returns vX unchanged if vX is already a real number.
Sign Function
Sign of a real or complex number.
Sqrt Function
"Square Root" Square root of a real or complex number.
Square Function
Square of a real or complex number.
Subtract Function
"Subtraction" or "Minus" Real or Complex subtraction of two numbers.
Complex Numbers Benchmark Sub
Run a benchmark of many of the complex number routines.

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