library atan2 parameters appear reversed

Fully featured ARM compilers available on Windows, Linux, and macOS.
Post Reply
Author
Message
mlanesmith
Posts: 5
Joined: 13 Nov 2021 01:55

library atan2 parameters appear reversed

#1 Post by mlanesmith » 06 May 2022 02:46

In Legacy "ANSI C Math" Library:

double atan2(double y, double x);
This is the two-argument arc tangent function. It is similar to computing the arc tangent of x/y, except that the signs of both arguments are used to determine the quadrant of the result and y is permitted to be zero.

in regular libc:

double atan2 (double y, double x)
This function computes the arc tangent of y/x, but the signs of both arguments are used to determine the quadrant of the result, and x is permitted to be zero.

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: library atan2 parameters appear reversed

#2 Post by filip » 10 May 2022 08:46

Hi,

Thank you for your observation, I will pass it to our developers.

Regards,
Filip.

Post Reply

Return to “PIC32 AI Compilers”