Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: August 8, 2026, 2:49 am

Thread Rating:
  • 13 Vote(s) - 4.15 Average
  • 1
  • 2
  • 3
  • 4
  • 5
What's everyone up to right now?
RE: What's everyone up to right now?
Why, oh why?!!!
Why are the atan function's arguments in the wrong order?!
First the Y, then the X?!
Reply
RE: What's everyone up to right now?
(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

Reply
RE: What's everyone up to right now?
(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. Tongue

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.
Reply
RE: What's everyone up to right now?
(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. Tongue

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!!! Smile
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

Reply
RE: What's everyone up to right now?
(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. Tongue

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!!! Smile

Angel
So sue me if I've done that once and thought it was once too often!
Reply
RE: What's everyone up to right now?
Reading about theistic Satanism.
Reply
RE: What's everyone up to right now?
(July 14, 2016 at 6:50 am)Bella Morte Wrote: Reading about theistic Satanism.

I knew it!
Feel free to send me a private message.
Please visit my website here! It's got lots of information about atheism/theism and support for new atheists.

Index of useful threads and discussions
Index of my best videos
Quickstart guide to the forum
Reply
RE: What's everyone up to right now?
(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.
Reply
RE: What's everyone up to right now?
(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!  Devil

Tongue
Reply
RE: What's everyone up to right now?
(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

Reply



Possibly Related Threads...
Thread Author Replies Views Last Post
  Banning Social Media for Everyone Under 16 Leonardo17 21 3847 January 10, 2026 at 7:38 pm
Last Post: BrianSoddingBoru4
  What Are You Wearing Right Now? BrianSoddingBoru4 77 16927 June 10, 2024 at 2:32 pm
Last Post: brewer
  How You're "Feeling" Right Now (img mode) Paraselene 9 4324 May 19, 2021 at 9:36 am
Last Post: Fireball
  What's everyone doing for New Year's Eve? Dundee 23 5027 December 30, 2020 at 11:27 am
Last Post: Angrboda
  What's everyone doing for Christmas? The Valkyrie 34 6145 December 21, 2020 at 3:14 pm
Last Post: Abaddon_ire
  EVERYONE should exercise! EgoDeath 28 6141 March 11, 2019 at 7:30 pm
Last Post: EgoDeath
  Everyone must be have a law degree? Jackie 13 3613 November 16, 2018 at 5:30 pm
Last Post: Little lunch



Users browsing this thread: 84 Guest(s)