Sharp EL-5230 User Manual

Page 92

Advertising
background image

90

Program code

Key operation

S=‰(T(T-A)(T-B)(T-C))

; S ; = @ * (
; T ( ; T - ; A
) ( ; T - ; B )
( ; T - ; C ) )
e

Print S

i 0 ; S e

End

i 5 e

Label ERROR

i 6 @ a ERROR ;
e

Print”NO TRIANGLE

i 1 @ a NO s
TRIANGLE

; e

Wait 1

i 3 1 e

Print”REENTER

i 1 @ a REENTER ;
e

Goto START

i 9 @ a START ;
e

Example

Obtain the area of the triangle with the side lengths of 20 cm (A), 35 cm (B)
and 40 cm (C).

4.

Press j to return to the PROG mode menu.

5.

Press 0, select the program ‘HERON’
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
cm

2

.

HERON :NORMAL

SIDE LENGTHS

A=?

40

S=

349.944192

Chapter 8: Application Examples

Advertising
This manual is related to the following products: