Sharp EL-5250, EL-5230 operation manual Side Lengths, Heron Normal, Example, Result

Models: EL-5230 EL-5250

1 132
Download 132 pages 22.67 Kb
Page 92
Image 92
HERON :NORMAL

Chapter 8: Application Examples

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’

 

 

 

 

 

 

HERON :NORMAL

and press e.

• If the values you enter do not satisfy the

SIDE LENGTHS

A=?

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 cm2.

40SIDE LENGTHSManual backgroundManual background

S= Manual backgroundManual backgroundManual background 349.944192Manual backgroundManual backgroundManual background

90

Page 92
Image 92
Sharp EL-5250, EL-5230 operation manual Side Lengths, Heron Normal, Example, Result