Hi,
I am trying to evaluate a variable which is related with some trigonometric angles. However The code is leading to some different value that of the hand calculated ones. I was expecting the value of z to be 124... however code is giving some unreasonable value. This might be very silly, but I am sure I have missed some logic. Some one please help me.
My code is like this
theta = Math.Atan(l1 / l2) * 180 / Math.PI; // converted to degrees
y = l3 / Math.Cos(theta / 2.0);
z = y * Math.Sin(theta / 2.0);
Solved! Go to Solution.
Solved by Keith.Brown. Go to Solution.
Can't find what you're looking for? Ask the community or share your knowledge.