home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 March / Chip_1998-03_cd.bin / zkuste / matemat / Vyssi / MATH2.ZIP / cppbuild / Math1.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1997-05-31  |  3.7 KB  |  86 lines

  1. //----------------------------------------------------------------------------
  2. // Math1.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
  3. // From: Math1.pas
  4. //----------------------------------------------------------------------------
  5. #ifndef Math1HPP
  6. #define Math1HPP
  7. //----------------------------------------------------------------------------
  8. #include <System.hpp>
  9. namespace Math1
  10. {
  11. //-- type declarations -------------------------------------------------------
  12. enum VarType { rnum, dnum, snum, inum, lnum, Bool, strg };
  13.  
  14. class __declspec(delphiclass) TRandGen;
  15. class __declspec(pascalimplementation) TRandGen : public System::TObject
  16. {
  17.     typedef System::TObject inherited;
  18.     
  19. private:
  20.     double FLowBorder;
  21.     double FHighBorder;
  22.     int FResolution;
  23.     void *FDistVec;
  24.     void __fastcall SetResolution(int p0);
  25.     double __fastcall GetProbability(int p0);
  26.     double __fastcall GetRandNum(void);
  27.     double __fastcall GetLambda(int p0);
  28.     void __fastcall SetProbability(int p0, double p1);
  29.     
  30. public:
  31.     __fastcall TRandGen(void);
  32.     __fastcall virtual ~TRandGen(void);
  33.     __property double HighBorder = {read=FHighBorder, write=FHighBorder};
  34.     __property double Lambda[int ix] = {read=GetLambda};
  35.     __property double LowBorder = {read=FLowBorder, write=FLowBorder};
  36.     void __fastcall Normalize(void);
  37.     void __fastcall NormalDistri(double p0, double p1);
  38.     __property double Probability[int ix] = {read=GetProbability, write=SetProbability};
  39.     __property double Random = {read=GetRandNum};
  40.     int __fastcall IndexOfLambda(double p0);
  41.     __property int Resolution = {read=FResolution, write=SetResolution, nodefault};
  42.     void __fastcall UniformDistri(void);
  43. };
  44.  
  45. //-- var, const, procedure ---------------------------------------------------
  46. extern Byte __fastcall DecodeBit(int p0);
  47. extern int __fastcall CountBits(Byte p0);
  48. extern System::AnsiString __fastcall strf(double p0, int p1, int p2);
  49. extern double __fastcall lg(double p0);
  50. extern double __fastcall ld(double p0);
  51. extern double __fastcall sinh(double p0);
  52. extern double __fastcall cosh(double p0);
  53. extern double __fastcall tgh(double p0);
  54. extern double __fastcall tg(double p0);
  55. extern double __fastcall cot(double p0);
  56. extern System::AnsiString __fastcall MakeEFormat(double p0, int p1, int p2);
  57. extern System::AnsiString __fastcall Decimal(long p0, Byte p1);
  58. extern long __fastcall ScanDecimal( System::AnsiString p0, int &p1);
  59. extern System::AnsiString __fastcall Hex(long p0, Byte p1);
  60. extern long __fastcall ScanHex( System::AnsiString p0, int &p1);
  61. extern System::AnsiString __fastcall Octal(long p0, Byte p1);
  62. extern long __fastcall ScanOctal( System::AnsiString p0, int &p1);
  63. extern System::AnsiString __fastcall Bin(long p0, Byte p1);
  64. extern long __fastcall ScanBin( System::AnsiString p0, int &p1);
  65. extern double __fastcall ScanFPNum( System::AnsiString p0, int &p1);
  66. extern int __fastcall SortIntoArray(void * p0, Word p1, VarType p2, void * p3, bool p4, bool p5);
  67. extern void __fastcall InsertIntoArray(void * p0, Word p1, VarType p2, void * p3, Word p4);
  68. extern void __fastcall SortArray(void * p0, Word p1, VarType p2, bool p3);
  69. extern double __fastcall Min(double p0, double p1);
  70. extern double __fastcall Max(double p0, double p1);
  71. extern int __fastcall Sign(double p0);
  72. extern bool __fastcall BRandom(double p0);
  73. extern double __fastcall GRandom(void);
  74. extern double __fastcall LongRand(long p0);
  75. extern bool __fastcall WithinBounds(double p0, double p1, double p2);
  76. extern long __fastcall IntPos(double p0);
  77. extern long __fastcall IntNeg(double p0);
  78. extern Word __fastcall GrayCode(Word p0);
  79.  
  80. }    /* namespace Math1 */
  81. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  82. using namespace Math1;
  83. #endif
  84. //-- end unit ----------------------------------------------------------------
  85. #endif    // Math1
  86.