One more thing, if I may ask :)
I have a triangle with given angles 63.4°, 38.6° and 78.0°. No other details have been provided.
Is there any way to get the lengths of each side, using an automatic calculation all in one go? MS Excel, for example. I would like to be able to calculate the lengths of each side of the triangle in one single formula row. The software I’m using uses formulas similar (almost identical) to MS Excel, and I need to calculate each side in only one line of formulas.
Turning it around the other way, as an example, I have the side lengths 300, 600, 670.8, and no defined angles. Separating by semicolons, I can put the formulas together in one row, although here I have separated into different lines so it’s easier to read:
:Let W:=shapewidth;
Let H:=shapeheight;
Let L:=hyp;
SetValue(“shapewidth”,W);
SetValue(“shapeheight”,H);
SetValue(“hyp”,L);
SetFormula(“AngleA”,“Let L:=hyp;Let W:=shapewidth;Let H:=shapeheight;ACos((power(L,2)+power(W,2)-power(H,2))/(2*L*W))”);
SetFormula(“AngleB”,“Let H:=shapeheight;Let W:=shapewidth;Let L:=hyp;ACos((power(H,2)+power(W,2)-power(L,2))/(2*H*W))”);
SetFormula(“AngleC”,“180-AngleA-AngleB”)
shapewidth is 300, shapeheight is 600 and hyp is 670.8. SetValue will put a value into a cell based on the variable name and value given, and SetFormula will put a formula into a cell based on the variable name and value given.
Using this same idea, and using angles given instead of side lengths, is it possible to do a similar thing to calculate the sides of a triangle, in a single formula row?