Example Triangle

Find the area of the triangle with vertices at (3,9), (3,15), and (15,4). What are the exact lengths of all three sides?

> point( A, [ 3, 9 ] ):

> point( B, [ 3,15 ] ):

> point( C, [15, 4 ] ):

> triangle( TT, [A,B,C] ):

> pTT := display( [ draw( TT, view=[0..20,0..20], printtext=true ), cp2020 ], view=[0..20,0..20] ):

> pTT;

[Maple Plot]

>

> area( TT );

36

> `distance(A,B)` = distance(A,B);

`distance(A,B)` = sqrt(36)

> `distance(B,C)` = distance(C,B);

`distance(B,C)` = sqrt(265)

>

> interface( plotdevice=postscript, plotoutput="plotTT.ps" );

> pTT;

> interface( plotdevice=default );

>