home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Demos / Tangent Systems / BuildSim 2.0b34.sit / BuildSim 2.0b34 / BuildSim AutoCode Support / headers / BSMath.h < prev    next >
MacBinary  |  1997-08-07  |  2.6 KB  |  [TEXT/CWIE]

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: MacBinary (archive/macBinary).

ConfidenceProgramDetectionMatch TypeSupport
10% dexvert MacBinary (archive/macBinary) fallback Supported
1% dexvert Text File (text/txt) fallback Supported
100% file MacBinary II, Thu Aug 7 09:29:38 1997, modified Thu Aug 7 09:29:38 1997, creator 'CWIE', type ASCII, 1946 bytes "BSMath.h" , at 0x81a 428 bytes resource default (weak)
99% file data default
74% TrID Macintosh plain text (MacBinary) default
25% TrID MacBinary 2 default (weak)
100% siegfried fmt/1762 MacBinary (II) default
100% lsar MacBinary default


id metadata
keyvalue
macFileType[TEXT]
macFileCreator[CWIE]



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 08 42 53 4d 61 74 68 | 2e 68 00 00 00 00 00 00 |..BSMath|.h......|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 00 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 07 9a 00 | 00 01 ac b0 0f 7e 42 b0 |........|.....~B.|
|00000060| 0f 7e 42 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.~B.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 e0 b5 00 00 |........|........|
|00000080| 2f 2a 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |/*//////|////////|
|00000090| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|000000a0| 2f 0d 2f 2f 0d 2f 2f 20 | 42 53 4d 61 74 68 2e 68 |/.//.// |BSMath.h|
|000000b0| 0d 2f 2f 0d 2f 2f 20 a9 | 20 31 39 39 34 2c 20 31 |.//.// .| 1994, 1|
|000000c0| 39 39 35 2c 20 31 39 39 | 36 2c 20 31 39 39 37 20 |995, 199|6, 1997 |
|000000d0| 54 61 6e 67 65 6e 74 20 | 53 79 73 74 65 6d 73 0d |Tangent |Systems.|
|000000e0| 2f 2f 0d 2f 2f 20 41 6c | 6c 20 72 69 67 68 74 73 |//.// Al|l rights|
|000000f0| 20 72 65 73 65 72 76 65 | 64 2e 0d 2f 2f 0d 2f 2f | reserve|d..//.//|
|00000100| 20 54 68 69 73 20 66 69 | 6c 65 20 63 6f 6e 74 61 | This fi|le conta|
|00000110| 69 6e 73 20 63 6f 6e 66 | 69 64 65 6e 74 69 61 6c |ins conf|idential|
|00000120| 20 61 6e 64 20 70 72 6f | 70 72 69 65 74 61 72 79 | and pro|prietary|
|00000130| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 2e 20 4e 6f | informa|tion. No|
|00000140| 20 50 6f 72 74 69 6f 6e | 0d 2f 2f 20 6f 66 20 74 | Portion|.// of t|
|00000150| 68 69 73 20 66 69 6c 65 | 20 6d 61 79 20 62 65 20 |his file| may be |
|00000160| 72 65 70 72 6f 64 75 63 | 65 64 2c 20 62 79 20 61 |reproduc|ed, by a|
|00000170| 6e 79 20 6d 65 61 6e 73 | 2c 20 77 69 74 68 6f 75 |ny means|, withou|
|00000180| 74 20 74 68 65 20 77 72 | 69 74 74 65 6e 0d 2f 2f |t the wr|itten.//|
|00000190| 20 70 65 72 6d 69 73 73 | 69 6f 6e 20 6f 66 20 54 | permiss|ion of T|
|000001a0| 61 6e 67 65 6e 74 20 53 | 79 73 74 65 6d 73 0d 2f |angent S|ystems./|
|000001b0| 2f 0d 2f 2f 20 54 61 6e | 67 65 6e 74 20 53 79 73 |/.// Tan|gent Sys|
|000001c0| 74 65 6d 73 20 6d 61 6b | 65 73 20 6e 6f 20 72 65 |tems mak|es no re|
|000001d0| 70 72 65 73 65 6e 74 61 | 74 69 6f 6e 20 6f 72 20 |presenta|tion or |
|000001e0| 77 61 72 72 61 6e 74 69 | 65 73 20 61 62 6f 75 74 |warranti|es about|
|000001f0| 20 74 68 65 20 73 75 69 | 74 69 62 69 6c 69 74 79 | the sui|tibility|
|00000200| 20 6f 66 20 74 68 65 20 | 73 6f 66 74 77 61 72 65 | of the |software|
|00000210| 2c 0d 2f 2f 20 65 69 74 | 68 65 72 20 65 78 70 72 |,.// eit|her expr|
|00000220| 65 73 73 20 6f 72 20 69 | 6d 70 6c 69 65 64 2c 20 |ess or i|mplied, |
|00000230| 69 6e 63 6c 75 64 69 6e | 67 20 62 75 74 20 6e 6f |includin|g but no|
|00000240| 74 20 6c 69 6d 69 74 65 | 64 20 74 6f 20 74 68 65 |t limite|d to the|
|00000250| 20 69 6d 70 6c 69 65 64 | 20 77 61 72 72 61 6e 74 | implied| warrant|
|00000260| 69 65 73 20 6f 66 20 6d | 65 72 63 68 61 6e 74 61 |ies of m|erchanta|
|00000270| 62 69 6c 69 74 79 2c 0d | 2f 2f 20 66 69 74 6e 65 |bility,.|// fitne|
|00000280| 73 73 20 66 6f 72 20 61 | 20 70 61 72 74 69 63 75 |ss for a| particu|
|00000290| 6c 61 72 20 70 75 72 70 | 6f 73 65 2c 20 6f 72 20 |lar purp|ose, or |
|000002a0| 6e 6f 6e 2d 69 6e 66 72 | 69 6e 67 6d 65 6e 74 2e |non-infr|ingment.|
|000002b0| 0d 2f 2f 0d 2f 2f 20 54 | 61 6e 67 65 6e 74 20 53 |.//.// T|angent S|
|000002c0| 79 73 74 65 6d 73 20 73 | 68 61 6c 6c 20 6e 6f 74 |ystems s|hall not|
|000002d0| 20 62 65 20 6c 69 61 62 | 6c 65 20 66 6f 72 20 61 | be liab|le for a|
|000002e0| 6e 79 20 64 61 6d 61 67 | 65 73 20 73 75 66 66 65 |ny damag|es suffe|
|000002f0| 72 65 64 20 62 79 20 6c | 69 63 65 6e 73 65 65 20 |red by l|icensee |
|00000300| 61 73 20 61 20 72 65 73 | 75 6c 74 20 6f 66 20 75 |as a res|ult of u|
|00000310| 73 69 6e 67 2c 0d 2f 2f | 20 6d 6f 64 69 66 79 69 |sing,.//| modifyi|
|00000320| 6e 67 20 6f 72 20 64 69 | 73 74 72 69 62 75 74 69 |ng or di|stributi|
|00000330| 6e 67 20 74 68 69 73 20 | 73 6f 66 74 77 61 72 65 |ng this |software|
|00000340| 20 6f 72 20 64 65 72 69 | 76 61 74 69 76 65 73 2e | or deri|vatives.|
|00000350| 0d 2f 2f 0d 2f 2f 20 44 | 65 73 63 72 69 70 74 69 |.//.// D|escripti|
|00000360| 6f 6e 3a 0d 2f 2f 0d 2f | 2f 0d 2f 2f 0d 2f 2f 20 |on:.//./|/.//.// |
|00000370| 41 75 74 68 6f 72 3a 20 | 4a 6f 68 6e 20 48 2e 20 |Author: |John H. |
|00000380| 53 68 61 63 6b 65 6c 66 | 6f 72 64 2c 20 54 61 6e |Shackelf|ord, Tan|
|00000390| 67 65 6e 74 20 53 79 73 | 74 65 6d 73 0d 2f 2f 20 |gent Sys|tems.// |
|000003a0| 65 6d 61 69 6c 3a 20 6a | 73 68 61 63 6b 40 74 61 |email: j|shack@ta|
|000003b0| 6e 67 65 6e 74 73 79 73 | 2e 63 6f 6d 0d 2f 2f 0d |ngentsys|.com.//.|
|000003c0| 2f 2f 20 44 61 74 65 3a | 20 31 39 39 37 2f 30 36 |// Date:| 1997/06|
|000003d0| 2f 32 30 0d 2f 2f 20 56 | 65 72 73 69 6f 6e 3a 20 |/20.// V|ersion: |
|000003e0| 41 0d 2f 2f 0d 2f 2f 20 | 52 65 76 69 73 69 6f 6e |A.//.// |Revision|
|000003f0| 20 48 69 73 74 6f 72 79 | 3a 0d 2f 2f 20 31 39 39 | History|:.// 199|
|00000400| 37 2f 30 36 2f 32 30 20 | 52 65 76 69 73 69 6f 6e |7/06/20 |Revision|
|00000410| 20 41 20 2d 20 09 49 6e | 69 74 69 61 6c 20 52 65 | A - .In|itial Re|
|00000420| 6c 65 61 73 65 0d 2f 2f | 0d 2f 2f 2f 2f 2f 2f 2f |lease.//|.///////|
|00000430| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2f 2f 2f 2f 2f 2f 2f |////////|////////|
|00000440| 2f 2f 2f 2f 2f 2f 2f 2f | 2f 2a 2f 09 0d 09 0d 23 |////////|/*/....#|
|00000450| 69 66 6e 64 65 66 20 5f | 42 53 4d 41 54 48 5f 48 |ifndef _|BSMATH_H|
|00000460| 0d 23 64 65 66 69 6e 65 | 20 5f 42 53 4d 41 54 48 |.#define| _BSMATH|
|00000470| 5f 48 0d 23 69 6e 63 6c | 75 64 65 20 3c 6d 61 74 |_H.#incl|ude <mat|
|00000480| 68 2e 68 3e 0d 0d 23 64 | 65 66 69 6e 65 20 09 48 |h.h>..#d|efine .H|
|00000490| 55 47 45 5f 56 41 4c 55 | 45 20 48 55 47 45 5f 56 |UGE_VALU|E HUGE_V|
|000004a0| 41 4c 0d 23 64 65 66 69 | 6e 65 20 09 50 49 20 09 |AL.#defi|ne .PI .|
|000004b0| 09 33 2e 31 34 31 35 39 | 32 36 35 33 35 39 0d 23 |.3.14159|265359.#|
|000004c0| 64 65 66 69 6e 65 20 09 | 54 57 4f 5f 50 49 09 09 |define .|TWO_PI..|
|000004d0| 36 2e 32 38 33 31 38 35 | 33 30 37 31 38 0d 23 64 |6.283185|30718.#d|
|000004e0| 65 66 69 6e 65 09 09 53 | 51 52 54 5f 50 49 09 31 |efine..S|QRT_PI.1|
|000004f0| 2e 37 37 32 34 35 33 38 | 35 30 39 31 0d 23 64 65 |.7724538|5091.#de|
|00000500| 66 69 6e 65 09 09 50 49 | 53 51 52 44 09 39 2e 38 |fine..PI|SQRD.9.8|
|00000510| 36 39 36 30 34 34 30 31 | 32 32 0d 0d 74 79 70 65 |69604401|22..type|
|00000520| 64 65 66 20 64 6f 75 62 | 6c 65 20 52 65 61 6c 3b |def doub|le Real;|
|00000530| 0d 0d 74 79 70 65 64 65 | 66 20 73 74 72 75 63 74 |..typede|f struct|
|00000540| 0d 7b 0d 09 52 65 61 6c | 20 72 3b 0d 09 52 65 61 |.{..Real| r;..Rea|
|00000550| 6c 20 69 3b 0d 7d 20 43 | 6f 6d 70 6c 65 78 3b 0d |l i;.} C|omplex;.|
|00000560| 0d 74 79 70 65 64 65 66 | 20 52 65 61 6c 2a 20 52 |.typedef| Real* R|
|00000570| 65 61 6c 50 74 72 3b 0d | 74 79 70 65 64 65 66 20 |ealPtr;.|typedef |
|00000580| 52 65 61 6c 2a 20 52 65 | 61 6c 56 65 63 74 6f 72 |Real* Re|alVector|
|00000590| 3b 0d 74 79 70 65 64 65 | 66 20 52 65 61 6c 56 65 |;.typede|f RealVe|
|000005a0| 63 74 6f 72 2a 20 52 65 | 61 6c 4d 61 74 72 69 78 |ctor* Re|alMatrix|
|000005b0| 3b 0d 74 79 70 65 64 65 | 66 20 43 6f 6d 70 6c 65 |;.typede|f Comple|
|000005c0| 78 2a 20 43 6f 6d 70 6c | 65 78 56 65 63 74 6f 72 |x* Compl|exVector|
|000005d0| 3b 0d 74 79 70 65 64 65 | 66 20 43 6f 6d 70 6c 65 |;.typede|f Comple|
|000005e0| 78 56 65 63 74 6f 72 2a | 20 43 6f 6d 70 6c 65 78 |xVector*| Complex|
|000005f0| 4d 61 74 72 69 78 3b 0d | 0d 52 65 61 6c 56 65 63 |Matrix;.|.RealVec|
|00000600| 74 6f 72 20 72 76 65 63 | 41 6c 6c 6f 63 28 75 6e |tor rvec|Alloc(un|
|00000610| 73 69 67 6e 65 64 20 6c | 65 6e 67 74 68 29 3b 0d |signed l|ength);.|
|00000620| 52 65 61 6c 4d 61 74 72 | 69 78 20 72 6d 61 74 41 |RealMatr|ix rmatA|
|00000630| 6c 6c 6f 63 28 75 6e 73 | 69 67 6e 65 64 20 72 6f |lloc(uns|igned ro|
|00000640| 77 73 2c 20 75 6e 73 69 | 67 6e 65 64 20 63 6f 6c |ws, unsi|gned col|
|00000650| 73 29 3b 0d 52 65 61 6c | 56 65 63 74 6f 72 20 76 |s);.Real|Vector v|
|00000660| 6d 78 4d 75 6c 28 52 65 | 61 6c 4d 61 74 72 69 78 |mxMul(Re|alMatrix|
|00000670| 20 6d 2c 20 52 65 61 6c | 56 65 63 74 6f 72 20 76 | m, Real|Vector v|
|00000680| 2c 20 75 6e 73 69 67 6e | 65 64 20 6e 31 2c 20 75 |, unsign|ed n1, u|
|00000690| 6e 73 69 67 6e 65 64 20 | 6e 32 29 3b 0d 76 6f 69 |nsigned |n2);.voi|
|000006a0| 64 20 76 65 63 53 63 61 | 6c 65 28 52 65 61 6c 56 |d vecSca|le(RealV|
|000006b0| 65 63 74 6f 72 20 6d 2c | 20 75 6e 73 69 67 6e 65 |ector m,| unsigne|
|000006c0| 64 20 6e 2c 20 52 65 61 | 6c 20 73 63 61 6c 65 29 |d n, Rea|l scale)|
|000006d0| 3b 0d 76 6f 69 64 20 61 | 64 64 56 65 63 74 6f 72 |;.void a|ddVector|
|000006e0| 28 52 65 61 6c 56 65 63 | 74 6f 72 20 6d 2c 20 52 |(RealVec|tor m, R|
|000006f0| 65 61 6c 56 65 63 74 6f | 72 20 6e 2c 20 75 6e 73 |ealVecto|r n, uns|
|00000700| 69 67 6e 65 64 20 6c 65 | 6e 67 74 68 29 3b 0d 76 |igned le|ngth);.v|
|00000710| 6f 69 64 20 63 6c 65 61 | 72 56 65 63 74 6f 72 28 |oid clea|rVector(|
|00000720| 52 65 61 6c 56 65 63 74 | 6f 72 20 6d 2c 20 75 6e |RealVect|or m, un|
|00000730| 73 69 67 6e 65 64 20 6c | 65 6e 67 74 68 29 3b 0d |signed l|ength);.|
|00000740| 76 6f 69 64 20 64 69 73 | 70 6f 73 65 56 65 63 74 |void dis|poseVect|
|00000750| 6f 72 28 52 65 61 6c 56 | 65 63 74 6f 72 20 6d 29 |or(RealV|ector m)|
|00000760| 3b 0d 76 6f 69 64 20 76 | 6d 78 4d 75 6c 32 28 52 |;.void v|mxMul2(R|
|00000770| 65 61 6c 4d 61 74 72 69 | 78 20 6d 2c 20 52 65 61 |ealMatri|x m, Rea|
|00000780| 6c 56 65 63 74 6f 72 20 | 76 2c 20 75 6e 73 69 67 |lVector |v, unsig|
|00000790| 6e 65 64 20 6e 31 2c 20 | 75 6e 73 69 67 6e 65 64 |ned n1, |unsigned|
|000007a0| 20 6e 32 2c 20 52 65 61 | 6c 56 65 63 74 6f 72 20 | n2, Rea|lVector |
|000007b0| 72 29 3b 0d 52 65 61 6c | 20 61 63 6f 73 68 28 52 |r);.Real| acosh(R|
|000007c0| 65 61 6c 20 78 29 3b 0d | 52 65 61 6c 20 61 73 69 |eal x);.|Real asi|
|000007d0| 6e 68 28 52 65 61 6c 20 | 78 29 3b 0d 52 65 61 6c |nh(Real |x);.Real|
|000007e0| 20 61 74 61 6e 68 28 52 | 65 61 6c 20 78 29 3b 0d | atanh(R|eal x);.|
|000007f0| 52 65 61 6c 20 6e 6f 72 | 6d 61 6c 58 28 52 65 61 |Real nor|malX(Rea|
|00000800| 6c 20 73 69 67 6d 61 2c | 20 52 65 61 6c 20 75 29 |l sigma,| Real u)|
|00000810| 3b 0d 0d 0d 23 65 6e 64 | 69 66 00 00 00 00 00 00 |;...#end|if......|
|00000820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000880| 00 00 01 00 00 00 01 5a | 00 00 00 5a 00 00 00 52 |.......Z|...Z...R|
|00000890| 2f 2b 00 40 2f 2e 00 0c | 4e ba eb e6 24 40 20 0a |/+.@/...|N...$@ .|
|000008a0| 50 4f 66 08 3d 7c f8 c5 | 00 14 60 50 4a aa 00 0c |POf.=|..|..`PJ...|
|000008b0| 08 42 53 4d 61 74 68 2e | 68 4d 02 00 00 00 54 45 |.BSMath.|hM....TE|
|000008c0| 58 54 43 57 49 45 00 00 | 00 00 00 00 00 00 00 00 |XTCWIE..|........|
|000008d0| 00 00 54 45 58 54 43 57 | 49 45 00 00 00 00 00 00 |..TEXTCW|IE......|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 af d0 6f a2 00 00 | 07 9a 00 00 01 ac 1c 80 |....o...|........|
|00000900| ff ec 4e 5e 20 5f 4f ef | 00 0c 4e d0 4e 56 ff fc |..N^ _O.|..N.NV..|
|00000910| 48 e7 00 38 26 6e 00 08 | 28 6e 00 10 2f 0c 4e ba |H..8&n..|(n../.N.|
|00000920| 28 70 4a 00 58 4f 66 08 | 3d 7c f8 c6 00 14 60 36 |(pJ.XOf.|=|....`6|
|00000930| 20 0b 66 08 3d 7c ff ce | 00 14 60 2a 2f 2c 00 40 | .f.=|..|..`*/,.@|
|00000940| 2f 2e 00 0c 4e ba eb 3a | 24 40 20 0a 50 4f 66 08 |/...N..:|$@ .POf.|
|00000950| 3d 7c f8 c5 00 14 60 0e | 41 ea 00 0c 22 4b 20 d9 |=|....`.|A..."K .|
|00000960| 20 d9 42 6e 00 14 4c ee | 1c 00 ff f0 4e 5e 20 5f | .Bn..L.|....N^ _|
|00000970| 4f ef 00 0c 4e d0 4e 56 | 00 00 48 e7 0f 18 26 6e |O...N.NV|..H...&n|
|00000980| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000009a0| 00 00 00 00 00 00 00 03 | 00 04 00 5c 00 0a 02 68 |........|...\...h|
|000009b0| 03 28 00 5c 00 0a 02 68 | 03 28 b0 10 94 9d 00 00 |.(.\...h|.(......|
|000009c0| 02 d3 00 00 02 d3 00 00 | 00 00 01 00 00 00 00 02 |........|........|
|000009d0| 00 00 00 00 00 04 00 01 | 00 01 00 00 01 00 00 00 |........|........|
|000009e0| 01 5a 00 00 00 5a 00 00 | 00 52 07 7d d9 a0 20 52 |.Z...Z..|.R.}.. R|
|000009f0| 00 00 00 1c 00 52 00 01 | 4d 50 53 52 00 01 00 12 |.....R..|MPSR....|
|00000a00| 4d 57 42 42 00 00 00 2a | 03 ed ff ff 00 00 00 00 |MWBB...*|........|
|00000a10| 00 00 00 00 03 ef ff ff | 00 00 00 4c 00 00 00 00 |........|...L....|
|00000a20| 03 f0 ff ff 00 00 00 52 | 00 00 00 00 00 00 00 00 |.......R|........|
|00000a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+