Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
Loading...
Searching...
No Matches
e32math.h File Reference
#include <e32std.h>
#include <e32math.inl>

Go to the source code of this file.

Classes

class  TRealX
 A class encapsulating an extended precision real value. More...
 
struct  SPoly
 A structure containing the set of coefficients for a polynomial. More...
 
class  Math
 A collection of mathematical functions. More...
 

Variables

const TInt KMaxPrecision =15
 
const TInt KPrecisionLimit =12
 This constant specifies the maximum number of significant digits available with floating point computations.
 
const TInt KIEEEDoubleInjectivePrecision =17
 Let D be the set of real numbers exactly representable by an IEEE-754 'double' For any positive integer n let X_n be the set of real numbers with an exact decimal representation using n significant digits.
 
const TInt KMantissaBits =53
 
const TInt KMaxExponent =1023
 
const TInt KExponentBias =1022
 
const TInt KSpecialExponent =2047
 
const TInt KTReal32MaxExponent =128
 The maximum exponent for a 32-bit floating point number.
 
const TInt KTReal32MinExponent =-125
 The minimum exponent for a 32-bit floating point number.
 
const TInt KTReal32ExponentBias =126
 
const TInt KTReal32SpecialExponent =255
 
const TInt KTReal32ZeroExponent =0
 A zero exponent value for a 32-bit floating point number.
 
const TInt KTReal64MaxExponent =1024
 The maximum exponent for a 64-bit floating point number.
 
const TInt KTReal64MinExponent =-1021
 The minimum exponent for a 64-bit floating point number.
 
const TInt KTReal64ExponentBias =1022
 
const TInt KTReal64SpecialExponent =2047
 
const TInt KTReal64ZeroExponent =0
 A zero exponent value for a 64-bit floating point number.
 
const TReal KMinTReal =2.2250738585072015E-308
 The minimum value of a 64-bit floating point number.
 
const TReal KMaxTReal =1.7976931348623157E+308
 The maximum value of a 64-bit floating point number.
 
const TReal32 KMinTReal32 =1.17549435E-38f
 The minimum value of a 32-bit floating point number.
 
const TReal32 KMaxTReal32 =3.4028234663852885981170418348452e+38f
 The maximum value of a 32-bit floating point number.
 
const TReal64 KMinTReal64 =2.2250738585072015E-308
 The minimum value of a 64-bit floating point number.
 
const TReal64 KMaxTReal64 =1.7976931348623157E+308
 The maximum value of a 64-bit floating point number.
 
const TReal KSqhf =0.70710678118654752440
 
const TReal KRln2 =1.4426950408889634
 Log 2 to the base "e".
 
const TReal KRln10 =0.4342944819032518
 Log 10 to the base "e".
 
const TReal KRlg2 =0.3010299956639812
 Log 2 to the base 10.
 
const TReal KPi =3.1415926535897932
 The mathematical constant Pi.
 
const TReal KPiInv =0.3183098861837907
 The reciprocal of the mathematical constant Pi.
 
const TReal KPiBy2 =1.5707963267948966
 The mathematical constant Pi divided by 2.
 
const TReal KDrpi =0.6366197723675813
 Not used.
 
const TReal KSqt3 =1.7320508075688773
 The square root of 3.
 
const TReal KMsq3 =0.2679491924311227
 
const TReal KRadToDeg =57.29577951308232
 The multiplying factor to convert radians to degrees.
 
const TReal KDegToRad =0.017453292519943296
 The multiplying factor to convert degrees to radians.
 

Variable Documentation

◆ KDegToRad

const TReal KDegToRad =0.017453292519943296

The multiplying factor to convert degrees to radians.

API status
Published to all clients. Released API.

Definition at line 384 of file e32math.h.

◆ KDrpi

const TReal KDrpi =0.6366197723675813

Not used.

API status
Published to all clients. Released API.

Definition at line 342 of file e32math.h.

◆ KExponentBias

const TInt KExponentBias =1022
API status
Published to all clients. Released API.

Definition at line 79 of file e32math.h.

◆ KIEEEDoubleInjectivePrecision

const TInt KIEEEDoubleInjectivePrecision =17

Let D be the set of real numbers exactly representable by an IEEE-754 'double' For any positive integer n let X_n be the set of real numbers with an exact decimal representation using n significant digits.

Let r_n : D -> X_n be defined by r_n(x)=y such that |y-x| = inf { |z-x| : z in X_n } and (in the case where two such y exist) that the last significant digit in the decimal representation of y is even. This constant is the least n such that r_n is injective.

API status
Published to all clients. Released API.

Definition at line 57 of file e32math.h.

◆ KMantissaBits

const TInt KMantissaBits =53
API status
Published to all clients. Released API.

Definition at line 65 of file e32math.h.

◆ KMaxExponent

const TInt KMaxExponent =1023
API status
Published to all clients. Released API.

Definition at line 72 of file e32math.h.

