HP 10413 Datasheet Page 221

  • Download
  • Add to my manuals
  • Print
  • Page
    / 331
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 220
221
The final option is ‘Show function’. The program this runs is a little more
complex than the ones shown so far and illustrates a useful technique.
The line: '((X+2)^3+4)/(X-2)' F1(X):
stores the expression
()
()
3
24
2
x
x
++
into the function F1(X).
Notice the way the function is in single quotes so that the algebraic
expression itself is used rather than its value when evaluated using the
current contents of memory X. If you wanted to graph this function by setting
the post execution view number to 1 (the PLOT view), then you would need to
include the command CHECK 1: in order to it or it would not graph.
You may wish to edit the .MSG.SV and.MSG.FN program to try this.
The next lines display the expression using the four options available.
The line: GROB G1;F1(QUOTE(X));0:
converts the expression F1(X) into a Graphic Object (GROB). The number at
the end, which changes with each repetition, controls the font used to display
the function.
The line:
DISPLAY G1:
displays this GROB on the screen, and the FREEZE command freezes the
display until a key is pressed.
Finally the LINE and BOX commands commands are used to draw an oblique
line across the screen and a box near the center. Notice the use of Xmin,
Xmax, Ymin and Ymax in the LINE command. This means that the line
would appear the same even if the screen were to be re-sized in the PLOT
SETUP view. The FREEZE command is needed to ensure that your screen is
visible to the user and not immediately replaced by the next view.
Note that SETVIEWS has a “Start” option and also a final option consisting of
a single space in quotes which is simply to link in the .MSG.SV program so
that it is transmitted with the aplet. It does not appear on the menu.
Page view 220
1 2 ... 216 217 218 219 220 221 222 223 224 225 226 ... 330 331

Comments to this Manuals

No comments