Triangle Combination: Legal & Illegal Combos

  • Context: High School 
  • Thread starter Thread starter brad sue
  • Start date Start date
  • Tags Tags
    Combination Triangle
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 3K views
brad sue
Messages
270
Reaction score
0
HI ,
I don't know where to post my question. sorry if it is not in the correct forum.

I am working on a program and one of the instruction say this:
(Prior we have to know that a,b,c are the sides of a triangle)

"Note that not all combination of a,b,c produce a triangle.
Your function should produce correct results for legal data and reasonable results for illegal combinations"


I did not know that there can be bad combination for a triangle.
What is this bad combination?

thank you
B.
 
Mathematics news on Phys.org
Try to draw a triangle whose sides are 1, 2, and 4.
 
Well, c must be less than a + b, if that's what you ment..Or, if you're working with points (coordinates), three points mustn't be colinear.