GPS4Palm

Source Code Documentation


MathLib.h File Reference

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MathLibName   "MathLib"
#define LibType   'libr'
#define MathLibCreator   'MthL'
#define MathLibVersion   1

Enumerations

enum  MathLibErrorCode { mlErrNone = 0, mlErrOldVersion, mlErrNotOpen, mlErrNoMemory }

Functions

Err MathLibOpen (UInt refnum, UInt version) SYS_TRAP(sysLibTrapOpen)
Err MathLibClose (UInt refnum, UIntPtr usecountP) SYS_TRAP(sysLibTrapClose)
Err MathLibSleep (UInt refnum) SYS_TRAP(sysLibTrapSleep)
Err MathLibWake (UInt refnum) SYS_TRAP(sysLibTrapWake)
double acos (double x)
double asin (double x)
double atan (double x)
double atan2 (double y, double x)
double cos (double x)
double sin (double x)
double tan (double x)
void sincos (double x, double *sinx, double *cosx)
double cosh (double x)
double sinh (double x)
double tanh (double x)
double acosh (double x)
double asinh (double x)
double atanh (double x)
double exp (double x)
double frexp (double x, Int *exponent)
double ldexp (double x, Int exponent)
double log (double x)
double log10 (double x)
double modf (double x, double *intpart)
double expm1 (double x)
double log1p (double x)
double logb (double x)
double log2 (double x)
double pow (double x, double y)
double sqrt (double x)
double hypot (double x, double y)
double cbrt (double x)
double ceil (double x)
double fabs (double x)
double floor (double x)
double fmod (double x, double y)
Int isinf (double x)
Int finite (double x)
double scalbn (double x, Int exponent)
double drem (double x, double y)
double significand (double x)
double copysign (double x, double y)
Int isnan (double x)
Int ilogb (double x)
double rint (double x)
double nextafter (double x, double y)
double remainder (double x, double y)
double scalb (double x, double exponent)
double round (double x)
double trunc (double x)
ULong signbit (double x)
Err MathLibACos (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom)
Err MathLibASin (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+1)
Err MathLibATan (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+2)
Err MathLibATan2 (UInt refnum, double y, double x, double *result) SYS_TRAP(sysLibTrapCustom+3)
Err MathLibCos (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+4)
Err MathLibSin (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+5)
Err MathLibTan (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+6)
Err MathLibSinCos (UInt refnum, double x, double *sinx, double *cosx) SYS_TRAP(sysLibTrapCustom+7)
Err MathLibCosH (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+8)
Err MathLibSinH (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+9)
Err MathLibTanH (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+10)
Err MathLibACosH (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+11)
Err MathLibASinH (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+12)
Err MathLibATanH (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+13)
Err MathLibExp (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+14)
Err MathLibFrExp (UInt refnum, double x, double *fraction, Int *exponent) SYS_TRAP(sysLibTrapCustom+15)
Err MathLibLdExp (UInt refnum, double x, Int exponent, double *result) SYS_TRAP(sysLibTrapCustom+16)
Err MathLibLog (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+17)
Err MathLibLog10 (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+18)
Err MathLibModF (UInt refnum, double x, double *intpart, double *fracpart) SYS_TRAP(sysLibTrapCustom+19)
Err MathLibExpM1 (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+20)
Err MathLibLog1P (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+21)
Err MathLibLogB (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+22)
Err MathLibLog2 (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+23)
Err MathLibPow (UInt refnum, double x, double y, double *result) SYS_TRAP(sysLibTrapCustom+24)
Err MathLibSqrt (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+25)
Err MathLibHypot (UInt refnum, double x, double y, double *result) SYS_TRAP(sysLibTrapCustom+26)
Err MathLibCbrt (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+27)
Err MathLibCeil (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+28)
Err MathLibFAbs (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+29)
Err MathLibFloor (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+30)
Err MathLibFMod (UInt refnum, double x, double y, double *result) SYS_TRAP(sysLibTrapCustom+31)
Err MathLibIsInf (UInt refnum, double x, Int *result) SYS_TRAP(sysLibTrapCustom+32)
Err MathLibFinite (UInt refnum, double x, Int *result) SYS_TRAP(sysLibTrapCustom+33)
Err MathLibScalBN (UInt refnum, double x, Int exponent, double *result) SYS_TRAP(sysLibTrapCustom+34)
Err MathLibDRem (UInt refnum, double x, double y, double *result) SYS_TRAP(sysLibTrapCustom+35)
Err MathLibSignificand (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+36)
Err MathLibCopySign (UInt refnum, double x, double y, double *result) SYS_TRAP(sysLibTrapCustom+37)
Err MathLibIsNaN (UInt refnum, double x, Int *result) SYS_TRAP(sysLibTrapCustom+38)
Err MathLibILogB (UInt refnum, double x, Int *result) SYS_TRAP(sysLibTrapCustom+39)
Err MathLibRInt (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+40)
Err MathLibNextAfter (UInt refnum, double x, double y, double *result) SYS_TRAP(sysLibTrapCustom+41)
Err MathLibRemainder (UInt refnum, double x, double y, double *result) SYS_TRAP(sysLibTrapCustom+42)
Err MathLibScalB (UInt refnum, double x, double exponent, double *result) SYS_TRAP(sysLibTrapCustom+43)
Err MathLibRound (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+44)
Err MathLibTrunc (UInt refnum, double x, double *result) SYS_TRAP(sysLibTrapCustom+45)
Err MathLibSignBit (UInt refnum, double x, ULong *result) SYS_TRAP(sysLibTrapCustom+46)

