Moderators: MelissaB, kgudger, Ray Trent, Moderators
davidkallman wrote:Hi Phale,
I suspected that your problem was as such.
I don't know of an elegant solution. The material below is brute force.
Using the equations I posted yesterday, one wants to find x such that:
sin(x)/cos(x)-1/sin(x)=0.
One can calculate approximations to such x by calculating sin(x)/cos(x)-1/sin(x) for values of:
1. x = -3.4 down through -.1 (advancing by -.1) and
2. x = .1 up through 3.4 (advancing by .1)
(sin(x)/cos(x)-1/sin(x) is undefined when x = 0)
You will discover that there are two solutions (x1 and x2), x1>0 and x2<0. It appears that x1=-x2, but I don't how to prove that.
By looking at the calculated values, you'll have calculated x1 and x2 to within .1. You can go through the same process using .01, .001 etc. to compute x1 and x2 to arbitrary precision.
Since the formulas are roughly symmetrical, the above is calculated fairly easily using a spreadsheet.
I'm hesitant to give you the values I've computed (x1 and x2 to within four decimal places) as that is not the style of this bulletin board.
Happy computing. And of course if any one has anything more elegant, please let us know!
sin(x)/cos(x)-1/sin(x)=0.
Craig_Bridge wrote:sin(x)/cos(x)-1/sin(x)=0.
If you multiply through by sin(x)cos(x) you get sin(x)**2 - cos(x) = 0.
Using identity sin(x)**2 + cos(x)**2 = 1 and solving for sin(x)**2 and plugging it back in I get:
-cos(x)**2 - cos(x) + 1 = 0
Let z = cos(x) and I get -z**2 - z + 1 = 0
which can be solved by the quadratic equation for z.
You can then use arccos(z) to solve for x.
It does make sense! It's not that hard once you get it. You are just smart.
Craig_Bridge wrote:sin(x)/cos(x)-1/sin(x)=0.
If you multiply through by sin(x)cos(x) you get sin(x)**2 - cos(x) = 0.
Using identity sin(x)**2 + cos(x)**2 = 1 and solving for sin(x)**2 and plugging it back in I get:
-cos(x)**2 - cos(x) + 1 = 0
Let z = cos(x) and I get -z**2 - z + 1 = 0
which can be solved by the quadratic equation for z.
You can then use arccos(z) to solve for x.
davidcastagna wrote:So once you've figured out the two answers per 2*pi cycle, you must find all of the possible solutions over all cycles such that the answers are within -n and n as defined by your original problem. This will very possibly reveal that there may be 1 valid answer, 2 valid answers or even many more.
acgoldis wrote:Use the quadratic formula to solve the solution. Set y = cos x, and you get
y^2 + y - 1 = 0
This has two solutions. You will find that one of them will not work (can you see why)? The other one will work. I can't give you the solution, though.
P.S. If I recall correctly, arccos(y/2) is an integral number of degrees. Do you know what it is?
ACG
Return to Grades 9-12: Math and Computer Science
Users browsing this forum: No registered users and 1 guest