Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I have a specific question about reversing $a\tan2$. (I am programmer, sorry for the jargon). I also use the $a\tan2$ function in my example, but I think everybody knows what it means.

radial = 1.12*PI => transformed = -atan2(cos(radial)∗2,sin(radial)*1.5)

Is there a way to reverse the transformed value to the start radial, without knowing the start radial? This is how codeflow should be

radial => transform(radial) => transformback(transform(radial)) => radial.

I have searched on the web (incl. stack) but I couldn't find any correct code. Also looked on Wikipedia, but it was overwhelming. My question is more a algebra question I think ;).

Let me know what you think!

share|improve this question
    
My guess at the meaning of the question. Suppose $t = -\mathrm{atan2}(2\cos\theta,(3/2)\sin\theta)$, where $\mathrm{atan2}$ is defined by $\mathrm{atan2}(x,y) = \arctan(y/x)$. Solve the equation for $\theta$ as a function of $t$. –  GEdgar Jun 20 '11 at 16:37
2  
If this guy is let loose bridges will collapse. –  Christian Blatter Jul 20 '11 at 18:06

1 Answer 1

Where do the *2 and *1.5 come from in your transformation?. Without them you would already have radial=atan2(cos(radial),sin(radial))

The normal inverse of atan2 is the tangent function-it takes in the angle given to atan2 and returns the ratio of $y$ to $x$. That's the best you will get as atan2 throws away the radius from the origin.

share|improve this answer
    
Tim hasn't been back since June 20 to look and see if there are answers. –  GEdgar Jul 20 '11 at 17:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.