Variables

UInt MathLibRef


Define Documentation

#define LibType   'libr'
 

Definition at line 37 of file MathLib.h.

#define MathLibCreator   'MthL'
 

Definition at line 38 of file MathLib.h.

#define MathLibName   "MathLib"
 

Definition at line 35 of file MathLib.h.

#define MathLibVersion   1
 

Definition at line 49 of file MathLib.h.


Enumeration Type Documentation

enum MathLibErrorCode
 

Enumerator:
mlErrNone 
mlErrOldVersion 
mlErrNotOpen 
mlErrNoMemory 

Definition at line 52 of file MathLib.h.


Function Documentation

double acos double  x  ) 
 

Definition at line 51 of file MathLib.c.

References MathLibACos(), and MathLibRef.

double acosh double  x  ) 
 

Definition at line 115 of file MathLib.c.

References MathLibACosH(), and MathLibRef.

double asin double  x  ) 
 

Definition at line 57 of file MathLib.c.

References MathLibASin(), and MathLibRef.

Referenced by gc_dist_sphere().

double asinh double  x  ) 
 

Definition at line 121 of file MathLib.c.

References MathLibASinH(), and MathLibRef.

double atan double  x  ) 
 

Definition at line 63 of file MathLib.c.

References MathLibATan(), and MathLibRef.

double atan2 double  y,
double  x
 

Definition at line 69 of file MathLib.c.

References MathLibATan2(), and MathLibRef.

Referenced by gc_course_sphere().

double atanh double  x  ) 
 

Definition at line 127 of file MathLib.c.

References MathLibATanH(), and MathLibRef.

double cbrt double  x  ) 
 

Definition at line 211 of file MathLib.c.

References MathLibCbrt(), and MathLibRef.

double ceil double  x  ) 
 

Definition at line 217 of file MathLib.c.

References MathLibCeil(), and MathLibRef.

double copysign double  x,
double  y
 

Definition at line 271 of file MathLib.c.

References MathLibCopySign(), and MathLibRef.

double cos double  x  ) 
 

Definition at line 75 of file MathLib.c.

References MathLibCos(), and MathLibRef.

