Nomad84
04-26-2006, 07:12 PM
I'm working on some calculations for my mech. engr. capstone project, and I've hit a deadend. Basically, I started with
X = (h/2) * [cot(w + a) + cot(w - a)]
where h and a are constants. X is the independent variable, and I'm trying to solve for w. After a couple of pages of work using Euler's formula, I ended up with this:
X / h = [sin(2 * w)] / [cos(2 * a) - cos(2 * w)]
I'm pretty much stuck here. I can't isolate w. Can anyone give me some pointers to get me moving in the right direction? Or is it even possible? I'm wondering if I can treat it as one of a pair of equations and solve them simultaneously. The second equation would be something that relates sin and cos (like sin^2+cos^2=1 or something). I've messed with that a little bit, but without success. Right now, I'm just using Excel to "goal seek" by varying w until this equation gives a value of X that is equal to the known value. This requires me to manually tell it to goal seek and type in the target value for each datapoint, which sucks. Is there a way to automate this in Excel? Macros, or something other than goal seek, maybe?
Any help on this would be awesome. Thanks.
X = (h/2) * [cot(w + a) + cot(w - a)]
where h and a are constants. X is the independent variable, and I'm trying to solve for w. After a couple of pages of work using Euler's formula, I ended up with this:
X / h = [sin(2 * w)] / [cos(2 * a) - cos(2 * w)]
I'm pretty much stuck here. I can't isolate w. Can anyone give me some pointers to get me moving in the right direction? Or is it even possible? I'm wondering if I can treat it as one of a pair of equations and solve them simultaneously. The second equation would be something that relates sin and cos (like sin^2+cos^2=1 or something). I've messed with that a little bit, but without success. Right now, I'm just using Excel to "goal seek" by varying w until this equation gives a value of X that is equal to the known value. This requires me to manually tell it to goal seek and type in the target value for each datapoint, which sucks. Is there a way to automate this in Excel? Macros, or something other than goal seek, maybe?
Any help on this would be awesome. Thanks.