Global Functions in Namespace math
in Sourcefile math.hxx
- acosh
- double acosh(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_acosh.
- approxAdd
- double approxAdd(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Add two values.
- Description
- If signs differ and the absolute values are equal according to approxEqual()
the method returns 0.0 instead of calculating the sum.
If you wanted to sum up multiple values it would be convenient not to call
approxAdd() for each value but instead remember the first value not equal to
0.0, add all other values using normal + operator, and with the result and
the remembered value call approxAdd().
- approxCeil
- double approxCeil(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- ceil()method taking approxValue() into account.
- Description
- Use for expected integer values being calculated by double functions.
- approxEqual
- bool approxEqual(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Test equality of two values with an accuracy of the magnitude of the
given values scaled by 2^-48 (4 bits roundoff stripped).
- ATTENTION!
-
approxEqual( value!=0.0, 0.0 ) _never_ yields true.
- approxFloor
- double approxFloor(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- floor()method taking approxValue() into account.
- Description
- Use for expected integer values being calculated by double functions.
- approxSub
- double approxSub(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Substract two values (a-b).
- Description
- If signs are identical and the values are equal according to approxEqual()
the method returns 0.0 instead of calculating the substraction.
- approxValue
- double approxValue(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_approxValue.
- asinh
- double asinh(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_asinh.
- atanh
- double atanh(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_atanh.
- cos
- double cos(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Safe cos(), returns NAN if not valid.
- doubleToString
- rtl::OString doubleToString(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_doubleToString.
- doubleToString
- rtl::OString doubleToString(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_doubleToString, with no grouping.
- doubleToUString
- rtl::OUString doubleToUString(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_doubleToUString.
- doubleToUString
- rtl::OUString doubleToUString(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_doubleToUString, with no grouping.
- doubleToUStringBuffer
- void doubleToUStringBuffer(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_doubleToUString that appends to an
rtl::OUStringBuffer.
- doubleToUStringBuffer
- void doubleToUStringBuffer(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_doubleToUString that appends to an
rtl::OUStringBuffer, with no grouping.
- erf
- double erf(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_erf.
- erfc
- double erfc(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_erfc.
- expm1
- double expm1(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_expm1.
- isFinite
- bool isFinite(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Tests whether a value is neither INF nor NAN.
- isInf
- bool isInf(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- If a value represents +INF or -INF.
- Description
- The sign bit may be queried with isSignBitSet().
If isFinite(d)==false and isInf(d)==false then NAN.
- isNan
- bool isNan(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Test on any QNAN or SNAN.
- isSignBitSet
- bool isSignBitSet(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- If the sign bit is set.
- isValidArcArg
- bool isValidArcArg(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- If a value is a valid argument for sin(), cos(), tan().
- Description
- IEEE 754 specifies that absolute values up to 2^64 (=1.844e19) for the
radian must be supported by trigonometric functions. Unfortunately, at
least on x86 architectures, the FPU doesn't generate an error pattern for
values >2^64 but produces erroneous results instead and sets only the
"invalid operation" (IM) flag in the status word :-( Thus the application
has to handle it itself.
- log1p
- double log1p(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_log1p.
- pow10Exp
- double pow10Exp(
double |
fValue, |
int |
nExp ); |
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_pow10Exp.
- round
- double round(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_round.
- setInf
- void setInf(
double * |
pd, |
bool |
bNegative ); |
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Set to +INF if bNegative==false or -INF if bNegative==true.
- setNan
- void setNan(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Set a QNAN.
- sin
- double sin(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Safe sin(), returns NAN if not valid.
- stringToDouble
- double stringToDouble(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_stringToDouble.
- stringToDouble
- double stringToDouble(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- A wrapper around rtl_math_uStringToDouble.
- tan
- double tan(
-
virtual |
abstract |
const |
volatile |
template |
static |
inline |
C-linkage |
NO |
NO |
NO |
NO |
NO |
NO |
YES |
NO |
- Summary
- Safe tan(), returns NAN if not valid.
Top of Page
Copyright © 2012, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.