20 - 8
Editing File Names and Program Contents
The following are the formulas used for calculating surface area S and volume V
of a regular tetrahedron for which the length of one side is known.
Use the following key operations when inputting the program.
Compare this with the program for calculating the surface area and volume of a
regular octahedron.
As you can see, you can produce the TETRA program by making the following
changes in the OCTA program.
Let's edit OCTA to produce the TETRA program.
1. Edit the program name.
2. Edit the program contents.
366
Use TETRA as the file name.
Length of One Side (A)
A
S = 3 A
2
, V = –––– A
Length of One Side A .. !W4(?)aaA6(g)5(:)
Surface Area S ............ !9d*aAx6(g)5(^)
Volume V ..................... !9c/bc*aAMd
Length of One Side A .. !W4(?)aaA6(g)5(:)
Surface Area S ............ c*!9d*aAx6(g)5(^)
Volume V ..................... !9c/d*aAMd
• Deleting c * (underlined using a wavy line above)
• Changing d to b c (underlined using a solid line above)
6(g)2(REN)TETRA
w
2(EDIT)
eeeeDD
Surface Area (S)
7 cm
10 cm
15 cm
2
3
12
Volume (V)
cm
cm
2
cm
cm
2
cm
cm
2
3
3
3