Running The Program - HP 50g User Manual

Graphing calculator
Hide thumbs Also See for 50g:
Table of Contents

Advertisement

separate variables in the calculator. These sub-programs are then linked by a
main program, that we will call MOHRCIRCL. We will first create a sub-
directory called MOHRC within the HOME directory, and move into that
directory to type the programs.
The next step is to create the main program and sub-programs within the sub-
directory.
The main program MOHRCIRCL uses the following sub-programs:
INDAT: Requests input of x, y, xy from user, produces a list L =
{ x, y, xy} as output.
CC&r: Uses L as input, produces c = ½( x+ y), r = radius of
Mohr's circle, n = angle for principal stresses, as output.
DAXES: Uses c and r as input, determines axes ranges and draws
axes for the Mohr's circle construct
PCIRC: Uses c, r, and n as input, draw's Mohr's circle by producing
a PARAMETRIC plot
DDIAM: Uses L as input, draws the segment AB (see Mohr's circle
figure above), joining the input data points in the Mohr's circle
LBL: Uses L as input, places labels to identify points A and B with
labels " x" and " y".
AXS: Places the labels " " and " " in the x- and y-axes, respectively.
PTTL: Places the title "Mohr's circle" in the figure.

Running the program

If you typed the programs in the order shown above, you will have in your sub-
directory MOHRC the following variables: PTTL, AXS, PLPNT, LBL, PPTS,
DDIAM. Pressing L you find also: PCIRC, DAXES, ATN2, CC&r, INDAT,
MOHRC. Before re-ordering the variables, run the program once by pressing
the soft-key labeled @MOHRC. Use the following:
@MOHRC
25˜
75˜
50`
Launches the main program MOHRCIRCL
Enter x = 25
Enter y = 75
Enter xy = 50, and finish data entry.
Page 22-36

Advertisement

Table of Contents
loading

Table of Contents