The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: atan2, angle
Replies: 2   Last Post: Jan 7, 2013 10:45 AM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]

Posts: 9,850
Registered: 6/7/07
Re: atan2, angle
Posted: Jan 7, 2013 10:24 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 1/7/2013 5:15 AM, erik poljanec wrote:

> ... but when i need to use atan2 the rezult of
> equation is 0° insted of 202°. i had tray atan2, angle.... now i dont
> know what i am doing wrong. pleas help.
> the equation in the paper:
> alpha=atan2((sin(lambda)*cos(epsilon)-tan(beta)*sin(epsilon))/cos(lambda))


The function ATAN2() is defined as the arctangent of the four-quadrant
y,x coordinates as atan2(y,x)

Your equation above has only a single argument so either

a) the atan2() in the paper isn't the same definition as the commonly
implemented intrinsic/Matlab function, or

b) you have transcribed the equation incorrectly.

doc atan2 % to see what Matlab expects, anyway...


Date Subject Author
Read Re: atan2, angle
Read Re: atan2, angle
Bruce Bowler

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.