14
Finding the area of a triangle
In general, when the length of the base and the height of a triangle are known, its area can be
calculated by (Length of base)×(Height)÷2 . However, it is also possible to determine
the area given the lengths of the three sides, using the following formula.
Let the lengths of the three sides be
(
D
=
A
and set
calculated:
(
S
=
D D A
–
ON
MODE
MODE
?→ A:?→ B:?→ C: (A + B + C)÷2→ D:√(D(D - A) (D - B) (D - C) )
→ M:M < 47 STEP >
OUTPUT
M : the area of a triangle
Find the area of the right-angled triangle with sides of length 3 , 4 and 5 .
(The answer may also be calculated as: 3×4÷2=6 )
Prog
1
EXE
3
4
EXE
EXE
5
) 2
÷
+
B C
+
. The area
) D B
(
) D C
(
)
–
–
MODE
A B
C
, and
,
is
S
PRGM
COMP
1
MODE
S A
S A
S A
S A
M
A
S
C
1
1
P1 P1 P2 P3 P4
D R
P1 P1 P2 P3 P4
D R
P1 P1 P2 P3 P4
D R
P1 P1 P2 P3 P4
D R
B
G
G
G
G
23