Math Class Reference

class Math

A collection of mathematical functions.

Public Member Functions
IMPORT_C TIntACos(TReal &, const TReal &)
IMPORT_C TIntASin(TReal &, const TReal &)
IMPORT_C TIntATan(TReal &, const TReal &)
IMPORT_C TIntATan(TReal &, const TReal &, const TReal &)
IMPORT_C TIntCos(TReal &, const TReal &)
IMPORT_C Int64DivMod64(Int64, Int64, Int64 &)
IMPORT_C TIntDtoR(TReal &, const TDesC &, TInt &, const TChar)
IMPORT_C TIntExp(TReal &, const TReal &)
IMPORT_C TRealFRand(TInt64 &)
IMPORT_C TIntFrac(TReal &, const TReal &)
IMPORT_C TIntInt(TReal &, const TReal &)
IMPORT_C TIntInt(TInt16 &, const TReal &)
IMPORT_C TIntInt(TInt32 &, const TReal &)
IMPORT_C TBoolIsFinite(const TReal &)
IMPORT_C TBoolIsInfinite(const TReal &)
IMPORT_C TBoolIsNaN(const TReal &)
IMPORT_C TBoolIsZero(const TReal &)
IMPORT_C TIntLn(TReal &, const TReal &)
IMPORT_C TIntLog(TReal &, const TReal &)
IMPORT_C TIntMod(TReal &, const TReal &, const TReal &)
IMPORT_C voidMul64(Int64, Int64, Int64 &, Uint64 &)
TInt MultPow10X(TRealX &, TInt)
IMPORT_C TRealPoly(TReal, const SPoly *)
IMPORT_C voidPolyX(TRealX &, const TRealX &, TInt, const TRealX *)
IMPORT_C TIntPow(TReal &, const TReal &, const TReal &)
IMPORT_C TIntPow10(TReal &, const TInt)
IMPORT_C TIntRand(TInt64 &)
IMPORT_C TUint32Random()
IMPORT_C voidRandom(TDes8 &)
IMPORT_C voidRandomL(TDes8 &)
IMPORT_C TUint32RandomL()
IMPORT_C TIntRound(TReal &, const TReal &, TInt)
IMPORT_C TIntSin(TReal &, const TReal &)
IMPORT_C TIntSqrt(TReal &, const TReal &)
IMPORT_C TIntTan(TReal &, const TReal &)
IMPORT_C Uint64UDivMod64(Uint64, Uint64, Uint64 &)
IMPORT_C voidUMul64(Uint64, Uint64, Uint64 &, Uint64 &)
Private Member Functions
IMPORT_C voidSetInfinite(TReal &, TInt)
IMPORT_C voidSetNaN(TReal &)
IMPORT_C voidSetZero(TReal &, TInt)

Member Functions Documentation

ACos(TReal &, const TReal &)

