How do you reverse an equation?

  • Context: High School 
  • Thread starter Thread starter eNathan
  • Start date Start date
  • Tags Tags
    Reverse
Click For Summary

Discussion Overview

The discussion revolves around the process of reversing equations used in a software application, specifically to find the values of ClickedY and ClickedX given Y, X, PicHeight, and PicWidth. The focus is on mathematical manipulation and solving for variables within the context of the equations provided.

Discussion Character

  • Mathematical reasoning

Main Points Raised

  • Post 1 presents the original equations and asks how to reverse them to find ClickedY and ClickedX based on known values of Y, X, PicHeight, and PicWidth.
  • Post 2 suggests that the solution involves simply solving for ClickedX and ClickedY, implying that the task is straightforward.
  • Post 3 provides a step-by-step manipulation of the equation for ClickedY, leading to a proposed formula: ClickedY = PicHeight/1800 * (1800 - Y)/2.
  • Post 4 attempts to summarize the findings, presenting formulas for ClickedX and ClickedY, but there is a potential inconsistency in the equations derived compared to those in Post 3.

Areas of Agreement / Disagreement

There is no clear consensus on the final forms of the equations for ClickedX and ClickedY, as different participants present slightly varying expressions. The discussion remains unresolved regarding the accuracy of the derived formulas.

Contextual Notes

Participants have not explicitly stated assumptions regarding the variables or the context in which these equations are applied, which may affect the validity of the derived expressions.

eNathan
Messages
351
Reaction score
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
Easy. Just solve for ClickedX and ClickedY. Surely you can do this.
 
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.
 
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
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 22 ·
Replies
22
Views
3K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 21 ·
Replies
21
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
3K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K