Tri+Area+Formula

This graphic illustrates the decomposition of the rotated right triangle.  TO ALPHA SETPC "BLACK SETTURTLESIZE 1 SETSPEED 0.9 RT (90 - 53) FD 90 RT 90 FD 120 SETHEADING 270 FD 150 SETPC "YELLOW PU SETHEADING 90 FD (160 / 2) LT 90 FD 5 PD FILL PU HOME PD END

pops beta TO BETA SETPC "BLUE RT (90 - 53) FD 90 LT (180 - 53) FD 150 HOME SETPC "BROWN FD (SIN 53) * 90 PU SETXY [2 10] PD FILL HOME END

pops delta TO DELTA SETHEADING 90 SETPC "BLUE FD 150 LT 90 FD (SIN 53) * 90 LT 90 FD 150
 * END **

This graphic illustrates the decomposition of the rotated obtuse triangle. The code is below:

HOME SETPC "BLACK RT (90 - 22.6) FD 130 RT (180 - 106) FD 64 SETHEADING 270 FD 80 * 2 HOME PU SETHEADING (90 - (22.6 / 2)) FD (270 / 2) SETPC "YELLOW PD FILL HOME SETPC "BLUE RT (90 - 22.6) FD 130 SETHEADING 270 FD 160 HOME PU SETPOS [-10 20] SETPC "ORANGE PD FILL PU HOME PD SETPC "BLACK FD (SIN 22.6) * 130 RT 90 FD 160 RT 90 FD (SIN 22.6) * 130 RT 90 FD 160 PU SETPOS [10 20] SETPC "BLUE PD FILL PU SETPOS [155 30] SETPC "ORANGE PD FILL HT