◆ KMaxPrecision

const TInt KMaxPrecision =15
API status
Published to all clients. Released API.

Definition at line 29 of file e32math.h.

◆ KMaxTReal

const TReal KMaxTReal =1.7976931348623157E+308

The maximum value of a 64-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 209 of file e32math.h.

◆ KMaxTReal32

const TReal32 KMaxTReal32 =3.4028234663852885981170418348452e+38f

The maximum value of a 32-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 232 of file e32math.h.

◆ KMaxTReal64

const TReal64 KMaxTReal64 =1.7976931348623157E+308

The maximum value of a 64-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 255 of file e32math.h.

◆ KMinTReal

const TReal KMinTReal =2.2250738585072015E-308

The minimum value of a 64-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 198 of file e32math.h.

◆ KMinTReal32

const TReal32 KMinTReal32 =1.17549435E-38f

The minimum value of a 32-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 221 of file e32math.h.

◆ KMinTReal64

const TReal64 KMinTReal64 =2.2250738585072015E-308

The minimum value of a 64-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 244 of file e32math.h.

◆ KMsq3

const TReal KMsq3 =0.2679491924311227
API status
Published to all clients. Released API.

Definition at line 362 of file e32math.h.

◆ KPi

const TReal KPi =3.1415926535897932

The mathematical constant Pi.

API status
Published to all clients. Released API.

Definition at line 309 of file e32math.h.

◆ KPiBy2

const TReal KPiBy2 =1.5707963267948966

The mathematical constant Pi divided by 2.

API status
Published to all clients. Released API.

Definition at line 331 of file e32math.h.

◆ KPiInv

const TReal KPiInv =0.3183098861837907

The reciprocal of the mathematical constant Pi.

API status
Published to all clients. Released API.

Definition at line 320 of file e32math.h.

◆ KPrecisionLimit

const TInt KPrecisionLimit =12

This constant specifies the maximum number of significant digits available with floating point computations.

Rounding and string formatting methods will not use more digits than this.

API status
Published to all clients. Released API.

Definition at line 40 of file e32math.h.

◆ KRadToDeg

const TReal KRadToDeg =57.29577951308232

The multiplying factor to convert radians to degrees.

API status
Published to all clients. Released API.

Definition at line 373 of file e32math.h.

◆ KRlg2

const TReal KRlg2 =0.3010299956639812

Log 2 to the base 10.

API status
Published to all clients. Released API.

Definition at line 298 of file e32math.h.

◆ KRln10

const TReal KRln10 =0.4342944819032518

Log 10 to the base "e".

API status
Published to all clients. Released API.

Definition at line 287 of file e32math.h.

◆ KRln2

const TReal KRln2 =1.4426950408889634

Log 2 to the base "e".

API status
Published to all clients. Released API.

Definition at line 276 of file e32math.h.

◆ KSpecialExponent

const TInt KSpecialExponent =2047
API status
Published to all clients. Released API.

Definition at line 86 of file e32math.h.

◆ KSqhf

const TReal KSqhf =0.70710678118654752440
API status
Published to all clients. Released API.

Definition at line 265 of file e32math.h.

◆ KSqt3

const TReal KSqt3 =1.7320508075688773

The square root of 3.

API status
Published to all clients. Released API.

Definition at line 353 of file e32math.h.

◆ KTReal32ExponentBias

const TInt KTReal32ExponentBias =126
API status
Published to all clients. Released API.

Definition at line 116 of file e32math.h.

◆ KTReal32MaxExponent

const TInt KTReal32MaxExponent =128

The maximum exponent for a 32-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 98 of file e32math.h.

◆ KTReal32MinExponent

const TInt KTReal32MinExponent =-125

The minimum exponent for a 32-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 109 of file e32math.h.

◆ KTReal32SpecialExponent

const TInt KTReal32SpecialExponent =255
API status
Published to all clients. Released API.

Definition at line 123 of file e32math.h.

◆ KTReal32ZeroExponent

const TInt KTReal32ZeroExponent =0

A zero exponent value for a 32-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 134 of file e32math.h.

◆ KTReal64ExponentBias

const TInt KTReal64ExponentBias =1022
API status
Published to all clients. Released API.

Definition at line 166 of file e32math.h.

◆ KTReal64MaxExponent

const TInt KTReal64MaxExponent =1024

The maximum exponent for a 64-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 146 of file e32math.h.

◆ KTReal64MinExponent

const TInt KTReal64MinExponent =-1021

The minimum exponent for a 64-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 157 of file e32math.h.

◆ KTReal64SpecialExponent

const TInt KTReal64SpecialExponent =2047
API status
Published to all clients. Released API.

Definition at line 175 of file e32math.h.

◆ KTReal64ZeroExponent

const TInt KTReal64ZeroExponent =0

A zero exponent value for a 64-bit floating point number.

API status
Published to all clients. Released API.

Definition at line 186 of file e32math.h.