EasyManuals Logo

HP 50G User Manual

HP 50G
887 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #748 background imageLoading...
Page #748 background image
Page 22-33
An example of a program using GROB
The following program produces the graph of the sine function including a
frame – drawn with the function BOX – and a GROB to label the graph. Here
is the listing of the program:
«Begin program
RAD Set angle units to radians
131 RB 64 RB PDIM Set PICT screen to 131×64 pixels
-6.28 6.28 XRNG –2. 2. YRNG Set x- and y-ranges
FUNCTION Select FUNCTION type for graphs
‘SIN(X)’ STEQ Store the function sine into EQ
ERASE DRAX LABEL DRAW Clear, draw axes, labels, graph
(-6.28,-2.) (6.28,2.) BOX Draw a frame around the graph
PICT RCL Place contents of PICT on stack
“SINE FUNCTION” Place graph label string in stack
1 GROB Convert string into a small GROB
(-6., 1.5) SWAP Coordinates to place label GROB
GOR Combine PICT with the label GROB
PICT STO Save combined GROB into PICT
{ } PVIEW Bring PICT to the stack
» End program
Save the program under the name GRPR (GROB PRogram). Press @GRPR to run
the program. The output will look like this:
A program with plotting and drawing functions
In this section we develop a program to produce, draw and label Mohr’s circle
for a given condition of two-dimensional stress. The left-hand side figure below
shows the given state of stress in two-dimensions, with σ
xx
and σ
yy
being
normal stresses, and τ
xy
= τ
yx
being shear stresses. The right-hand side figure

Table of Contents

Other manuals for HP 50G

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 50G and is the answer not in the manual?

HP 50G Specifications

General IconGeneral
Digits33 digits
Battery typeCR2032
TypeScientific
Form factorPocket
Weight and Dimensions IconWeight and Dimensions
Weight220 g
Dimensions (WxDxH)87 x 184 x 23.5 mm

Related product manuals