Referenced by calcxy(), Convert_Geodetic_To_Transverse_Mercator(), Convert_Transverse_Mercator_To_Geodetic(), gc_course_sphere(), gc_dist_sphere(), and NavigationFormHandleEvent().

double cosh double  x  ) 
 

Definition at line 97 of file MathLib.c.

References MathLibCosH(), and MathLibRef.

double drem double  x,
double  y
 

Definition at line 259 of file MathLib.c.

References MathLibDRem(), and MathLibRef.

double exp double  x  ) 
 

Definition at line 133 of file MathLib.c.

References MathLibExp(), and MathLibRef.

Referenced by ReadFromGPS().

double expm1 double  x  ) 
 

Definition at line 169 of file MathLib.c.

References MathLibExpM1(), and MathLibRef.

double fabs double  x  ) 
 

Definition at line 223 of file MathLib.c.

References MathLibFAbs(), and MathLibRef.

Referenced by calcxy(), Convert_Geodetic_To_Transverse_Mercator(), and Convert_Transverse_Mercator_To_Geodetic().

Int finite double  x  ) 
 

Definition at line 247 of file MathLib.c.

References MathLibFinite(), and MathLibRef.

double floor double  x  ) 
 

Definition at line 229 of file MathLib.c.

References MathLibFloor(), and MathLibRef.

Referenced by Lat_To_UTM_Belt().

double fmod double  x,
double  y
 

Definition at line 235 of file MathLib.c.

References MathLibFMod(), and MathLibRef.

Referenced by gc_course_sphere().

double frexp double  x,
Int *  exponent
 

Definition at line 139 of file MathLib.c.

References MathLibFrExp(), and MathLibRef.

double hypot double  x,
double  y
 

Definition at line 205 of file MathLib.c.

References MathLibHypot(), and MathLibRef.

Int ilogb double  x  ) 
 

Definition at line 283 of file MathLib.c.

References MathLibILogB(), and MathLibRef.

Int isinf double  x  ) 
 

Definition at line 241 of file MathLib.c.

References MathLibIsInf(), and MathLibRef.

Int isnan double  x  ) 
 

Definition at line 277 of file MathLib.c.

References MathLibIsNaN(), and MathLibRef.

double ldexp double  x,
Int  exponent
 

Definition at line 145 of file MathLib.c.

References MathLibLdExp(), and MathLibRef.

double log double  x  ) 
 

Definition at line 151 of file MathLib.c.

References MathLibLog(), and MathLibRef.

double log10 double  x  ) 
 

Definition at line 157 of file MathLib.c.

References MathLibLog10(), and MathLibRef.

double log1p double  x  ) 
 

Definition at line 175 of file MathLib.c.

References MathLibLog1P(), and MathLibRef.

double log2 double  x  ) 
 

Definition at line 187 of file MathLib.c.

References MathLibLog2(), and MathLibRef.

double logb double  x  ) 
 

Definition at line 181 of file MathLib.c.

References MathLibLogB(), and MathLibRef.

Err MathLibACos UInt  refnum,
double  x,
double *  result
 

Referenced by acos().

Err MathLibACosH UInt  refnum,
double  x,
double *  result
 

Referenced by acosh().

Err MathLibASin UInt  refnum,
double  x,
double *  result
 

Referenced by asin().

Err MathLibASinH UInt  refnum,
double  x,
double *  result
 

Referenced by asinh().

Err MathLibATan UInt  refnum,
double  x,
double *  result
 

Referenced by atan().

Err MathLibATan2 UInt  refnum,
double  y,
double  x,
double *  result
 

Referenced by atan2().

Err MathLibATanH UInt  refnum,
double  x,
double *  result
 

Referenced by atanh().

Err MathLibCbrt UInt  refnum,
double  x,
double *  result
 

Referenced by cbrt().

Err MathLibCeil UInt  refnum,
double  x,
double *  result
 

Referenced by ceil().

Err MathLibClose UInt  refnum,
UIntPtr  usecountP
 

Err MathLibCopySign UInt  refnum,
double  x,
double  y,
double *  result
 

Referenced by copysign().

Err MathLibCos UInt  refnum,
double  x,
double *  result
 

Referenced by cos().

Err MathLibCosH UInt  refnum,
double  x,
double *  result
 

Referenced by cosh().

Err MathLibDRem UInt  refnum,
double  x,
double  y,
double *  result
 

Referenced by drem().

Err MathLibExp UInt  refnum,
double  x,
double *  result
 

Referenced by exp().

Err MathLibExpM1 UInt  refnum,
double  x,
double *  result
 

Referenced by expm1().

Err MathLibFAbs UInt  refnum,
double  x,
double *  result
 

Referenced by fabs().

Err MathLibFinite UInt  refnum,
double  x,
Int *  result
 

Referenced by finite().

Err MathLibFloor UInt  refnum,
double  x,
double *  result
 

Referenced by floor().

Err MathLibFMod UInt  refnum,
double  x,
double  y,
double *  result
 

Referenced by fmod().

Err MathLibFrExp UInt  refnum,
double  x,
double *  fraction,
Int *  exponent
 

Referenced by frexp().

Err MathLibHypot UInt  refnum,
double  x,
double  y,
double *  result
 

Referenced by hypot().

Err MathLibILogB UInt  refnum,
double  x,
Int *  result
 

Referenced by ilogb().

Err MathLibIsInf UInt  refnum,
double  x,
Int *  result
 

Referenced by isinf().

Err MathLibIsNaN UInt  refnum,
double  x,
Int *  result
 

Referenced by isnan().

Err MathLibLdExp UInt  refnum,
double  x,
Int  exponent,
double *  result
 

Referenced by ldexp().

Err MathLibLog UInt  refnum,
double  x,
double *  result
 

Referenced by log().

Err MathLibLog10 UInt  refnum,
double  x,
double *  result
 

Referenced by log10().

Err MathLibLog1P UInt  refnum,
double  x,
double *  result
 

Referenced by log1p().

Err MathLibLog2 UInt  refnum,
double  x,
double *  result
 

Referenced by log2().

Err MathLibLogB UInt  refnum,
double  x,
double *  result
 

Referenced by logb().

Err MathLibModF UInt  refnum,
double  x,
double *  intpart,
double *  fracpart
 

Referenced by modf().

Err MathLibNextAfter UInt  refnum,
double  x,
double  y,
double *  result
 

Referenced by nextafter().

Err MathLibOpen UInt  refnum,
UInt  version
 

Err MathLibPow UInt  refnum,
double  x,
double  y,
double *  result
 

Referenced by pow().

Err MathLibRemainder UInt  refnum,
double  x,
double  y,
double *  result
 

Referenced by remainder().

Err MathLibRInt UInt  refnum,
double  x,
double *  result
 

Referenced by rint().

Err MathLibRound UInt  refnum,
double  x,
double *  result
 

Referenced by round().

Err MathLibScalB UInt  refnum,
double  x,
double  exponent,
double *  result
 

Referenced by scalb().

Err MathLibScalBN UInt  refnum,
double  x,
Int  exponent,
double *  result
 

Referenced by scalbn().

Err MathLibSignBit UInt  refnum,
double  x,
ULong *  result
 

Referenced by signbit().

Err MathLibSignificand UInt  refnum,
double  x,
double *  result
 

Referenced by significand().

Err MathLibSin UInt  refnum,
double  x,
double *  result
 

Referenced by sin().

Err MathLibSinCos UInt  refnum,
double  x,
double *  sinx,
double *  cosx
 

Referenced by sincos().

Err MathLibSinH UInt  refnum,
double  x,
double *  result
 

Referenced by sinh().

Err MathLibSleep UInt  refnum  ) 
 

Err MathLibSqrt UInt  refnum,
double  x,
double *  result
 

