Posts: 19668
Threads: 178
Joined: July 31, 2012
Reputation:
91
RE: What's everyone up to right now?
July 14, 2016 at 5:06 am
(This post was last modified: July 14, 2016 at 5:06 am by pocaracas.)
Why, oh why?!!!
Why are the atan function's arguments in the wrong order?!
First the Y, then the X?!
Posts: 18522
Threads: 130
Joined: January 19, 2014
Reputation:
90
RE: What's everyone up to right now?
July 14, 2016 at 5:08 am
(July 14, 2016 at 5:06 am)pocaracas Wrote: Why, oh why?!!!
Why are the atan function's arguments in the wrong order?!
First the Y, then the X?!
Since when does atan have two arguments?
The fool hath said in his heart, There is a God. They are corrupt, they have done abominable works, there is none that doeth good.
Psalm 14, KJV revised edition
Posts: 19668
Threads: 178
Joined: July 31, 2012
Reputation:
91
RE: What's everyone up to right now?
July 14, 2016 at 5:17 am
(July 14, 2016 at 5:08 am)Alex K Wrote: (July 14, 2016 at 5:06 am)pocaracas Wrote: Why, oh why?!!!
Why are the atan function's arguments in the wrong order?!
First the Y, then the X?!
Since when does atan have two arguments?
Since forever?....
In matlab, it's atan2.
In IDL, you can call atan with one or two arguments and it's smart enough to know what you mean.
Why 2 arguments?
Because we're lazy... Give it an X and Y coordinate for the point in the circle and let it calculate the angle. Why should we have to calculate y/x in separate?
Plus, this way, there's less ambiguity and the result can be expressed in the interval ]-pi, pi[, instead of the normal ]-pi/2, pi/2[, which makes phase unwrapping a tad easier.
Posts: 18522
Threads: 130
Joined: January 19, 2014
Reputation:
90
RE: What's everyone up to right now?
July 14, 2016 at 5:30 am
(July 14, 2016 at 5:17 am)pocaracas Wrote: (July 14, 2016 at 5:08 am)Alex K Wrote: Since when does atan have two arguments?
Since forever?....
In matlab, it's atan2.
In IDL, you can call atan with one or two arguments and it's smart enough to know what you mean. 
Why 2 arguments?
Because we're lazy... Give it an X and Y coordinate for the point in the circle and let it calculate the angle. Why should we have to calculate y/x in separate?
Plus, this way, there's less ambiguity and the result can be expressed in the interval ]-pi, pi[, instead of the normal ]-pi/2, pi/2[, which makes phase unwrapping a tad easier.
Pshhhhh, that's no real atan. You have to fight with the quadrants and singularities yourself, or you haven't really done the work!!!
The fool hath said in his heart, There is a God. They are corrupt, they have done abominable works, there is none that doeth good.
Psalm 14, KJV revised edition
Posts: 19668
Threads: 178
Joined: July 31, 2012
Reputation:
91
RE: What's everyone up to right now?
July 14, 2016 at 5:38 am
(July 14, 2016 at 5:30 am)Alex K Wrote: (July 14, 2016 at 5:17 am)pocaracas Wrote: Since forever?....
In matlab, it's atan2.
In IDL, you can call atan with one or two arguments and it's smart enough to know what you mean. 
Why 2 arguments?
Because we're lazy... Give it an X and Y coordinate for the point in the circle and let it calculate the angle. Why should we have to calculate y/x in separate?
Plus, this way, there's less ambiguity and the result can be expressed in the interval ]-pi, pi[, instead of the normal ]-pi/2, pi/2[, which makes phase unwrapping a tad easier.
Pshhhhh, that's no real atan. You have to fight with the quadrants and singularities yourself, or you haven't really done the work!!! 
So sue me if I've done that once and thought it was once too often!
Posts: 12743
Threads: 92
Joined: January 3, 2016
Reputation:
84
RE: What's everyone up to right now?
July 14, 2016 at 6:50 am
Reading about theistic Satanism.
Posts: 29107
Threads: 218
Joined: August 9, 2014
Reputation:
154
RE: What's everyone up to right now?
July 14, 2016 at 7:56 am
(July 14, 2016 at 6:50 am)Bella Morte Wrote: Reading about theistic Satanism.
I knew it!
Posts: 20476
Threads: 447
Joined: June 16, 2014
Reputation:
110
RE: What's everyone up to right now?
July 14, 2016 at 8:05 am
(This post was last modified: July 14, 2016 at 8:05 am by ignoramus.)
(July 14, 2016 at 7:56 am)robvalue Wrote: (July 14, 2016 at 6:50 am)Bella Morte Wrote: Reading about theistic Satanism.
I knew it!
Before you go jumping to conclusions Rob, it's full title is: Theistic Satanism: Why This is really real but God is bullshit!
No God, No fear.
Know God, Know fear.
Posts: 12743
Threads: 92
Joined: January 3, 2016
Reputation:
84
RE: What's everyone up to right now?
July 14, 2016 at 8:06 am
(This post was last modified: July 14, 2016 at 8:06 am by account_inactive.)
(July 14, 2016 at 7:56 am)robvalue Wrote: (July 14, 2016 at 6:50 am)Bella Morte Wrote: Reading about theistic Satanism.
I knew it!
Hail Satan!
Posts: 18522
Threads: 130
Joined: January 19, 2014
Reputation:
90
RE: What's everyone up to right now?
July 14, 2016 at 8:07 am
(July 14, 2016 at 8:05 am)ignoramus Wrote: (July 14, 2016 at 7:56 am)robvalue Wrote: I knew it!
Before you go jumping to conclusions Rob, it's full title is: Theistic Satanism: Why This is really real but God is bullshit!
Why our bullshit is more real than the other bullshit!
The fool hath said in his heart, There is a God. They are corrupt, they have done abominable works, there is none that doeth good.
Psalm 14, KJV revised edition
|