OCMath
- group OCMath
Functions
-
double cargument(double _Complex z)
Calculates the argument (or phase) of a complex number.
- Parameters:
z – The complex number.
- Returns:
The argument of z in radians.
-
double _Complex ccbrt(double _Complex z)
Calculates the principal complex cube root of a complex number.
- Parameters:
z – The complex number.
- Returns:
The principal complex cube root of z.
-
double _Complex cqtrt(double _Complex z)
Calculates the principal complex fourth root of a complex number.
- Parameters:
z – The complex number.
- Returns:
The principal complex fourth root of z.
-
OCComparisonResult OCCompareFloatValues(float value, float otherValue)
Compares two float values.
- Parameters:
value – The first float value.
otherValue – The second float value.
- Returns:
kOCCompareLessThan if value < otherValue, kOCCompareEqualTo if value == otherValue, kOCCompareGreaterThan if value > otherValue.
-
OCComparisonResult OCCompareDoubleValues(double value, double otherValue)
Compares two double values.
- Parameters:
value – The first double value.
otherValue – The second double value.
- Returns:
kOCCompareLessThan if value < otherValue, kOCCompareEqualTo if value == otherValue, kOCCompareGreaterThan if value > otherValue.
-
OCComparisonResult OCCompareDoubleValuesLoose(double value, double otherValue)
Compares two double values with a tolerance (loose comparison).
- Parameters:
value – The first double value.
otherValue – The second double value.
- Returns:
kOCCompareEqualTo if the absolute difference is within a small epsilon, otherwise the result of a direct comparison.
-
OCComparisonResult OCCompareFloatValuesLoose(float value, float otherValue)
Compares two float values with a tolerance (loose comparison).
- Parameters:
value – The first float value.
otherValue – The second float value.
- Returns:
kOCCompareEqualTo if the absolute difference is within a small epsilon, otherwise the result of a direct comparison.
-
double OCDoubleFloor(double value)
Computes the floor of a double value.
- Parameters:
value – The double value.
- Returns:
The largest integer value not greater than value.
-
double OCDoubleCeil(double value)
Computes the ceiling of a double value.
- Parameters:
value – The double value.
- Returns:
The smallest integer value not less than value.
-
double _Complex complex_sine(double _Complex angle)
Calculates the complex sine of a complex angle.
- Parameters:
angle – The complex angle in radians.
- Returns:
The complex sine of the angle.
-
double _Complex complex_cosine(double _Complex angle)
Calculates the complex cosine of a complex angle.
- Parameters:
angle – The complex angle in radians.
- Returns:
The complex cosine of the angle.
-
double _Complex complex_tangent(double _Complex angle)
Calculates the complex tangent of a complex angle.
- Parameters:
angle – The complex angle in radians.
- Returns:
The complex tangent of the angle.
-
double _Complex raise_to_integer_power(double _Complex x, long power)
Raises a complex number to an integer power.
- Parameters:
x – The complex base.
power – The integer exponent.
- Returns:
The complex number x raised to the power of power.
-
double cargument(double _Complex z)