f



Drawing a triangle, defined by its sides

Still using Maple V I faced the following problem.

Program
==========================
with(geometry):
triangle(T,[1,1,1]);
draw(T,axes=NONE);
==========================

produces error message
==================================================
Error, (in geometry/hcoord) wrong type of argument
==================================================

Did I miss something in the Help pages?
====================================================
Calling Sequence:
      triangle(T, [A, B, C], n )
      triangle(T, [l1, l2, l3], n )
      triangle(T, [side1, side2, side3] )  <<<<<<< This I used
      triangle(T, [side1, 'angle'=theta, side3], n )
====================================================

When I use the three-point-version, everything is fine:
========================================
triangle(Tt,[point(A,0,0),
              point(B,1,0),
              point(C,1/2,1/2*sqrt(3))]):
draw(Tt,axes=NONE);
========================================

This program shows me exactly what I expected.

Cheers,
Rainer

0
Rainer
8/12/2016 8:01:09 PM
comp.soft-sys.math.maple 4344 articles. 2 followers. Post Follow

0 Replies
127 Views

Similar Articles

[PageSpeed] 27

Reply: