home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-12-25 | 7.9 KB | [TEXT/KAHL] |
view JSON data
|
view as text
|
open on a Mac
|
open on a PC
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: proFit_paramBlk.h
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Mon Dec 25 23:09:31 1995, modified Mon Dec 25 23:09:31 1995, creator Think C, type ASCII, 7354 bytes "proFit_paramBlk.h" , at 0x1d3a 410 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 |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 11 70 72 6f 46 69 74 | 5f 70 61 72 61 6d 42 6c |..proFit|_paramBl|
|00000010| 6b 2e 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |k.h.....|........|
|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 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 1c ba 00 | 00 01 9a ad 05 25 fb ad |........|.....%..|
|00000060| 05 25 fb 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.%......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 1b ab 00 00 |........|........|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2f 0d 2f 2a 20 70 72 6f |********|/./* pro|
|000000e0| 46 69 74 5f 70 61 72 61 | 6d 42 6c 6b 2e 68 20 20 |Fit_para|mBlk.h |
|000000f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000100| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000110| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000120| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000130| 20 2a 2f 0d 2f 2a 20 09 | 09 09 09 09 09 09 09 09 | */./* .|........|
|00000140| 09 09 09 09 20 20 20 20 | 20 20 20 20 20 20 20 20 |.... | |
|00000150| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000160| 20 20 20 20 20 20 20 2a | 2f 0d 2f 2a 20 20 20 20 | *|/./* |
|00000170| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000180| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000190| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001a0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001b0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001c0| 20 2a 2f 0d 2f 2a 20 56 | 65 72 73 69 6f 6e 20 32 | */./* V|ersion 2|
|000001d0| 31 2e 31 31 2e 39 35 20 | 20 20 20 20 20 20 20 20 |1.11.95 | |
|000001e0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|000001f0| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000200| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 20 20 | | |
|00000210| 20 20 20 20 20 20 20 20 | 20 20 20 20 2a 2f 0d 2f | | */./|
|00000220| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000230| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000240| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000250| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000260| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000270| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 0d 0d 2f 2a 2a 2a 2a |*******/|.../****|
|00000280| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000290| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002d0| 2a 2a 2a 2a 2a 2a 0d 54 | 68 69 73 20 66 69 6c 65 |******.T|his file|
|000002e0| 20 63 6f 6e 74 61 69 6e | 73 20 69 6e 74 65 72 66 | contain|s interf|
|000002f0| 61 63 65 20 69 6e 66 6f | 72 6d 61 74 69 6f 6e 20 |ace info|rmation |
|00000300| 74 68 61 74 20 64 65 66 | 69 6e 65 73 20 74 68 65 |that def|ines the|
|00000310| 20 63 6f 6d 6d 75 6e 69 | 63 61 74 69 6f 6e 20 62 | communi|cation b|
|00000320| 65 74 77 65 65 6e 0d 61 | 6e 20 45 78 74 65 72 6e |etween.a|n Extern|
|00000330| 61 6c 20 4d 6f 64 75 6c | 65 20 61 6e 64 20 70 72 |al Modul|e and pr|
|00000340| 6f 20 46 69 74 2e 20 54 | 68 69 73 20 69 6e 66 6f |o Fit. T|his info|
|00000350| 72 6d 61 74 69 6f 6e 20 | 69 73 20 75 73 65 64 20 |rmation |is used |
|00000360| 62 79 20 70 72 6f 20 46 | 69 74 5f 69 6e 74 65 72 |by pro F|it_inter|
|00000370| 66 61 63 65 2e 63 0d 74 | 6f 20 70 72 6f 76 69 64 |face.c.t|o provid|
|00000380| 65 20 74 68 65 20 63 6f | 64 65 20 74 68 61 74 20 |e the co|de that |
|00000390| 69 6d 70 6c 65 6d 65 6e | 74 73 20 61 6c 6c 20 6f |implemen|ts all o|
|000003a0| 66 20 74 68 65 20 70 72 | 65 64 69 66 69 6e 65 64 |f the pr|edifined|
|000003b0| 20 72 6f 75 74 69 6e 65 | 73 20 6d 61 64 65 0d 61 | routine|s made.a|
|000003c0| 76 61 69 6c 61 62 6c 65 | 20 62 79 20 70 72 6f 20 |vailable| by pro |
|000003d0| 46 69 74 2e 0d 0d 4e 6f | 72 6d 61 6c 6c 79 2c 20 |Fit...No|rmally, |
|000003e0| 79 6f 75 20 77 69 6c 6c | 20 6a 75 73 74 20 77 61 |you will| just wa|
|000003f0| 6e 74 20 74 6f 20 6c 65 | 61 76 65 20 74 68 65 73 |nt to le|ave thes|
|00000400| 65 20 66 69 6c 65 20 75 | 6e 74 6f 75 63 68 65 64 |e file u|ntouched|
|00000410| 20 69 6e 20 79 6f 75 72 | 20 65 78 74 65 72 6e 61 | in your| externa|
|00000420| 6c 0d 6d 6f 64 75 6c 65 | 20 66 6f 6c 64 65 72 2c |l.module| folder,|
|00000430| 20 61 6e 64 20 74 6f 20 | 6e 65 76 65 72 20 68 61 | and to |never ha|
|00000440| 76 65 20 61 20 6c 6f 6f | 6b 20 61 74 20 69 74 2e |ve a loo|k at it.|
|00000450| 0d 0d 0d 0d 09 09 09 09 | 09 09 09 2a 2a 2a 2a 2a |........|...*****|
|00000460| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000470| 2a 2a 2a 0d 09 09 09 09 | 09 09 09 0d 59 6f 75 20 |***.....|....You |
|00000480| 6e 65 65 64 20 74 68 65 | 20 66 6f 6c 6c 6f 69 6e |need the| folloin|
|00000490| 67 20 69 6e 66 6f 72 6d | 61 74 69 6f 6e 20 69 66 |g inform|ation if|
|000004a0| 20 79 6f 75 20 77 61 6e | 74 20 74 6f 20 70 72 6f | you wan|t to pro|
|000004b0| 67 72 61 6d 20 61 20 76 | 65 72 79 20 61 64 76 61 |gram a v|ery adva|
|000004c0| 6e 63 65 64 0d 65 78 74 | 65 72 6e 61 6c 20 6d 6f |nced.ext|ernal mo|
|000004d0| 64 75 6c 65 2c 20 61 6e | 64 20 69 66 20 79 6f 75 |dule, an|d if you|
|000004e0| 20 77 61 6e 74 20 74 6f | 20 64 6f 20 6d 6f 72 65 | want to| do more|
|000004f0| 20 65 78 6f 74 69 63 20 | 74 68 69 6e 67 73 2e 0d | exotic |things..|
|00000500| 0d 41 6c 6c 20 74 68 65 | 20 69 6e 74 65 72 61 63 |.All the| interac|
|00000510| 74 69 6f 6e 20 62 65 74 | 77 65 65 6e 20 70 72 6f |tion bet|ween pro|
|00000520| 20 46 69 74 20 61 6e 64 | 20 74 68 65 20 65 78 74 | Fit and| the ext|
|00000530| 65 72 6e 61 6c 20 6d 6f | 64 75 6c 65 20 74 61 6b |ernal mo|dule tak|
|00000540| 65 73 20 70 6c 61 63 65 | 20 74 68 72 6f 75 67 68 |es place| through|
|00000550| 20 74 68 65 20 70 72 6f | 63 65 64 75 72 65 20 6d | the pro|cedure m|
|00000560| 61 69 6e 2e 0d 70 72 6f | 20 46 69 74 20 63 61 6c |ain..pro| Fit cal|
|00000570| 6c 73 20 69 74 20 77 69 | 74 68 20 64 69 66 66 65 |ls it wi|th diffe|
|00000580| 72 65 6e 74 20 76 61 6c | 75 65 73 20 6f 66 20 69 |rent val|ues of i|
|00000590| 74 73 20 70 61 72 61 6d | 65 74 65 72 20 27 73 65 |ts param|eter 'se|
|000005a0| 6c 65 63 74 6f 72 27 20 | 61 6e 64 20 74 68 65 0d |lector' |and the.|
|000005b0| 66 75 6e 63 74 69 6f 6e | 20 6d 61 69 6e 20 6d 75 |function| main mu|
|000005c0| 73 74 20 72 65 74 75 72 | 6e 20 74 68 65 20 69 6e |st retur|n the in|
|000005d0| 66 6f 72 6d 61 74 69 6f | 6e 20 72 65 71 75 65 73 |formatio|n reques|
|000005e0| 74 65 64 20 62 79 20 73 | 65 74 74 69 6e 67 20 74 |ted by s|etting t|
|000005f0| 68 65 20 6e 65 63 65 73 | 73 61 72 79 20 66 69 65 |he neces|sary fie|
|00000600| 6c 64 73 0d 69 6e 73 69 | 64 65 20 61 20 70 61 72 |lds.insi|de a par|
|00000610| 61 6d 65 74 65 72 42 6c | 6f 63 6b 2e 0d 0d 57 68 |ameterBl|ock...Wh|
|00000620| 65 6e 20 69 74 20 66 69 | 72 73 74 20 6f 70 65 6e |en it fi|rst open|
|00000630| 73 20 74 68 65 20 65 78 | 74 65 72 6e 61 6c 20 6d |s the ex|ternal m|
|00000640| 6f 64 75 6c 65 2c 20 70 | 72 6f 20 46 69 74 20 63 |odule, p|ro Fit c|
|00000650| 61 6c 6c 73 20 6d 61 69 | 6e 20 77 69 74 68 20 74 |alls mai|n with t|
|00000660| 68 65 20 73 65 6c 65 63 | 74 6f 72 20 65 71 75 61 |he selec|tor equa|
|00000670| 6c 20 74 6f 20 7a 65 72 | 6f 2c 20 61 6e 64 0d 6d |l to zer|o, and.m|
|00000680| 61 69 6e 20 6d 75 73 74 | 20 70 72 6f 76 69 64 65 |ain must| provide|
|00000690| 20 74 68 65 20 73 70 65 | 63 69 66 69 63 61 74 69 | the spe|cificati|
|000006a0| 6f 6e 73 20 6f 66 20 74 | 68 65 20 63 6f 64 65 20 |ons of t|he code |
|000006b0| 73 75 70 70 6c 69 65 64 | 2c 20 73 75 63 68 20 61 |supplied|, such a|
|000006c0| 73 20 74 68 65 20 73 65 | 74 74 69 6e 67 73 0d 77 |s the se|ttings.w|
|000006d0| 69 74 68 20 77 68 69 63 | 68 20 74 68 65 20 63 6f |ith whic|h the co|
|000006e0| 64 65 20 77 61 73 20 63 | 6f 6d 70 69 6c 65 64 2c |de was c|ompiled,|
|000006f0| 20 69 66 20 74 68 65 20 | 63 6f 64 65 20 69 73 20 | if the |code is |
|00000700| 61 20 66 75 6e 63 74 69 | 6f 6e 20 6f 72 20 61 20 |a functi|on or a |
|00000710| 70 72 6f 67 72 61 6d 2c | 20 74 68 65 20 6e 61 6d |program,| the nam|
|00000720| 65 20 6f 66 20 74 68 65 | 0d 65 78 74 65 72 6e 61 |e of the|.externa|
|00000730| 6c 20 6d 6f 64 75 6c 65 | 2c 20 65 74 63 2e 0d 0d |l module|, etc...|
|00000740| 44 65 70 65 6e 64 69 6e | 67 20 6f 6e 20 74 68 65 |Dependin|g on the|
|00000750| 20 72 65 73 70 6f 6e 73 | 65 20 69 74 20 6f 62 74 | respons|e it obt|
|00000760| 61 69 6e 73 20 61 66 74 | 65 72 20 63 61 6c 6c 69 |ains aft|er calli|
|00000770| 6e 67 20 74 68 65 20 65 | 78 74 65 72 6e 61 6c 20 |ng the e|xternal |
|00000780| 6d 6f 64 75 6c 65 20 77 | 69 74 68 20 73 65 6c 65 |module w|ith sele|
|00000790| 63 74 6f 72 20 30 2c 20 | 70 72 6f 20 46 69 74 0d |ctor 0, |pro Fit.|
|000007a0| 74 68 65 6e 20 63 61 6c | 6c 73 20 69 74 20 77 69 |then cal|ls it wi|
|000007b0| 74 68 20 74 68 65 20 73 | 65 6c 65 63 74 6f 72 20 |th the s|elector |
|000007c0| 74 68 61 74 20 74 65 6c | 6c 73 20 74 68 65 20 6d |that tel|ls the m|
|000007d0| 6f 64 75 6c 65 20 74 6f | 20 69 6e 69 74 69 61 6c |odule to| initial|
|000007e0| 69 7a 65 20 73 6f 6d 65 | 20 70 61 72 61 6d 65 74 |ize some| paramet|
|000007f0| 65 72 73 2e 20 54 68 69 | 73 20 69 73 0d 76 65 72 |ers. Thi|s is.ver|
|00000800| 79 20 73 69 6d 70 6c 65 | 20 66 6f 72 20 70 72 6f |y simple| for pro|
|00000810| 67 72 61 6d 73 2c 20 62 | 75 74 20 74 68 65 72 65 |grams, b|ut there|
|00000820| 20 61 72 65 20 61 20 66 | 65 77 20 6d 6f 72 65 20 | are a f|ew more |
|00000830| 74 68 69 6e 67 73 20 74 | 6f 20 62 65 20 73 65 74 |things t|o be set|
|00000840| 20 66 6f 72 20 66 75 6e | 63 74 69 6f 6e 73 2e 0d | for fun|ctions..|
|00000850| 0d 41 66 74 65 72 20 74 | 68 65 20 6d 6f 64 75 6c |.After t|he modul|
|00000860| 65 20 69 73 20 61 64 64 | 65 64 20 74 6f 20 70 72 |e is add|ed to pr|
|00000870| 6f 20 46 69 74 27 73 20 | 6d 65 6e 75 73 20 70 72 |o Fit's |menus pr|
|00000880| 6f 20 46 69 74 20 63 61 | 6c 6c 73 20 69 74 20 77 |o Fit ca|lls it w|
|00000890| 69 74 68 20 74 68 65 20 | 73 65 6c 65 63 74 6f 72 |ith the |selector|
|000008a0| 0d 69 64 65 6e 74 69 66 | 79 69 6e 67 20 74 68 65 |.identif|ying the|
|000008b0| 20 61 63 74 69 6f 6e 20 | 6e 65 65 64 65 64 20 61 | action |needed a|
|000008c0| 6e 64 20 70 72 6f 20 46 | 69 74 20 77 69 6c 6c 20 |nd pro F|it will |
|000008d0| 65 78 70 65 63 74 20 74 | 68 65 20 65 78 74 65 72 |expect t|he exter|
|000008e0| 6e 61 6c 20 6d 6f 64 75 | 6c 65 20 74 6f 20 72 65 |nal modu|le to re|
|000008f0| 61 63 74 20 61 63 63 6f | 72 64 69 6e 67 6c 79 2e |act acco|rdingly.|
|00000900| 0d 46 6f 72 20 70 72 6f | 67 72 61 6d 73 2c 20 70 |.For pro|grams, p|
|00000910| 72 6f 20 46 69 74 20 63 | 61 6c 6c 73 20 74 68 65 |ro Fit c|alls the|
|00000920| 20 65 78 74 65 72 6e 61 | 6c 20 6d 6f 64 75 6c 65 | externa|l module|
|00000930| 20 77 69 74 68 20 6f 6e | 6c 79 20 6f 6e 65 20 73 | with on|ly one s|
|00000940| 65 6c 65 63 74 6f 72 2c | 20 74 68 65 20 6f 6e 65 |elector,| the one|
|00000950| 20 69 64 65 6e 74 69 66 | 79 69 6e 67 0d 74 68 65 | identif|ying.the|
|00000960| 20 66 75 6e 63 74 69 6f | 6e 20 72 75 6e 28 29 2e | functio|n run().|
|00000970| 0d 46 6f 72 20 66 75 6e | 63 74 69 6f 6e 73 2c 20 |.For fun|ctions, |
|00000980| 70 72 6f 20 46 69 74 20 | 63 61 6c 6c 73 20 74 68 |pro Fit |calls th|
|00000990| 65 20 65 78 74 65 72 6e | 61 6c 20 6d 6f 64 75 6c |e extern|al modul|
|000009a0| 65 20 77 69 74 68 20 61 | 20 72 61 6e 67 65 20 6f |e with a| range o|
|000009b0| 66 20 73 65 6c 65 63 74 | 6f 72 73 2c 20 69 64 65 |f select|ors, ide|
|000009c0| 6e 74 69 66 79 69 6e 67 | 20 74 68 65 0d 66 75 6e |ntifying| the.fun|
|000009d0| 63 74 69 6f 6e 73 20 63 | 68 65 63 6b 2c 20 66 69 |ctions c|heck, fi|
|000009e0| 72 73 74 2c 20 6c 61 73 | 74 2c 20 61 6e 64 20 73 |rst, las|t, and s|
|000009f0| 6f 20 6f 6e 2e 20 49 66 | 20 79 6f 75 20 64 6f 20 |o on. If| you do |
|00000a00| 6e 6f 74 20 77 61 6e 74 | 20 74 6f 20 64 65 66 69 |not want| to defi|
|00000a10| 6e 65 20 73 75 63 68 20 | 66 75 6e 63 74 69 6f 6e |ne such |function|
|00000a20| 61 6c 69 74 79 2c 20 73 | 69 6d 70 6c 79 0d 6c 65 |ality, s|imply.le|
|00000a30| 61 76 65 20 74 68 65 73 | 65 20 66 75 6e 63 74 69 |ave thes|e functi|
|00000a40| 6f 6e 20 65 6d 70 74 79 | 2e 0d 0d 53 65 65 20 74 |on empty|...See t|
|00000a50| 68 65 20 66 69 6c 65 73 | 20 46 75 6e 63 74 69 6f |he files| Functio|
|00000a60| 6e 54 65 6d 70 6c 61 74 | 65 2e 63 20 61 6e 64 20 |nTemplat|e.c and |
|00000a70| 50 72 6f 67 72 61 6d 54 | 65 6d 70 6c 61 74 65 2e |ProgramT|emplate.|
|00000a80| 63 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |c.******|********|
|00000a90| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000aa0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000ab0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000ac0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000ad0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2f 0d 0d 23 69 |********|***/..#i|
|00000ae0| 66 6e 64 65 66 20 5f 5f | 50 52 4f 46 49 54 5f 50 |fndef __|PROFIT_P|
|00000af0| 41 52 41 4d 42 4c 4b 5f | 5f 0d 23 64 65 66 69 6e |ARAMBLK_|_.#defin|
|00000b00| 65 20 5f 5f 50 52 4f 46 | 49 54 5f 50 41 52 41 4d |e __PROF|IT_PARAM|
|00000b10| 42 4c 4b 5f 5f 0d 0d 0d | 0d 0d 0d 0d 0d 2f 2a 20 |BLK__...|...../* |
|00000b20| 09 54 68 65 20 66 6f 6c | 6c 6f 77 69 6e 67 20 73 |.The fol|lowing s|
|00000b30| 74 72 75 63 74 20 69 73 | 20 75 73 65 64 20 61 73 |truct is| used as|
|00000b40| 20 61 20 70 61 72 61 6d | 65 74 65 72 42 6c 6f 63 | a param|eterBloc|
|00000b50| 6b 20 77 68 65 6e 20 70 | 72 6f 20 46 69 74 20 63 |k when p|ro Fit c|
|00000b60| 61 6c 6c 73 20 61 6e 20 | 65 78 74 65 72 6e 61 6c |alls an |external|
|00000b70| 20 6d 6f 64 75 6c 65 2e | 0d 09 54 68 65 20 65 78 | module.|..The ex|
|00000b80| 74 65 72 6e 61 6c 20 6d | 6f 64 75 6c 65 20 6d 75 |ternal m|odule mu|
|00000b90| 73 74 20 70 72 6f 76 69 | 64 65 20 61 20 66 75 6e |st provi|de a fun|
|00000ba0| 63 74 69 6f 6e 20 6d 61 | 69 6e 28 73 68 6f 72 74 |ction ma|in(short|
|00000bb0| 20 73 65 6c 65 63 74 6f | 72 2c 20 45 78 74 4d 6f | selecto|r, ExtMo|
|00000bc0| 64 75 6c 65 73 50 61 72 | 61 6d 42 6c 6f 63 6b 2a |dulesPar|amBlock*|
|00000bd0| 20 70 62 29 2e 0d 09 57 | 68 65 6e 20 70 72 6f 20 | pb)...W|hen pro |
|00000be0| 46 69 74 20 69 6e 74 65 | 72 61 63 74 73 20 77 69 |Fit inte|racts wi|
|00000bf0| 74 68 20 74 68 65 20 65 | 78 74 65 72 6e 61 6c 20 |th the e|xternal |
|00000c00| 6d 6f 64 75 6c 65 2c 20 | 69 74 20 63 61 6c 6c 73 |module, |it calls|
|00000c10| 20 6d 61 69 6e 20 77 69 | 74 68 20 76 61 72 69 6f | main wi|th vario|
|00000c20| 75 73 20 76 61 6c 75 65 | 73 20 6f 66 20 74 68 65 |us value|s of the|
|00000c30| 20 0d 09 66 69 72 73 74 | 20 70 61 72 61 6d 65 74 | ..first| paramet|
|00000c40| 65 72 2e 20 44 65 70 65 | 6e 64 69 6e 67 20 6f 6e |er. Depe|nding on|
|00000c50| 20 74 68 65 20 76 61 6c | 75 65 20 6f 66 20 73 65 | the val|ue of se|
|00000c60| 6c 65 63 74 6f 72 20 74 | 68 65 20 66 75 6e 63 74 |lector t|he funct|
|00000c70| 69 6f 6e 20 6d 61 69 6e | 20 6d 75 73 74 20 67 69 |ion main| must gi|
|00000c80| 76 65 20 74 68 65 0d 09 | 72 69 67 68 74 20 72 65 |ve the..|right re|
|00000c90| 73 70 6f 6e 73 65 2c 20 | 69 2e 65 20 61 63 74 20 |sponse, |i.e act |
|00000ca0| 61 73 20 74 68 65 20 66 | 75 6e 63 74 69 6f 6e 20 |as the f|unction |
|00000cb0| 66 69 72 73 74 2c 20 6f | 72 20 63 61 6c 63 75 6c |first, o|r calcul|
|00000cc0| 61 74 65 20 74 68 65 20 | 79 2d 76 61 6c 75 65 20 |ate the |y-value |
|00000cd0| 6f 72 20 79 6f 75 72 0d | 09 66 75 6e 63 74 69 6f |or your.|.functio|
|00000ce0| 6e 73 2c 20 61 6e 64 20 | 73 6f 20 6f 6e 2e 20 54 |ns, and |so on. T|
|00000cf0| 68 65 20 70 61 72 61 6d | 65 74 65 72 62 6c 6f 63 |he param|eterbloc|
|00000d00| 6b 20 63 6f 6e 74 61 69 | 6e 73 20 61 6c 6c 20 74 |k contai|ns all t|
|00000d10| 68 65 20 69 6e 66 6f 72 | 6d 61 74 69 6f 6e 20 79 |he infor|mation y|
|00000d20| 6f 75 20 77 69 6c 6c 20 | 65 76 65 72 20 6e 65 65 |ou will |ever nee|
|00000d30| 64 0d 09 74 6f 20 64 6f | 20 74 68 69 73 2e 0d 09 |d..to do| this...|
|00000d40| 09 0d 09 54 68 65 20 66 | 69 6c 65 20 70 72 6f 20 |...The f|ile pro |
|00000d50| 46 69 74 5f 69 6e 74 65 | 72 66 61 63 65 2e 63 20 |Fit_inte|rface.c |
|00000d60| 70 72 6f 76 69 64 65 73 | 20 61 20 70 72 65 64 69 |provides| a predi|
|00000d70| 66 69 6e 65 64 20 66 75 | 6e 63 74 69 6f 6e 20 6d |fined fu|nction m|
|00000d80| 61 69 6e 20 74 68 61 74 | 20 70 65 72 66 6f 72 6d |ain that| perform|
|00000d90| 65 73 20 61 6c 6c 20 74 | 68 65 20 6e 65 63 65 73 |es all t|he neces|
|00000da0| 73 61 72 79 0d 09 63 61 | 6c 6c 73 2c 20 77 69 74 |sary..ca|lls, wit|
|00000db0| 68 20 74 68 65 20 72 69 | 67 68 74 20 70 61 72 61 |h the ri|ght para|
|00000dc0| 6d 65 74 65 72 73 2c 20 | 74 6f 20 61 20 73 65 74 |meters, |to a set|
|00000dd0| 20 6f 66 20 66 75 6e 63 | 74 69 6f 6e 73 20 63 61 | of func|tions ca|
|00000de0| 6c 6c 65 64 2c 20 61 73 | 20 79 6f 75 20 6d 69 67 |lled, as| you mig|
|00000df0| 68 74 20 65 78 70 65 63 | 74 2c 0d 09 66 69 72 73 |ht expec|t,..firs|
|00000e00| 74 2c 20 63 68 65 63 6b | 2c 20 64 65 72 69 76 61 |t, check|, deriva|
|00000e10| 74 69 76 65 73 2c 20 72 | 75 6e 2c 20 65 74 63 2e |tives, r|un, etc.|
|00000e20| 20 54 68 65 73 65 20 66 | 75 6e 63 74 69 6f 6e 73 | These f|unctions|
|00000e30| 20 63 6f 72 72 65 73 70 | 6f 6e 64 20 65 78 61 63 | corresp|ond exac|
|00000e40| 74 6c 79 20 74 6f 20 74 | 68 65 20 66 75 6e 63 74 |tly to t|he funct|
|00000e50| 69 6f 6e 73 20 79 6f 75 | 0d 09 64 65 66 69 6e 65 |ions you|..define|
|00000e60| 20 77 68 65 6e 20 64 65 | 66 69 6e 69 6e 67 20 66 | when de|fining f|
|00000e70| 75 6e 63 74 69 6f 6e 73 | 20 61 6e 64 20 70 72 6f |unctions| and pro|
|00000e80| 67 72 61 6d 73 20 77 69 | 74 68 69 6e 20 70 72 6f |grams wi|thin pro|
|00000e90| 20 46 69 74 2e 0d 09 0d | 09 41 6c 6c 20 79 6f 75 | Fit....|.All you|
|00000ea0| 20 6e 65 65 64 20 74 6f | 20 64 6f 20 69 73 20 66 | need to| do is f|
|00000eb0| 69 6c 6c 20 74 68 65 6d | 20 69 6e 20 61 63 63 6f |ill them| in acco|
|00000ec0| 72 64 69 6e 67 20 74 6f | 20 79 6f 75 72 20 6e 65 |rding to| your ne|
|00000ed0| 65 64 65 73 2e 0d 09 0d | 09 55 6e 6c 65 73 73 20 |edes....|.Unless |
|00000ee0| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 70 72 6f 64 |you want| to prod|
|00000ef0| 75 63 65 20 73 6f 6d 65 | 20 61 64 76 61 6e 63 65 |uce some| advance|
|00000f00| 64 2c 20 65 78 6f 74 69 | 63 20 66 75 6e 63 74 69 |d, exoti|c functi|
|00000f10| 6f 6e 61 6c 69 74 79 20 | 69 6e 20 79 6f 75 72 20 |onality |in your |
|00000f20| 65 78 74 65 72 6e 61 6c | 20 6d 6f 64 75 6c 65 2c |external| module,|
|00000f30| 20 79 6f 75 0d 09 64 6f | 20 6e 6f 74 20 6e 65 65 | you..do| not nee|
|00000f40| 64 20 74 6f 20 61 63 63 | 65 73 73 20 74 68 65 20 |d to acc|ess the |
|00000f50| 70 61 72 61 6d 65 74 65 | 72 62 6c 6f 63 6b 20 64 |paramete|rblock d|
|00000f60| 69 72 65 63 74 6c 79 2e | 0d 2a 2f 0d 0d 65 6e 75 |irectly.|.*/..enu|
|00000f70| 6d 20 7b 43 50 55 36 38 | 6e 6f 46 50 55 3d 31 2c |m {CPU68|noFPU=1,|
|00000f80| 20 43 50 55 36 38 46 50 | 55 2c 20 43 50 55 50 6f | CPU68FP|U, CPUPo|
|00000f90| 77 65 72 50 43 7d 3b 09 | 2f 2a 20 54 68 65 20 74 |werPC};.|/* The t|
|00000fa0| 79 70 65 20 6f 66 20 63 | 6f 64 65 20 67 65 6e 65 |ype of c|ode gene|
|00000fb0| 72 61 74 65 64 2e 20 2a | 2f 0d 65 6e 75 6d 20 7b |rated. *|/.enum {|
|00000fc0| 09 73 65 74 75 70 3d 30 | 2c 09 09 09 09 09 09 09 |.setup=0|,.......|
|00000fd0| 0d 09 09 70 72 6f 67 49 | 6e 69 74 69 61 6c 69 7a |...progI|nitializ|
|00000fe0| 65 3d 31 31 2c 70 72 6f | 67 52 75 6e 2c 0d 09 09 |e=11,pro|gRun,...|
|00000ff0| 66 75 6e 63 49 6e 69 74 | 69 61 6c 69 7a 65 3d 32 |funcInit|ialize=2|
|00001000| 31 2c 66 75 6e 63 43 68 | 65 63 6b 2c 66 75 6e 63 |1,funcCh|eck,func|
|00001010| 46 69 72 73 74 2c 66 75 | 6e 63 46 75 6e 63 2c 66 |First,fu|ncFunc,f|
|00001020| 75 6e 63 44 65 72 69 76 | 61 74 69 76 65 73 2c 66 |uncDeriv|atives,f|
|00001030| 75 6e 63 4c 61 73 74 2c | 0d 09 09 63 6c 65 61 6e |uncLast,|...clean|
|00001040| 55 70 3d 33 31 0d 09 20 | 7d 3b 20 09 09 09 09 09 |Up=31.. |}; .....|
|00001050| 09 09 09 09 2f 2a 20 70 | 6f 73 73 69 62 6c 65 20 |..../* p|ossible |
|00001060| 76 61 6c 75 65 73 20 6f | 66 20 73 65 6c 65 63 74 |values o|f select|
|00001070| 6f 72 20 2a 2f 0d 0d 20 | 0d 23 69 66 20 64 65 66 |or */.. |.#if def|
|00001080| 69 6e 65 64 28 70 6f 77 | 65 72 63 29 20 7c 7c 20 |ined(pow|erc) || |
|00001090| 64 65 66 69 6e 65 64 20 | 28 5f 5f 70 6f 77 65 72 |defined |(__power|
|000010a0| 63 29 0d 23 70 72 61 67 | 6d 61 20 6f 70 74 69 6f |c).#prag|ma optio|
|000010b0| 6e 73 20 61 6c 69 67 6e | 3d 6d 61 63 36 38 6b 0d |ns align|=mac68k.|
|000010c0| 23 65 6e 64 69 66 0d 74 | 79 70 65 64 65 66 20 73 |#endif.t|ypedef s|
|000010d0| 74 72 75 63 74 20 7b 0d | 20 20 09 09 70 61 73 63 |truct {.| ..pasc|
|000010e0| 61 6c 20 76 6f 69 64 20 | 28 2a 52 75 6e 54 69 6d |al void |(*RunTim|
|000010f0| 65 50 72 6f 63 29 20 28 | 76 6f 69 64 2a 20 70 62 |eProc) (|void* pb|
|00001100| 29 3b 09 09 2f 2a 20 74 | 68 65 20 70 61 72 61 6d |);../* t|he param|
|00001110| 65 74 65 72 20 69 73 20 | 6f 66 20 74 79 70 65 20 |eter is |of type |
|00001120| 22 52 75 6e 54 69 6d 65 | 50 61 72 61 6d 52 65 63 |"RunTime|ParamRec|
|00001130| 2a 22 20 2a 2f 0d 20 20 | 09 09 09 2f 2a 20 63 61 |*" */. |.../* ca|
|00001140| 6c 6c 20 62 61 63 6b 20 | 72 6f 75 74 69 6e 65 20 |ll back |routine |
|00001150| 66 6f 72 20 70 72 6f 20 | 46 69 74 09 09 2a 2f 0d |for pro |Fit..*/.|
|00001160| 20 20 09 09 09 2f 2a 20 | 74 68 65 20 65 78 74 65 | .../* |the exte|
|00001170| 72 6e 61 6c 20 6d 6f 64 | 75 6c 65 20 75 73 65 73 |rnal mod|ule uses|
|00001180| 20 74 68 69 73 20 62 6f | 74 74 6c 65 6e 65 63 6b | this bo|ttleneck|
|00001190| 20 74 6f 20 63 61 6c 6c | 20 61 6c 6c 20 72 6f 75 | to call| all rou|
|000011a0| 74 69 6e 65 73 20 09 2a | 2f 0d 20 20 09 09 09 2f |tines .*|/. .../|
|000011b0| 2a 20 70 72 6f 76 69 64 | 65 64 20 62 79 20 70 72 |* provid|ed by pr|
|000011c0| 6f 20 46 69 74 20 2a 2f | 0d 20 20 09 09 0d 20 20 |o Fit */|. ... |
|000011d0| 20 20 20 20 20 20 50 74 | 72 09 09 09 67 6c 6f 62 | Pt|r...glob|
|000011e0| 61 6c 73 3b 20 09 2f 2a | 20 67 6c 6f 62 61 6c 20 |als; ./*| global |
|000011f0| 76 61 72 69 61 62 6c 65 | 20 73 70 61 63 65 20 28 |variable| space (|
|00001200| 64 65 66 69 6e 65 64 20 | 69 66 20 73 65 6c 65 63 |defined |if selec|
|00001210| 74 6f 72 3e 30 29 20 2a | 2f 0d 20 20 20 20 20 20 |tor>0) *|/. |
|00001220| 20 20 09 09 09 09 09 09 | 2f 2a 20 61 6e 64 20 69 | ......|/* and i|
|00001230| 66 20 72 65 71 75 69 72 | 65 64 47 6c 6f 62 61 6c |f requir|edGlobal|
|00001240| 73 20 77 61 73 20 73 65 | 74 20 3e 30 20 69 6e 20 |s was se|t >0 in |
|00001250| 53 65 74 55 70 2e 20 2a | 2f 0d 0d 09 09 2f 2a 20 |SetUp. *|/..../* |
|00001260| 70 61 72 61 6d 65 74 65 | 72 73 20 74 6f 20 62 65 |paramete|rs to be|
|00001270| 20 73 65 74 20 77 68 65 | 6e 20 73 65 6c 65 63 74 | set whe|n select|
|00001280| 6f 72 3d 3d 73 65 74 75 | 70 3d 3d 30 20 2a 2f 0d |or==setu|p==0 */.|
|00001290| 09 09 73 68 6f 72 74 20 | 09 76 65 72 73 69 6f 6e |..short |.version|
|000012a0| 4e 75 6d 62 65 72 3b 09 | 2f 2a 20 74 68 65 20 70 |Number;.|/* the p|
|000012b0| 72 65 73 65 6e 74 20 69 | 6d 70 6c 65 6d 65 6e 74 |resent i|mplement|
|000012c0| 61 74 69 6f 6e 20 2a 2f | 0d 09 09 73 68 6f 72 74 |ation */|...short|
|000012d0| 20 09 6d 6f 64 75 6c 65 | 4b 69 6e 64 3b 20 20 20 | .module|Kind; |
|000012e0| 20 20 2f 2a 20 7b 69 73 | 46 75 6e 63 74 69 6f 6e | /* {is|Function|
|000012f0| 2c 20 69 73 50 72 6f 67 | 72 61 6d 2c 20 69 73 4d |, isProg|ram, isM|
|00001300| 61 63 72 6f 7d 20 2a 2f | 0d 09 09 73 68 6f 72 74 |acro} */|...short|
|00001310| 20 20 20 63 6f 64 65 54 | 79 70 65 3b 09 09 2f 2a | codeT|ype;../*|
|00001320| 20 7b 43 50 55 36 38 6e | 6f 46 50 55 3d 31 2c 20 | {CPU68n|oFPU=1, |
|00001330| 43 50 55 36 38 46 50 55 | 2c 20 43 50 55 50 6f 77 |CPU68FPU|, CPUPow|
|00001340| 65 72 50 43 7d 20 2a 2f | 0d 09 09 53 74 72 32 35 |erPC} */|...Str25|
|00001350| 35 20 20 6e 61 6d 65 3b | 09 09 09 2f 2a 20 74 68 |5 name;|.../* th|
|00001360| 65 20 6e 61 6d 65 20 6f | 66 20 79 6f 75 72 20 65 |e name o|f your e|
|00001370| 78 74 65 72 6e 61 6c 20 | 6d 6f 64 75 6c 65 20 2a |xternal |module *|
|00001380| 2f 0d 09 09 6c 6f 6e 67 | 20 20 20 20 72 65 71 75 |/...long| requ|
|00001390| 69 72 65 64 47 6c 6f 62 | 61 6c 73 3b 2f 2a 20 67 |iredGlob|als;/* g|
|000013a0| 6c 6f 62 61 6c 20 6d 65 | 6d 6f 72 79 20 72 65 71 |lobal me|mory req|
|000013b0| 75 69 72 65 64 2e 20 49 | 66 20 74 68 69 73 20 69 |uired. I|f this i|
|000013c0| 73 20 3e 30 20 70 72 6f | 20 46 69 74 20 61 6c 6c |s >0 pro| Fit all|
|000013d0| 6f 63 61 74 65 73 20 74 | 68 65 20 09 09 2a 2f 0d |ocates t|he ..*/.|
|000013e0| 09 09 09 09 09 09 09 09 | 2f 2a 20 72 65 71 75 69 |........|/* requi|
|000013f0| 72 65 64 20 6d 65 6d 6f | 72 79 20 61 6e 64 20 72 |red memo|ry and r|
|00001400| 65 74 75 72 6e 73 20 61 | 20 70 6f 69 6e 74 65 72 |eturns a| pointer|
|00001410| 20 74 6f 20 69 74 20 69 | 6e 20 74 68 65 20 70 6f | to it i|n the po|
|00001420| 69 6e 74 65 72 20 09 09 | 2a 2f 0d 09 09 09 09 09 |inter ..|*/......|
|00001430| 09 09 09 2f 2a 20 22 67 | 6c 6f 62 61 6c 73 22 2e |.../* "g|lobals".|
|00001440| 20 44 6f 20 6e 6f 74 20 | 74 6f 75 63 68 20 74 68 | Do not |touch th|
|00001450| 65 20 70 6f 69 6e 74 65 | 72 20 76 61 6c 75 65 2e |e pointe|r value.|
|00001460| 20 70 72 6f 20 46 69 74 | 20 69 73 20 72 65 73 70 | pro Fit| is resp|
|00001470| 6f 6e 73 69 62 6c 65 20 | 2a 2f 0d 09 09 09 09 09 |onsible |*/......|
|00001480| 09 09 09 2f 2a 20 66 6f | 72 20 61 6c 6c 6f 63 61 |.../* fo|r alloca|
|00001490| 74 69 6e 67 20 41 4e 44 | 20 64 65 61 6c 6c 6f 63 |ting AND| dealloc|
|000014a0| 61 74 69 6e 67 20 69 74 | 2e 20 09 2a 2f 0d 0d 09 |ating it|. .*/...|
|000014b0| 09 2f 2a 20 67 65 6e 65 | 72 61 6c 20 69 6e 66 6f |./* gene|ral info|
|000014c0| 20 70 72 6f 76 69 64 65 | 64 20 62 79 20 70 72 6f | provide|d by pro|
|000014d0| 20 46 69 74 20 2a 2f 0d | 09 09 64 6f 75 62 6c 65 | Fit */.|..double|
|000014e0| 20 09 76 5b 33 30 5d 3b | 20 09 09 09 2f 2a 20 61 | .v[30];| .../* a|
|000014f0| 6e 20 61 72 72 61 79 20 | 66 6f 72 20 67 65 6e 65 |n array |for gene|
|00001500| 72 61 6c 20 70 75 72 70 | 6f 73 65 20 75 73 65 20 |ral purp|ose use |
|00001510| 69 6e 20 74 68 65 20 65 | 78 74 65 72 6e 61 6c 20 |in the e|xternal |
|00001520| 6d 6f 64 75 6c 65 20 2a | 2f 0d 0d 0d 09 2f 2a 20 |module *|/..../* |
|00001530| 74 68 65 20 66 6f 6c 6c | 6f 77 69 6e 67 20 65 6e |the foll|owing en|
|00001540| 74 72 69 65 73 20 63 61 | 6e 20 6f 6e 6c 79 20 62 |tries ca|n only b|
|00001550| 65 20 75 73 65 64 20 62 | 79 20 66 75 6e 63 74 69 |e used b|y functi|
|00001560| 6f 6e 73 2e 20 09 2a 2f | 0d 09 2f 2a 20 74 68 65 |ons. .*/|../* the|
|00001570| 79 20 63 61 6e 20 62 65 | 20 61 63 63 65 73 73 65 |y can be| accesse|
|00001580| 64 20 6f 6e 6c 79 20 77 | 68 65 6e 20 73 65 6c 65 |d only w|hen sele|
|00001590| 63 74 6f 72 3e 30 20 61 | 6e 64 20 77 68 65 6e 20 |ctor>0 a|nd when |
|000015a0| 09 09 2a 2f 0d 09 2f 2a | 20 6d 6f 64 75 6c 65 4b |..*/../*| moduleK|
|000015b0| 69 6e 64 3d 3d 69 73 46 | 75 6e 63 74 69 6f 6e 2e |ind==isF|unction.|
|000015c0| 20 6d 6f 64 75 6c 65 4b | 69 6e 64 20 6d 75 73 74 | moduleK|ind must|
|000015d0| 20 62 65 20 73 65 74 20 | 69 6e 20 53 65 74 55 70 | be set |in SetUp|
|000015e0| 2c 20 77 68 65 6e 20 74 | 68 65 20 65 78 74 65 72 |, when t|he exter|
|000015f0| 6e 61 6c 20 6d 6f 64 75 | 6c 65 20 2a 2f 0d 09 2f |nal modu|le */../|
|00001600| 2a 20 69 73 20 63 61 6c | 6c 65 64 20 66 6f 72 20 |* is cal|led for |
|00001610| 74 68 65 20 66 69 72 73 | 74 20 74 69 6d 65 20 28 |the firs|t time (|
|00001620| 77 69 74 68 20 73 65 6c | 65 63 74 6f 72 3d 3d 30 |with sel|ector==0|
|00001630| 29 20 09 2a 2f 0d 09 09 | 0d 09 09 2f 2a 20 70 61 |) .*/...|.../* pa|
|00001640| 72 61 6d 65 74 65 72 73 | 20 74 6f 20 62 65 20 73 |rameters| to be s|
|00001650| 65 74 20 62 79 20 66 75 | 6e 63 49 6e 69 74 69 61 |et by fu|ncInitia|
|00001660| 6c 69 7a 65 20 2a 2f 0d | 09 09 42 6f 6f 6c 65 61 |lize */.|..Boolea|
|00001670| 6e 20 09 09 64 75 6d 6d | 79 3b 09 09 09 2f 2a 75 |n ..dumm|y;.../*u|
|00001680| 6e 75 73 65 64 20 2a 2f | 0d 09 09 42 6f 6f 6c 65 |nused */|...Boole|
|00001690| 61 6e 20 09 09 68 61 73 | 44 65 72 69 76 61 74 69 |an ..has|Derivati|
|000016a0| 76 65 73 3b 09 2f 2a 20 | 74 72 75 65 20 69 66 20 |ves;./* |true if |
|000016b0| 70 72 6f 46 69 74 20 6d | 75 73 74 20 63 61 6c 6c |proFit m|ust call|
|000016c0| 20 74 68 65 20 66 75 6e | 63 74 69 6f 6e 20 22 44 | the fun|ction "D|
|000016d0| 65 72 69 76 61 74 69 76 | 65 73 22 20 64 65 66 69 |erivativ|es" defi|
|000016e0| 6e 65 64 20 69 6e 20 79 | 6f 75 72 20 6d 6f 64 75 |ned in y|our modu|
|000016f0| 6c 65 20 20 20 2a 2f 0d | 09 09 09 09 09 09 09 09 |le */.|........|
|00001700| 09 09 2f 2a 20 59 6f 75 | 20 63 61 6e 20 73 65 74 |../* You| can set|
|00001710| 20 74 68 69 73 20 70 61 | 72 61 6d 74 65 72 20 74 | this pa|ramter t|
|00001720| 6f 20 74 72 75 65 2c 20 | 61 6e 64 20 6f 6e 6c 79 |o true, |and only|
|00001730| 20 63 61 6c 63 75 6c 61 | 74 65 20 61 20 66 65 77 | calcula|te a few|
|00001740| 20 64 65 72 69 76 61 74 | 69 76 65 73 20 28 64 79 | derivat|ives (dy|
|00001750| 64 61 5b 5d 20 76 61 6c | 75 65 73 29 20 2a 2f 0d |da[] val|ues) */.|
|00001760| 09 09 09 09 09 09 09 09 | 09 09 2f 2a 20 69 6e 20 |........|../* in |
|00001770| 79 6f 75 72 20 22 44 65 | 72 69 76 61 74 69 76 65 |your "De|rivative|
|00001780| 73 22 20 66 75 6e 63 74 | 69 6f 6e 2e 20 70 72 6f |s" funct|ion. pro|
|00001790| 20 46 69 74 20 77 69 6c | 6c 20 74 61 6b 65 20 63 | Fit wil|l take c|
|000017a0| 61 72 65 20 6f 66 20 63 | 61 6c 63 75 6c 61 74 69 |are of c|alculati|
|000017b0| 6e 67 20 74 68 65 20 72 | 65 73 74 20 6e 75 6d 65 |ng the r|est nume|
|000017c0| 72 69 63 61 6c 6c 79 2e | 20 2a 2f 0d 09 09 09 09 |rically.| */.....|
|000017d0| 09 09 09 09 09 09 2f 2a | 20 49 66 20 79 6f 75 20 |....../*| If you |
|000017e0| 73 65 74 20 74 68 69 73 | 20 68 61 73 44 65 72 69 |set this| hasDeri|
|000017f0| 76 61 74 69 76 65 73 20 | 74 6f 20 74 72 75 65 20 |vatives |to true |
|00001800| 61 6e 64 20 6c 65 61 76 | 65 20 79 6f 75 72 20 64 |and leav|e your d|
|00001810| 65 66 69 6e 69 74 69 6f | 6e 20 6f 66 20 22 44 65 |efinitio|n of "De|
|00001820| 72 69 76 61 74 69 76 65 | 73 22 20 65 6d 70 74 79 |rivative|s" empty|
|00001830| 2c 20 74 68 65 6e 20 2a | 2f 0d 09 09 09 09 09 09 |, then *|/.......|
|00001840| 09 09 09 09 2f 2a 20 79 | 6f 75 20 68 61 76 65 20 |..../* y|ou have |
|00001850| 74 68 65 20 73 61 6d 65 | 20 72 65 73 75 6c 74 20 |the same| result |
|00001860| 6f 62 74 61 69 6e 65 64 | 20 77 68 65 6e 20 73 65 |obtained| when se|
|00001870| 74 74 69 6e 67 20 68 61 | 73 44 65 72 69 76 61 74 |tting ha|sDerivat|
|00001880| 69 76 65 73 20 74 6f 20 | 66 61 6c 73 65 3a 20 70 |ives to |false: p|
|00001890| 72 6f 46 69 74 20 63 61 | 6c 63 75 6c 61 74 65 73 |roFit ca|lculates|
|000018a0| 20 61 6c 6c 20 2a 2f 0d | 09 09 09 09 09 09 09 09 | all */.|........|
|000018b0| 09 09 2f 2a 20 64 65 72 | 69 76 61 74 69 76 65 73 |../* der|ivatives|
|000018c0| 20 6e 75 6d 65 72 69 63 | 61 6c 6c 79 2e 09 09 09 | numeric|ally....|
|000018d0| 2a 2f 0d 09 09 53 74 72 | 32 35 35 09 09 09 64 65 |*/...Str|255...de|
|000018e0| 73 63 72 31 2c 64 65 73 | 63 72 32 3b 09 2f 2a 20 |scr1,des|cr2;./* |
|000018f0| 64 65 73 63 72 69 70 74 | 69 6f 6e 20 74 6f 20 61 |descript|ion to a|
|00001900| 70 70 65 61 72 20 69 6e | 20 70 61 72 61 6d 65 74 |ppear in| paramet|
|00001910| 65 72 73 20 77 69 6e 64 | 6f 77 20 20 2a 2f 0d 09 |ers wind|ow */..|
|00001920| 09 73 68 6f 72 74 09 09 | 09 6e 75 6d 62 65 72 4f |.short..|.numberO|
|00001930| 66 50 61 72 61 6d 73 3b | 09 2f 2a 20 6e 75 6d 62 |fParams;|./* numb|
|00001940| 65 72 20 6f 66 20 70 61 | 72 61 6d 65 74 65 72 73 |er of pa|rameters|
|00001950| 20 75 73 65 64 20 62 79 | 20 74 68 65 20 66 75 6e | used by| the fun|
|00001960| 63 74 69 6f 6e 20 20 2a | 2f 0d 09 09 44 65 66 61 |ction *|/...Defa|
|00001970| 75 6c 74 50 61 72 61 6d | 49 6e 66 6f 20 61 30 3b |ultParam|Info a0;|
|00001980| 09 09 09 2f 2a 20 61 6c | 6c 20 70 61 72 61 6d 65 |.../* al|l parame|
|00001990| 74 65 72 20 64 65 66 61 | 75 6c 74 20 73 65 74 74 |ter defa|ult sett|
|000019a0| 69 6e 67 73 2e 20 20 2a | 2f 0d 0d 09 09 2f 2a 70 |ings. *|/..../*p|
|000019b0| 61 72 61 6d 65 74 65 72 | 73 20 75 73 65 64 20 69 |arameter|s used i|
|000019c0| 6e 20 63 68 65 63 6b 2a | 2f 0d 09 09 73 68 6f 72 |n check*|/...shor|
|000019d0| 74 20 09 09 09 70 61 72 | 61 6d 4e 6f 3b 09 09 2f |t ...par|amNo;../|
|000019e0| 2a 20 63 75 72 72 65 6e | 74 20 70 61 72 6d 20 6e |* curren|t parm n|
|000019f0| 75 6d 62 65 72 2c 20 66 | 6f 72 20 63 68 65 63 6b |umber, f|or check|
|00001a00| 20 09 09 09 2a 2f 0d 09 | 09 73 68 6f 72 74 09 09 | ...*/..|.short..|
|00001a10| 20 09 61 6e 73 77 65 72 | 3b 09 09 09 2f 2a 20 72 | .answer|;.../* r|
|00001a20| 65 74 75 72 6e 20 76 61 | 6c 75 65 20 6f 66 20 63 |eturn va|lue of c|
|00001a30| 68 65 63 6b 2c 20 74 79 | 70 65 20 43 68 65 63 6b |heck, ty|pe Check|
|00001a40| 50 41 6e 73 77 65 72 20 | 2a 2f 0d 09 09 0d 09 09 |PAnswer |*/......|
|00001a50| 2f 2a 70 61 72 61 6d 65 | 74 65 72 73 20 75 73 65 |/*parame|ters use|
|00001a60| 64 20 69 6e 20 66 75 6e | 63 20 61 6e 64 20 69 6e |d in fun|c and in|
|00001a70| 20 64 65 72 69 76 61 74 | 69 76 65 73 2e 20 2a 2f | derivat|ives. */|
|00001a80| 0d 09 09 64 6f 75 62 6c | 65 2a 20 09 09 78 3b 09 |...doubl|e* ..x;.|
|00001a90| 09 09 09 2f 2a 20 78 20 | 76 61 6c 75 65 20 2a 2f |.../* x |value */|
|00001aa0| 0d 09 09 64 6f 75 62 6c | 65 2a 20 20 09 09 79 3b |...doubl|e* ..y;|
|00001ab0| 09 20 09 09 09 2f 2a 20 | 79 20 76 61 6c 75 65 2c |. .../* |y value,|
|00001ac0| 20 72 65 74 75 72 6e 20 | 76 61 6c 75 65 20 6f 66 | return |value of|
|00001ad0| 20 61 20 66 75 6e 63 74 | 69 6f 6e 2e 20 2a 2f 0d | a funct|ion. */.|
|00001ae0| 09 09 50 61 72 61 6d 41 | 72 72 61 79 2a 09 09 61 |..ParamA|rray*..a|
|00001af0| 3b 09 09 09 09 2f 2a 20 | 70 61 72 61 6d 65 74 65 |;..../* |paramete|
|00001b00| 72 20 76 61 6c 75 65 73 | 2c 20 73 65 74 20 74 6f |r values|, set to|
|00001b10| 20 61 30 2e 76 61 6c 75 | 65 20 62 65 66 6f 72 65 | a0.valu|e before|
|00001b20| 20 63 61 6c 6c 69 6e 67 | 20 66 69 72 73 74 2e 20 | calling| first. |
|00001b30| 2a 2f 0d 09 09 50 61 72 | 61 6d 41 72 72 61 79 2a |*/...Par|amArray*|
|00001b40| 09 09 64 79 64 61 3b 09 | 09 09 2f 2a 20 75 73 65 |..dyda;.|../* use|
|00001b50| 64 20 62 79 20 64 65 72 | 69 76 61 74 69 76 65 73 |d by der|ivatives|
|00001b60| 2c 20 73 65 74 20 74 6f | 20 74 68 65 20 64 65 72 |, set to| the der|
|00001b70| 69 76 61 74 69 76 65 73 | 20 6f 66 20 74 68 65 20 |ivatives| of the |
|00001b80| 66 75 6e 63 74 69 6f 6e | 20 77 69 74 68 20 72 65 |function| with re|
|00001b90| 73 70 65 63 74 20 74 6f | 20 69 74 73 20 70 61 72 |spect to| its par|
|00001ba0| 61 6d 65 74 65 72 73 2e | 20 2a 2f 0d 09 09 09 09 |ameters.| */.....|
|00001bb0| 09 09 09 09 09 09 2f 2a | 20 49 66 20 61 20 64 79 |....../*| If a dy|
|00001bc0| 64 61 5b 5d 20 76 61 6c | 75 65 20 69 73 20 6e 6f |da[] val|ue is no|
|00001bd0| 74 20 73 65 74 2c 20 70 | 72 6f 20 46 69 74 20 63 |t set, p|ro Fit c|
|00001be0| 61 6c 63 75 6c 61 74 65 | 73 20 74 68 61 74 20 64 |alculate|s that d|
|00001bf0| 65 72 69 76 61 74 69 76 | 65 20 6e 75 6d 65 72 69 |erivativ|e numeri|
|00001c00| 63 61 6c 6c 79 2e 20 2a | 2f 0d 09 09 2f 2a 70 6f |cally. *|/.../*po|
|00001c10| 69 6e 74 65 72 20 74 6f | 20 74 68 65 20 67 6c 6f |inter to| the glo|
|00001c20| 62 61 6c 20 73 63 72 61 | 74 63 68 20 2a 2f 0d 09 |bal scra|tch */..|
|00001c30| 09 47 6c 6f 62 61 6c 53 | 63 72 61 74 63 68 2a 09 |.GlobalS|cratch*.|
|00001c40| 67 6c 6f 62 61 6c 53 63 | 72 61 74 63 68 3b 09 2f |globalSc|ratch;./|
|00001c50| 2a 20 67 6c 6f 62 61 6c | 20 64 61 74 61 20 74 6f |* global| data to|
|00001c60| 20 62 65 20 61 63 65 73 | 73 65 64 20 62 79 20 61 | be aces|sed by a|
|00001c70| 6c 6c 20 6d 6f 64 75 6c | 65 73 20 2a 2f 09 09 0d |ll modul|es */...|
|00001c80| 09 09 46 53 53 70 65 63 | 09 09 09 6d 6f 64 75 6c |..FSSpec|...modul|
|00001c90| 65 46 69 6c 65 3b 09 09 | 2f 2a 20 74 68 65 20 66 |eFile;..|/* the f|
|00001ca0| 69 6c 65 20 77 68 65 72 | 65 20 74 68 69 73 20 65 |ile wher|e this e|
|00001cb0| 78 74 65 72 6e 61 6c 20 | 6d 6f 64 75 6c 65 20 69 |xternal |module i|
|00001cc0| 73 20 69 6e 20 2a 2f 0d | 0d 20 20 7d 20 45 78 74 |s in */.|. } Ext|
|00001cd0| 4d 6f 64 75 6c 65 73 50 | 61 72 61 6d 42 6c 6f 63 |ModulesP|aramBloc|
|00001ce0| 6b 3b 0d 23 69 66 20 64 | 65 66 69 6e 65 64 28 70 |k;.#if d|efined(p|
|00001cf0| 6f 77 65 72 63 29 20 7c | 7c 20 64 65 66 69 6e 65 |owerc) ||| define|
|00001d00| 64 20 28 5f 5f 70 6f 77 | 65 72 63 29 0d 23 70 72 |d (__pow|erc).#pr|
|00001d10| 61 67 6d 61 20 6f 70 74 | 69 6f 6e 73 20 61 6c 69 |agma opt|ions ali|
|00001d20| 67 6e 3d 72 65 73 65 74 | 0d 23 65 6e 64 69 66 0d |gn=reset|.#endif.|
|00001d30| 0d 0d 0d 23 65 6e 64 69 | 66 0d 00 00 00 00 00 00 |...#endi|f.......|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00001d90| 18 f8 ff e4 4e 5e 4e 75 | 4e 56 00 00 48 e7 11 08 |....N^Nu|NV..H...|
|00001da0| 30 2e 00 0e 48 c0 2f 00 | 2f 2e 00 08 4e ba fe e8 |0...H./.|/...N...|
|00001db0| 11 70 72 6f 46 69 74 5f | 70 61 72 61 6d 42 6c 6b |.proFit_|paramBlk|
|00001dc0| 2e 68 02 00 00 00 54 45 | 58 54 4b 41 48 4c 01 00 |.h....TE|XTKAHL..|
|00001dd0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 00 00 00 00 |..TEXTKA|HL......|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 a9 5e cc 4a 00 00 | 1c ba 00 00 01 9a ff f2 |...^.J..|........|
|00001e00| 2f 2e 00 10 48 6e ff f4 | a9 8e 4c ee 10 80 ff ea |/...Hn..|..L.....|
|00001e10| 4e 5e 4e 75 4e 56 ff ee | 2f 0c 28 6e 00 08 48 6e |N^NuNV..|/.(n..Hn|
|00001e20| ff ee a8 74 2f 0c a8 73 | 2f 0c 3f 2e 00 0e 48 6e |...t/..s|/.?...Hn|
|00001e30| ff f2 48 6e ff fc 48 6e | ff f4 a9 8d 48 6e ff f4 |..Hn..Hn|....Hn..|
|00001e40| a9 28 2f 2e ff ee a8 73 | 28 6e ff ea 4e 5e 4e 75 |.(/....s|(n..N^Nu|
|00001e50| 4e 56 00 00 48 e7 03 00 | 2c 2e 00 0c 2e 2e 00 08 |NV..H...|,.......|
|00001e60| 60 0a bc 87 6c 04 9e 86 | 60 02 9c 87 bc 87 66 f2 |`...l...|`.....f.|
|00001e70| 20 07 4c ee 00 c0 ff f8 | 4e 5e 4e 75 4e 56 00 00 | .L.....|N^NuNV..|
|00001e80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001e90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ea0| 00 00 00 00 00 00 00 03 | 00 04 00 57 00 04 02 07 |........|...W....|
|00001eb0| 02 7d 00 57 00 04 02 07 | 02 7d ad 4a 9d cb 00 00 |.}.W....|.}.J....|
|00001ec0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 04 |........|........|
|00001ed0| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00001ee0| 00 00 00 46 02 3f 4e 5c | 1c a6 00 00 00 1c 00 46 |...F.?N\|.......F|
|00001ef0| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00001f00| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00001f10| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+