Basic Examples (5)
There are two triangles with the specified angle, side, side for this example:
The triangles above are the black outline and the gray triangle below:
The next two cells verify that both triangles above have the specified angle, side, side:
Only one triangle has the specified angle side, side in this example:
The next cell verifies the triangle above has the specified angle, side, side:
ASSTriangles always returns one obtuse triangle when the specified angle is 90° or greater and the third argument is greater than the second argument. An example is in the next cell:
The next cell verifies the triangle above has the specified angle, side, side:
The next example makes a (3,4,5) right triangle:
The next cell verifies the triangle above has the specified angle, side, side:
The next example is a case where no triangle has the specified angle, side, side:
In this example we would have a right triangle if the last argument of ASSTriangles was 6 Sin[40°]≈3.85673.
The next graphics illustrates why no triangle has the angle, side, side specified in the last example:
Scope (4)
When ASSTriangles is given exact input it returns exact results:
When ASSTriangles is given values with many digits of precision it returns results with all digits that can be be justified:
When one or more argument is symbolic and non-numeric ASSTriangles does nothing to change the input:
We can use replacement rules to assign specific values for a, b in triangles above:
We can also use Blockto assign values to a, b in triangles above:
ASSTriangles displays an error message and returns the original input when given incorrect:
No message is displayed in the next example because it would give a list of Triangles if b had an appropriate value: