Sharp EL-5230 Operation Manual page 92

Programmable scientific calculator
Table of Contents

Advertisement

Chapter 8: Application Examples
Program code
S=‰(T(T-A)(T-B)(T-C))
Print S
End
Label ERROR
Print"NO TRIANGLE
Wait 1
Print"REENTER
Goto START
Example
Obtain the area of the triangle with the side lengths of 20 cm (A), 35 cm (B)
and 40 cm (C).
Press j to return to the PROG mode menu.
4.
Press 0, select the program 'HERON'
5.
and press e.
• If the values you enter do not satisfy the
conditions to make a triangle (e.g. A + B >
C where A, B, C are the side lengths), the program prompts you to re-
enter the values from the beginning. If you wish to stop the program,
press j.
6.
Enter 20 for A, 35 for B and 40 for C.
Result
The area of the triangle is approximately 350
2
cm
.
90
Key operation
; S ; = @ * (
; T ( ; T - ; A
) ( ; T - ; B )
( ; T - ; C ) )
e
i 0 ; S e
i 5 e
i 6 @ a ERROR ;
e
i 1 @ a NO s
TRIANGLE ; e
i 3 1 e
i 1 @ a REENTER ;
e
i 9 @ a START ;
e
HERON :NORMAL
SIDE LENGTHS
A=?
40
S=
349.944192

Advertisement

Table of Contents
loading

This manual is also suitable for:

El-5250

Table of Contents