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;
>
> area( TT );
> `distance(A,B)` = distance(A,B);
> `distance(B,C)` = distance(C,B);
>
> interface( plotdevice=postscript, plotoutput="plotTT.ps" );
> pTT;
> interface( plotdevice=default );
>