How do you reverse an equation?

  • Thread starter eNathan
  • Start date
  • Tags
    Reverse
In summary, the conversation is about solving for ClickedX and ClickedY given the equations Y = 0-((( ClickedY * (1800 / PicHeight ))*2)-1800) and X = (( ClickedX * (1800 / PicWidth ))*2)-1800. The solution involves using algebra to isolate ClickedX and ClickedY on one side of the equations.
  • #1
eNathan
352
2
I have an equation, that I used in a software I made (Delphi). Now, I want to sort of "reverse" this equation.

Y = 0-((( ClickedY * (1800 / PicHeight ))*2)-1800)
X = (( ClickedX * (1800 / PicWidth ))*2)-1800

What does ClickedY = if you know Y and the PicHeight?

what does ClickedX = if you know X and the PicWidth?

:confused:

Thanks in advance, hopefully, there is a mathematician that can solve this.
 
Mathematics news on Phys.org
  • #2
Easy. Just solve for ClickedX and ClickedY. Surely you can do this.
 
  • #3
Y = 0 - ((( ClickedY * (1800 / PicHeight ))*2)-1800)
-Y = ((( ClickedY * (1800 / PicHeight ))*2)-1800)
1800 - Y = (ClickedY * (1800 / PicHeight )) *2
(1800 - Y)/2 = ClickedY * (1800 / PicHeight )
ClickedY = PicHeight/1800 * (1800 - Y)/2,

and similarly for the other equation.
 
  • #4
OK, is this it.

Y = 0-((( ClickedY * (1800 / PicHeight ))*2)-1800)
X = (( ClickedX * (1800 / PicWidth ))*2)-1800

clickedX = ((PicHeight / 1800) * X) / 2
clickedY = ((PicWidth / 1800) * Y) / 2
 

FAQ: How do you reverse an equation?

How do you reverse an equation?

To reverse an equation, you must perform the inverse operation on both sides of the equal sign. For example, if the original equation is 2x + 5 = 15, you would subtract 5 from both sides to get 2x = 10, and then divide both sides by 2 to get the final answer of x = 5.

What is the purpose of reversing an equation?

The purpose of reversing an equation is to solve for the unknown variable. By performing the inverse operation on both sides, you isolate the variable and determine its value.

Can all equations be reversed?

No, not all equations can be reversed. Some equations may involve complex operations or may not have a unique solution, making it impossible to reverse them.

Is there a specific order in which the inverse operation should be performed?

Yes, the inverse operation should be performed in the reverse order of the original equation. For example, if the original equation is 3x + 7 = 22, you would first subtract 7, and then divide by 3.

Are there any common mistakes to avoid when reversing an equation?

One common mistake to avoid is only performing the inverse operation on one side of the equation. Both sides must be treated equally in order to maintain the equality of the equation.

Similar threads

Back
Top