home
 
 index of namespace default
 
 index of project tkmath
 
 index of module tkmath

Class tkmath.Math


SynopsisThis class is mainly for importing the most commonly used math constants from math.h

  Base classes:
  Methods:
  Constants:
Method getDblEpsilonUnits
Returns current unit range for relative Double comparison, default is 100
Signature
getDblEpsilonUnits():int
Returns
intcurrent range

 
 top of page
Method getDblEpsilonZeroRange
Returns the epsilon range for relative zero Double comparison, default is 0.000000000001
Signature
getDblEpsilonZeroRange():Double
Returns
DoubleDouble epsilon range

 
 top of page
Method getFltEpsilonUnits
Returns current unit range for relative float comparison, default is 10
Signature
getFltEpsilonUnits():int
Returns
intcurrent range

 
 top of page
Method getFltEpsilonZeroRange
Returns the epsilon range for relative zero float comparison, default is 0.000001
Signature
getFltEpsilonZeroRange():float
Returns
floatfloat epsilon range

 
 top of page
Method setDblEpsilonUnits
Set the relative unit range for relative Double comparison
Signature
setDblEpsilonUnits(intu)
Arguments
intunew range

 
 top of page
Method setDblEpsilonZeroRange
Set the relative tolerance for Double epsilon range checks
Signature
setDblEpsilonZeroRange(Doublea)
Arguments
Doubleanew double epsilon range, must be bigger than zero

 
 top of page
Method setFltEpsilonUnits
Set the relative unit range for relative float comparison
Signature
setFltEpsilonUnits(intu)
Arguments
intunew range

 
 top of page
Method setFltEpsilonZeroRange
Set the relative tolerance for float epsilon range checks
Signature
setFltEpsilonZeroRange(floata)
Arguments
floatanew float epsilon range, must be bigger than zero

 
 top of page
Constant M_1_PI (float)
1/π=0.31830988618379067154f
Constant M_2_PI (float)
2/π=0.63661977236758134308f
Constant M_2_SQRTPI (float)
2/√π=1.12837916709551257390f
Constant M_E (float)
e=2.7182818284590452354f
Constant M_LN10 (float)
log(10)=2.30258509299404568402f
Constant M_LN2 (float)
log(2)=0.69314718055994530942f
Constant M_LOG10E (float)
log10(e)=0.43429448190325182765f
Constant M_LOG2E (float)
log2(e)=1.4426950408889634074f
Constant M_PI (float)
π=3.14159265358979323846f
Constant M_PI_2 (float)
π/2=1.57079632679489661923f
Constant M_PI_4 (float)
π/4=0.78539816339744830962f
Constant M_SQRT1_2 (float)
1/√2=0.70710678118654752440f
Constant M_SQRT2 (float)
√2=1.41421356237309504880f

 

Project Modules:tkmath 
Project Classes:Complexd , Complexf , Math , Matrix , Matrix2d , Matrix2f , Matrix3d , Matrix3f , Matrix4d , Matrix4f , Quaterniond , Quaternionf , Vector2d , Vector2f , Vector3d , Vector3f , Vector4d , Vector4f 
Project Functions:absd , absf , acoscd , acoscf , acosd , acosf , acoshcd , acoshcf , acoshd , acoshf , asincd , asincf , asind , asinf , asinhcd , asinhcf , asinhd , asinhf , atan2d , atan2f , atancd , atancf , atand , atanf , atanhcd , atanhcf , atanhd , atanhf , ceild , ceilf , complexd , complexf , complexfPolar , complexfPolar , coscd , coscf , cosd , cosf , coshcd , coshcf , coshd , coshf , exp10d , exp10f , exp2d , exp2f , expcd , expcf , expd , expf , floord , floorf , hypotd , hypotf , log10d , log10f , log2d , log2f , logcd , logcf , logd , logf , matrix2d , matrix2f , matrix3d , matrix3f , matrix4d , matrix4f , modd , modf , powcd , powcf , powd , powf , quaterniond , quaternionf , relCmpd , relCmpf , relErrCmpd , relErrCmpf , roundd , roundf , sincd , sincf , sind , sinf , sinhcd , sinhcf , sinhd , sinhf , sqrtcd , sqrtcf , sqrtd , sqrtf , tancf , tancf , tand , tanf , tanhcd , tanhcf , tanhd , tanhf , vector2d , vector2f , vector3d , vector3f , vector4d , vector4f 
All Namespaces:default , ui 
All Projects:core , debugtext , tkfreetype2 , tkmath , tkmidi , tkopengl , tkportaudio , tksdl , tkui , tkunit 


auto-generated by "DOG", the TkScript document generator. Mon, 28/Dec/2015 13:15:54