Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

Finding the fault in a scalene triangle formula

$
0
0

I am trying to write a sheets document with all kinds of formulas for math, engineering and physics, and I am currently doing a formula for finding out the area of a scalene triangle knowing the three sides the formula is the the square root of:

s(s - a)(s - b)(s - c)

where s is:

a + b + c / 2

and a, b and c is the sides of the triangle.

I have this formula in google sheets:

=SQRT(I64 x (I64-E64) x (I64-F64) x (I64-G64))

where the x is a *, and I can't for the life of me find out what I am doing wrong.

I64 is the semi-parameter, while E, F and G64 is the sides. The formula gives me 0 as the answer, but that's not correct. It is supposed to do the calculations in the parentheses first, which should then be multiplied. So for example, if the sides are 5, 8 and 9, the semi-parameter is 11. The formula should then do something like this:

SQR of 11(11-5)(11-8)(11-9)

SQR of 11(6)(3)(2)

SQR of 396

19.8997....

I have looked into order of operation that google sheets does, and it should begin with parentheses.

I64, or the semi-paremeter, is also a formula, simply adding the sides and diving by 2. I have not had an issue with adding formulas to other formulas like this before, so is there something I am not seeing here?


Viewing all articles
Browse latest Browse all 9786

Trending Articles