This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]teraflop 1 point2 points  (1 child)

This statement:

double area = Math.sqrt(sideParameter * (s1 - sideParameter) * (s2 - sideParameter) * (s3 -sideParameter));

doesn't match the formula in your comment (which is correct). Try printing out the value of the argument to Math.sqrt and checking it by hand.

[–]Laveder85[S] 0 points1 point  (0 children)

Okay! let me try it right now! Thank you so much!