Download Print this page

HP 33S User Manual page 8

Hp calculators
Hide thumbs Also See for 33S:

Advertisement

hp calculators
HP 33S Writing a Simple Program
The result is now ready but it is in A and has to be brought back, so another exchange with A is needed.
Press ºwA again, and the answer is ready, if the original number was not zero.
If the original number was zero then it has not been changed, and the result of all the above work is a zero.
However, the result might also be a zero if the calculations produced a number smaller than 10
HP 33S replaces numbers this small with zero. So the result should not be tested, instead flag 0 should be
tested, and if it is set then the original number was zero. In that case, it must be turned into a 1. First press
º·30. Then the 0 can be turned into a 1 using one of several functions that do this, for
example #.
To finish the program, press ºÔ, then leave program mode by typing ¹£.
The program can be tested with a few values of x. The definition of Sinc(x) as Sin(x)÷x. assumes that x is
in radians. (The program does not set radians mode, as a user might intentionally want to calculate
Sin(x)÷x in degrees or gradians.) Set radians mode if it is not set already, and calculate the sinc of 0.2.
Ý20Ë2tC
Confirm that the program works for 0. The program works both in RPN and algebraic modes, so try this in
RPN mode:
¹ä0tC
hp calculators
- 8 -
Figure 15
Figure 16
-499
Figure 17
Figure 18
Figure 19
HP 33S Writing a Simple Program - Version 1.0
. The

Advertisement

loading