The Museum of HP Calculators

# 3 parameters curve fit for the HP-67

This program is by Aderbal Carlos de Oliveira and is used here by permission.

This program is supplied without representation or warranty of any kind. Aderbal Carlos de Oliveira and The Museum of HP Calculators therefore assume no responsibility and shall have no liability, consequential or otherwise, of any kind arising from the use of this program material or any part thereof.

## Overview

Given M of data points (xi,yi) and a function f(xi,yi,a1,a2,a3) , determine the parameters a1,a2,a3, which are the best fit for the given set of points (xi,yi).

## Listing

```001 *LBLA 31 25 11
002 CLRG 31 43
003 P<->S 31 42
004 *LBLB 31 25 12
005 R/S 84
006 STO0 33 00
007 X<->Y 35 52
008 CHS 42
009 STO6 33 06
010 GSB1 31 22 01
011 STO5 33 05
012 ST+6 33 61 06
013 3 03
014 STOI 35 33
015 *LBL2 31 25 02
016 RCLI 35 34
017 1 01
018 9 09
019 + 61
020 STOI 35 33
021 RCL(i) 34 24
022 EEX 43
023 3 03
024 / 81
025 STO7 33 07
026 ST+(i) 33 61 24
027 GSB1 31 22 01
028 RCL5 34 05
029 - 51
030 RCL7 34 07
031 ST-(i) 33 51 24
032 / 81
033 RCLI 35 34
034 1 01
035 9 09
036 - 51
037 STOI 35 33
038 X<->Y 35 52
039 STO(i) 33 24
040 RCL6 34 06
041 x 71
042 P<->S 31 42
043 ST+(i) 33 61 24
044 P<->S 31 42
045 DSZI 31 33
046 GTO2 22 02
047 1 01
048 9 09
049 STO6 33 06
050 3 03
051 STO0 33 00
052 *LBL3 31 25 03
053 STOI 35 33
054 RCL(i) 34 24
055 STO5 33 05
056 *LBL4 31 25 04
057 RCLI 35 34
058 STO7 33 07
059 RCL5 34 05
060 RCL(i) 34 24
061 x 71
062 RCL6 34 06
063 STOI 35 33
064 1 01
065 ST-6 33 51 06
066 R dn 35 53
067 R dn 35 53
068 ST+(i) 33 61 24
069 RCL7 34 07
070 STOI 35 33
071 DSZI 31 33
072 GTO4 22 04
073 1 01
074 ST-0 33 51 00
075 RCL0 34 00
076 X>0? 31 81
077 GTO3 22 03
078 GTOB 22 12
079 *LBLD 31 25 14
080 P<->S 31 42
081 RCL5 34 05
082 X^2 32 54
083 RCL4 34 04
084 / 81
085 ST-6 33 51 06
086 RCL7 34 07
087 RCL5 34 05
088 x 71
089 RCL4 34 04
090 / 81
091 ST-8 33 51 08
092 RCL5 34 05
093 RCL1 34 01
094 x 71
095 RCL4 34 04
096 / 81
097 ST-2 33 51 02
098 RCL7 34 07
099 RCL1 34 01
100 x 71
101 RCL4 34 04
102 / 81
103 ST-3 33 51 03
104 RCL7 34 07
105 X^2 32 54
106 RCL4 34 04
107 / 81
108 ST-9 33 51 09
109 RCL6 34 06
110 STx3 33 71 03
111 RCL8 34 08
112 RCL2 34 02
113 x 71
114 ST-3 33 51 03
115 RCL6 34 06
116 RCL9 34 09
117 x 71
118 RCL8 34 08
119 X^2 32 54
120 - 51
121 ST/3 33 81 03
122 RCL3 34 03
123 RCL8 34 08
124 x 71
125 ST-2 33 51 02
126 RCL6 34 06
127 ST/2 33 81 02
128 RCL2 34 02
129 RCL5 34 05
130 x 71
131 ST-1 33 51 01
132 RCL3 34 03
133 RCL7 34 07
134 x 71
135 ST-1 33 51 01
136 RCL4 34 04
137 ST/1 33 81 01
138 RCLA 34 11
139 ST-1 33 51 01
140 RCLB 34 12
141 ST-2 33 51 02
142 RCLC 34 13
143 ST-3 33 51 03
144 P<->S 31 42
145 CLRG 31 43
146 P<->S 31 42
147 RCL1 34 01
148 CHS 42
149 STOA 33 11
150 RCL2 34 02
151 CHS 42
152 STOB 33 12
153 RCL3 34 03
154 CHS 42
155 STOC 33 13
156 GTOB 22 12
157 *LBLE 31 25 15
158 STO0 33 00
159 GSB1 31 22 01
160 *LBL1 31 25 01
161 RCL0 34 00
162 ENTER 41
163 X^2 32 54
164 RCLA 34 11
165 x 71
166 X<->Y 35 52
167 CHS 42
168 RCLB 34 12```