13–12
Programming Techniques
File name 33s-English-Manual-040130-Publication(Edition 2).doc Page : 388
Printed Date : 2004/1/30 Size : 13.7 x 21.2 cm
Example:
Using Flags.
The "Curve Fitting" program in chapter 16 uses flags 0 and 1 to determine
whether to take the natural logarithm of the X– and Y–inputs:
Lines S0003 and S0004 clear both of these flags so that lines W0007 and
W0011 (in the input loop routine) do not take the natural logarithms of the
X– and Y–inputs for a Straight–line model curve.
Line L0003 sets flag 0 so that line W0007 takes the natural log of the
X–input for a Logarithmic–model curve.
Line E0004 sets flag 1 so that line W0011 takes the natural log of the
Y–input for an Exponential–model curve.
Lines P0003 and P0004 set both flags so that lines W0007 and W0011
take the natural logarithms of both the X– and Y–inputs for a Power–model
curve.
Note that lines S0003, S0004, L0004, and E0003 clear flags 0 and 1 to ensure
that they will be set only as required for the four curve models.
Содержание 33S
Страница 1: ... HP 33s scientific calculator user s manual H HP Part number F2216A 90020 Printed in China Edition 2 ...
Страница 14: ......
Страница 15: ...Part 1 Basic Operation ...
Страница 16: ......
Страница 56: ......
Страница 64: ......
Страница 82: ......
Страница 92: ......
Страница 122: ......
Страница 137: ...Operations with Complex Numbers 9 7 c Ù Adds L1 L2 L3 Converts vector back to polar form displays r θ ...
Страница 138: ......
Страница 157: ...Part 2 Programming ...
Страница 158: ......
Страница 184: ......
Страница 210: ......
Страница 222: ......
Страница 255: ...Mathematics Programs 15 33 y y x x m n New coordinate system Old coordinate system 0 0 x P u y v θ ...
Страница 293: ...Part 3 Appendixes and Reference ...
Страница 294: ......
Страница 324: ......
Страница 348: ......