![HP 39gII User Manual Download Page 263](http://html.mh-extra.com/html/hp/39gii/39gii_user-manual_156536263.webp)
Programming
253
The program above calls two other user programs:
ROLLDIE()
and
DICESIMVARS()
.
ROLLDIE()
appears earlier in this chapter. Here's
DICESIMVARS
.
Store it into a new user program.
The program
DICESIMVARS
EXPORT ROLLS,SIDES;
EXPORT DICESIMVARS()
BEGIN
10
ROLLS;
6
SIDES;
END;
Press
V
to see the
custom app menu. Here
you can set the number of
sides of the dice, the
number of rolls, and
execute a simulation.
After running a simulation,
press
P
to see a
histogram of your
simulation results.
Summary of Contents for 39gII
Page 1: ...HP 39gII graphing calculator user s guide Edition1 Part Number NW249 90001 ...
Page 2: ...Printing History Edition 1 November 201 1 ...
Page 32: ...22 Getting started ...
Page 58: ...48 Apps and their views ...
Page 70: ...60 Function app ...
Page 80: ...70 Solve app ...
Page 136: ...126 Polar app ...
Page 140: ...130 Sequence app ...
Page 148: ...138 Finance app ...
Page 152: ...142 Linear Solver app ...
Page 218: ...208 Matrices ...
Page 226: ...216 Notes and Info ...
Page 238: ...228 Variables and memory management ...
Page 318: ...308 Programming ...
Page 340: ...330 Reference information ...
Page 346: ...vi Product Regulatory Information ...