Triangle functions code review

  • Context: Mathematica 
  • Thread starter Thread starter PrudensOptimus
  • Start date Start date
  • Tags Tags
    Functions Mathematical
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
8 replies · 4K views
Physics news on Phys.org
Seem to work. Although could just state the elementary formulae used. Having said that, it depends upon the audience.
 
most people wouldn't know how to use the formula if i state it...
 
i tried the first method


the area for triangle 3,1,2 is 0 square units
 
because the semiperimeter is 3, thus when you apply it to Heron's Formula it has a 0 term in the squareroot, since it's all multiplication, any term multiply by 0 would produce 0. Thus my functions works fine.
 
Or for a more "obvious" reason, if you try to draw a 3-1-2 triangle, you'll find its height is 0.
 
Originally posted by Hurkyl
Or for a more "obvious" reason, if you try to draw a 3-1-2 triangle, you'll find its height is 0.


As it has to be as 2+1 = 3.
 
oops, silly me. it was late and my brain wasnt working very well
 
Originally posted by On Radioactive Waves
oops, silly me. it was late and my brain wasnt working very well

Excuse...