TestCenter Reference
TestSupport.Math Namespace Reference

Basic math functions. More...

Functions

def compareFloatEqual (a, b, epsilon=0.0001)
 Compare the given float values or lists of float values for equality. More...
 
def compareFloatLessThan (a, b)
 Compare the two given float values if the first is less than the second. More...
 
def compareFloatLessThanOrEqual (a, b, epsilon=0.0001)
 Compare the two given float values if the first is less than or equal to the second. More...
 

Detailed Description

Basic math functions.

Function Documentation

◆ compareFloatEqual()

def TestSupport.Math.compareFloatEqual (   a,
  b,
  epsilon = 0.0001 
)

Compare the given float values or lists of float values for equality.

@params a The first float value or list of float values or list of lists. @params a The second float value or list of float values or list of lists. @params epsilon The epsilon value to use.

Returns
True if values match.

Definition at line 45 of file Math.py.

Referenced by TestSupport.Math.compareFloatLessThanOrEqual().

◆ compareFloatLessThan()

def TestSupport.Math.compareFloatLessThan (   a,
  b 
)

Compare the two given float values if the first is less than the second.

Parameters
aThe first value.
bThe second value.
Returns
True if first value is less than the second.

Definition at line 73 of file Math.py.

Referenced by TestSupport.Math.compareFloatLessThanOrEqual().

◆ compareFloatLessThanOrEqual()

def TestSupport.Math.compareFloatLessThanOrEqual (   a,
  b,
  epsilon = 0.0001 
)

Compare the two given float values if the first is less than or equal to the second.

Parameters
aThe first value.
bThe second value.
epsilonEpsilon used for float comparison.
Returns
True if first value is less than or equal to the second.

Definition at line 102 of file Math.py.

References TestSupport.Math.compareFloatEqual(), and TestSupport.Math.compareFloatLessThan().