Solving an annoying equation

  • Thread starter MexWave
  • Start date
In summary, the conversation revolved around solving an equation related to converting between pixel coordinates and geographical coordinates in Microsoft's Virtual Earth. The person was stuck on calculating a value and asked for help, to which another person provided a possible solution. After testing, it was found to be the correct answer.
  • #1
MexWave
2
0
[SOLVED] Solving an annoying equation... please help

Hi,

I'm playing with the code used to convert between on-screen pixel co-ordinates and geographical lat-lon in Microsoft's Virtual Earth. They have a page that explains how to go one way (including example code) at http://msdn2.microsoft.com/en-us/library/bb259689.aspx" but it only explains how to get the pixel co-ordinate from a lat-lon and not the other way around.

I decided it shouldn't be too difficult to solve myself so I started on it. I'm now stuck at the following point:

a = (1 + sinLatitude) / (1 - sinLatitude)

I need to calculate "sinLatitude" in terms of "a" but I don't seem to be able to do it. Can anyone please give me some pointers, or do I need to approach the whole thing another way?

Many thanks,

Mark
 
Last edited by a moderator:
Mathematics news on Phys.org
  • #2
Is sinLatitude = (a-1)/(a+1) the answer you are looking for?
 
  • #3
After running a few tests, it certainly seems to be!

Many thanks for your help!

Mark
 
Last edited:

FAQ: Solving an annoying equation

How do I know which method to use to solve an equation?

The method you use to solve an equation depends on the type of equation you are dealing with. For linear equations, you can use methods such as substitution, elimination, or graphing. Quadratic equations can be solved using the quadratic formula or by factoring. It is important to identify the type of equation before choosing a method.

Why is it important to show all steps when solving an equation?

Showing all the steps when solving an equation helps to ensure accuracy and allows others to follow your thought process. It also makes it easier to identify any mistakes that may have been made along the way.

Can I use a calculator to solve an equation?

While a calculator can be helpful in checking your answers, it is important to understand the steps involved in solving an equation by hand. Relying solely on a calculator may hinder your understanding of the concepts and make it difficult to solve more complex equations in the future.

How can I check if my solution is correct?

You can check your solution by plugging it back into the original equation and seeing if it satisfies the equation. Another way is to graph both sides of the equation and see if they intersect at the solution.

What should I do if I get stuck while solving an equation?

If you get stuck while solving an equation, take a step back and review the steps you have already completed. It may also be helpful to try a different approach or ask for help from a teacher or classmate. Practice and patience are key in mastering the skill of solving equations.

Back
Top