IMPORT_C TIntACos(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

ASin(TReal &, const TReal &)

IMPORT_C TIntASin(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

ATan(TReal &, const TReal &)

IMPORT_C TIntATan(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

ATan(TReal &, const TReal &, const TReal &)

IMPORT_C TIntATan(TReal &aTrg,
const TReal &aSrcY,
const TReal &aSrcX
)[static]

Parameters

TReal & aTrg
const TReal & aSrcY
const TReal & aSrcX

Cos(TReal &, const TReal &)

IMPORT_C TIntCos(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

DivMod64(Int64, Int64, Int64 &)

IMPORT_C Int64DivMod64(Int64aDividend,
Int64aDivisor,
Int64 &aRemainder
)[static]

Parameters

Int64 aDividend
Int64 aDivisor
Int64 & aRemainder

DtoR(TReal &, const TDesC &, TInt &, const TChar)

IMPORT_C TIntDtoR(TReal &aTrg,
const TDesC &aSrc,
TInt &aPos,
const TCharaPoint
)[static]

This function is not implemented by Symbian OS.

Parameters

TReal & aTrg
const TDesC & aSrc
TInt & aPos
const TChar aPoint

Exp(TReal &, const TReal &)

IMPORT_C TIntExp(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

FRand(TInt64 &)

IMPORT_C TRealFRand(TInt64 &aSeed)[static]

Parameters

TInt64 & aSeed

Frac(TReal &, const TReal &)

IMPORT_C TIntFrac(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

Int(TReal &, const TReal &)

IMPORT_C TIntInt(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

Int(TInt16 &, const TReal &)

IMPORT_C TIntInt(TInt16 &aTrg,
const TReal &aSrc
)[static]

Parameters

TInt16 & aTrg
const TReal & aSrc

Int(TInt32 &, const TReal &)

IMPORT_C TIntInt(TInt32 &aTrg,
const TReal &aSrc
)[static]

Parameters

TInt32 & aTrg
const TReal & aSrc

IsFinite(const TReal &)

IMPORT_C TBoolIsFinite(const TReal &aVal)[static]

Parameters

const TReal & aVal

IsInfinite(const TReal &)

IMPORT_C TBoolIsInfinite(const TReal &aVal)[static]

Parameters

const TReal & aVal

IsNaN(const TReal &)

IMPORT_C TBoolIsNaN(const TReal &aVal)[static]

Parameters

const TReal & aVal

IsZero(const TReal &)

IMPORT_C TBoolIsZero(const TReal &aVal)[static]

Parameters

const TReal & aVal

Ln(TReal &, const TReal &)

IMPORT_C TIntLn(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

Log(TReal &, const TReal &)

IMPORT_C TIntLog(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

Mod(TReal &, const TReal &, const TReal &)

IMPORT_C TIntMod(TReal &aTrg,
const TReal &aSrc,
const TReal &aModulus
)[static]

Parameters

TReal & aTrg
const TReal & aSrc
const TReal & aModulus

Mul64(Int64, Int64, Int64 &, Uint64 &)

IMPORT_C voidMul64(Int64aX,
Int64aY,
Int64 &aOutH,
Uint64 &aOutL
)[static]

Parameters

Int64 aX
Int64 aY
Int64 & aOutH
Uint64 & aOutL

MultPow10X(TRealX &, TInt)

TInt MultPow10X(TRealX &aTrg,
TIntaPower
)[static]

Parameters

TRealX & aTrg
TInt aPower

Poly(TReal, const SPoly *)

IMPORT_C TRealPoly(TRealaVal,
const SPoly *aPoly
)[static]

Parameters

TReal aVal
const SPoly * aPoly

PolyX(TRealX &, const TRealX &, TInt, const TRealX *)

IMPORT_C voidPolyX(TRealX &aY,
const TRealX &aX,
TIntaDeg,
const TRealX *aCoef
)[static]

Parameters

TRealX & aY
const TRealX & aX
TInt aDeg
const TRealX * aCoef

Pow(TReal &, const TReal &, const TReal &)

IMPORT_C TIntPow(TReal &aTrg,
const TReal &aSrc,
const TReal &aPower
)[static]

Parameters

TReal & aTrg
const TReal & aSrc
const TReal & aPower

Pow10(TReal &, const TInt)

IMPORT_C TIntPow10(TReal &aTrg,
const TIntexp
)[static]

Parameters

TReal & aTrg
const TInt exp

Rand(TInt64 &)

IMPORT_C TIntRand(TInt64 &aSeed)[static]

Parameters

TInt64 & aSeed

Random()

IMPORT_C TUint32Random()[static]

Random(TDes8 &)

IMPORT_C voidRandom(TDes8 &aRandomValue)[static]

Parameters

TDes8 & aRandomValue

RandomL(TDes8 &)

IMPORT_C voidRandomL(TDes8 &aRandomValue)[static]

Parameters

TDes8 & aRandomValue

RandomL()

IMPORT_C TUint32RandomL()[static]

Round(TReal &, const TReal &, TInt)

IMPORT_C TIntRound(TReal &aTrg,
const TReal &aSrc,
TIntaDecimalPlaces
)[static]

Parameters

TReal & aTrg
const TReal & aSrc
TInt aDecimalPlaces

SetInfinite(TReal &, TInt)

IMPORT_C voidSetInfinite(TReal &aVal,
TIntaSign
)[private, static]

Parameters

TReal & aVal
TInt aSign

SetNaN(TReal &)

IMPORT_C voidSetNaN(TReal &aVal)[private, static]

Parameters

TReal & aVal

SetZero(TReal &, TInt)

IMPORT_C voidSetZero(TReal &aVal,
TIntaSign = 0
)[private, static]

Parameters

TReal & aVal
TInt aSign = 0

Sin(TReal &, const TReal &)

IMPORT_C TIntSin(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

Sqrt(TReal &, const TReal &)

IMPORT_C TIntSqrt(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

Tan(TReal &, const TReal &)

IMPORT_C TIntTan(TReal &aTrg,
const TReal &aSrc
)[static]

Parameters

TReal & aTrg
const TReal & aSrc

UDivMod64(Uint64, Uint64, Uint64 &)

IMPORT_C Uint64UDivMod64(Uint64aDividend,
Uint64aDivisor,
Uint64 &aRemainder
)[static]

Parameters

Uint64 aDividend
Uint64 aDivisor
Uint64 & aRemainder

UMul64(Uint64, Uint64, Uint64 &, Uint64 &)

IMPORT_C voidUMul64(Uint64aX,
Uint64aY,
Uint64 &aOutH,
Uint64 &aOutL
)[static]

Parameters

Uint64 aX
Uint64 aY
Uint64 & aOutH
Uint64 & aOutL