
Example: Write a user-defined function to calculate the ratio of
surface area to volume of a box. The formula for this
calculation is
A 2{hw + hi + wl)
V hwl
where h, w, and I are the height, width, and length of the
box.
Step 1: First, create a user-defined function BOXS to calculate the
surface area of the box. Use the Equation Writer application
to key in the equation.
EQUATION 1
@ © BOXS r^fm S) H
(ZED S) w dHD S) L © (B
S)CE3 2 Q SHU) © © S)
H®S)W(©S)H
®S)L(T)S)W©S]L
Step 2: Enter the equation and create the user-defined function.
(ENTER)
SHHD
Step 3: Now create a user-defined function BOXR to calculate the
ratio of surface area to volume. Use the Equation Writer
application to key in the equation.
B0HS(K,y,z)
X'yzD
(Slf equation)
© © BOXR (3(0) (3 X
fspc) (3 Y fspcl (3 z © (F)
33 (UO BOXS 30
© © 3 X dED 3 Y (spc)
3 z ©B0©©3 X
©3 Y (^3 2
Step Jf: Enter the equation and create the user-defined function.
I laiwaiTiBHimiianj^wa
(ENTER)
3(DEF)
uaiatl
11
Using Mathematical Functions 11-9
Comentários a estes Manuais