Simulates triangles
randomly, with constrained (given) perimeter, to compute their area.
The sides, a, b, c, are: a, uniformly distributed;
and b and c, random, to form a legitimate triangle.
The area is computed by Heron's formula.
Plots the density (f) and cumulative distribution
(F) for the simulated variable. |