NascentOxygen said:
However, before anyone plunges into helping with this, you need to double- and triple- check your equation here. I have highlighted two y-terms which appear to cancel. This doesn't inspire confidence that the equation you present is an accurate portrayal of what you are trying to solve.
I pointed that out in post #9.
The equation that johnnyamerica has has been using in the past few posts is the one that SammyS labeled as equation (3) in post #14. It follows from equation (2)
assuming y is non-negative. Equation (2) in turn follows from equation (4).
All three of those equations are a mess. They simplify immensely. Equation (3) simplifies to
x=\frac 8 3 \sqrt{(576-y)(144+y)}
I'd suggest using the substitution z=y/(384+y). This works very nicely with equation (2).
johnnyamerica said:
Lol, yea, that tends to happen. I found four redundancies in the original equation. I've tested it repeatedly and for every y between -144 and 576 it's correct.
It only tends to happen when you are being sloppy. Sorry for being blunt, but a bit of bluntness is needed here.
Your first equation,
x = ((384x/(y+384))*y+384(384x/(y+384)))/384
is not the same as the other equations. You made a mistake somewhere. Since you haven't shown your work, there's no telling where that mistake arose.
Your original equation is
x=
(1280(768cos((pi((180acos((sqrt(768^2-(((-1280)(-y))/(-y-384))^2))/768))/pi
))/180)))/(-sqrt(768^2-(768cos((pi((180acos((sqrt(768^2-(((-1280)(-y))/(-y-384))^2))/768))/pi))/180))^2)+1280)
This is an absolute mess. You should get rid of things like (-1280)(-y) ASAP. It is just 1280y. Similarly, (-y-384)^2 is just (y+384)^2.
Your second equation is
x = (1280((sqrt(768^2-(((-1280)(-y))/(-y-384))^2))))/(-sqrt(768^2-((768^2-(((-1280)(-y))/(-y-384))^2)))+1280)
This is indeed equivalent to your original equation. It is a lot simpler, but it is still a mess.
Your third equation is
x = ((sqrt(768^2-(((-1280)(-y))/(-y-384))^2)))((y+384)/(y+384-y))
This is the same as equations (2) and (4) if y is non-negative. This is not a valid reduction in the case that y is negative.
You need to be a bit more careful.