Public Function Chi( _ ByVal vA As Variant _ , ByVal vX As Variant _ , ByVal vB As Variant _ ) As Variant
A < X < B: Return 1 A = X or A = B: Return .5 X < A or X > B: Return 0Examples:
Chi(-5, 7, 10) = 1 Chi(-5, 10, 10) = .5 Chi(-5, 10, -20) = 0See also:
ChiVerify Subroutine CosH FunctionvA: The lower bound of the range against which vX is tested. Function returns Null if vA is Null or cannot be fixed up to a number.
vX: The number which is tested to see if it is within, on the bounds of, or outside the range from vA to vB. Function returns Null if vX is Null or cannot be fixed up to a number.
vB: The upper bound of the range against which vX is tested. Function returns Null if vB is Null or cannot be fixed up to a number.
v1.5 Note: The behavior of this function is undefined when A > B.
Copyright 1996-1999 Entisoft
Entisoft Tools is a trademark of Entisoft.