%% mPICm01.m (figure 1)
%% mathsPIC (smallTriangle with incircle)
%%-------------------
\documentclass[a4paper]{article}
\usepackage{pictexwd}
\begin{document}
%%---------------------
pictex{\beginpicture}
paper{units(cm) xrange(0,5), yrange(0,2.5)}
point(A){0,0}
point(B){A, polar(5, 10 deg)}
point(C){A, polar(3, 50 deg)}
drawpoint(ABC)
drawTriangle(ABC)
drawIncircle(ABC)
variable(d){0.5}
text($A$){A, shift(-d,0)}
text($B$){B, shift(d,0)}
text($C$){C, shift(-d,0)}
pictex{\endpicture}
%%-----------------
\end{document}