Referenced by sqrt().

Err MathLibTan UInt  refnum,
double  x,
double *  result
 

Referenced by tan().

Err MathLibTanH UInt  refnum,
double  x,
double *  result
 

Referenced by tanh().

Err MathLibTrunc UInt  refnum,
double  x,
double *  result
 

Referenced by trunc().

Err MathLibWake UInt  refnum  ) 
 

double modf double  x,
double *  intpart
 

Definition at line 163 of file MathLib.c.

References MathLibModF(), and MathLibRef.

double nextafter double  x,
double  y
 

Definition at line 295 of file MathLib.c.

References MathLibNextAfter(), and MathLibRef.

double pow double  x,
double  y
 

Definition at line 193 of file MathLib.c.

References MathLibPow(), and MathLibRef.

Referenced by calcR(), Convert_Geodetic_To_Transverse_Mercator(), and Convert_Transverse_Mercator_To_Geodetic().

double remainder double  x,
double  y
 

Definition at line 301 of file MathLib.c.

References MathLibRef, and MathLibRemainder().

double rint double  x  ) 
 

Definition at line 289 of file MathLib.c.

References MathLibRef, and MathLibRInt().

double round double  x  ) 
 

Definition at line 313 of file MathLib.c.

References MathLibRef, and MathLibRound().

double scalb double  x,
double  exponent
 

Definition at line 307 of file MathLib.c.

References MathLibRef, and MathLibScalB().

double scalbn double  x,
Int  exponent
 

Definition at line 253 of file MathLib.c.

References MathLibRef, and MathLibScalBN().

ULong signbit double  x  ) 
 

Definition at line 325 of file MathLib.c.

References MathLibRef, and MathLibSignBit().

double significand double  x  ) 
 

Definition at line 265 of file MathLib.c.

References MathLibRef, and MathLibSignificand().

double sin double  x  ) 
 

Definition at line 81 of file MathLib.c.

References MathLibRef, and MathLibSin().

Referenced by calcR(), Convert_Geodetic_To_Transverse_Mercator(), Convert_Transverse_Mercator_To_Geodetic(), gc_course_sphere(), and gc_dist_sphere().

void sincos double  x,
double *  sinx,
double *  cosx
 

Definition at line 93 of file MathLib.c.

References MathLibRef, and MathLibSinCos().

double sinh double  x  ) 
 

Definition at line 103 of file MathLib.c.

References MathLibRef, and MathLibSinH().

double sqrt double  x  ) 
 

Definition at line 199 of file MathLib.c.

References MathLibRef, and MathLibSqrt().

Referenced by gc_dist_sphere().

double tan double  x  ) 
 

Definition at line 87 of file MathLib.c.

References MathLibRef, and MathLibTan().

Referenced by Convert_Geodetic_To_Transverse_Mercator(), and Convert_Transverse_Mercator_To_Geodetic().

double tanh double  x  ) 
 

Definition at line 109 of file MathLib.c.

References MathLibRef, and MathLibTanH().

double trunc double  x  ) 
 

Definition at line 319 of file MathLib.c.

References MathLibRef, and MathLibTrunc().


Variable Documentation

UInt MathLibRef
 

Definition at line 47 of file MathLib.c.

Referenced by acos(), acosh(), asin(), asinh(), atan(), atan2(), atanh(), cbrt(), ceil(), copysign(), cos(), cosh(), drem(), exp(), expm1(), fabs(), finite(), floor(), fmod(), frexp(), hypot(), ilogb(), isinf(), isnan(), ldexp(), log(), log10(), log1p(), log2(), logb(), modf(), nextafter(), pow(), remainder(), rint(), round(), scalb(), scalbn(), signbit(), significand(), sin(), sincos(), sinh(), sqrt(), tan(), tanh(), and trunc().


Created: Mon, 08 Oct 2007 22:33:16 +0200
Copyright ©2004 M. Prinke