Microchip Technology SW006021-1N 사용자 설명서
![Microchip Technology](https://files.manualsbrain.com/attachments/cf42c3c895ef469f06d2e47e97fd98d738fcf5cf/common/fit/150/50/7340124dc8aa983aaf764094e2f06faab86f306c03111c5817f7e4e53fb2/brand_logo.gif)
Library Functions
2012 Microchip Technology Inc.
DS52053B-page 321
ATAN
Synopsis
#include <math.h>
double atan (double x)
Description
This function returns the arc tangent of its argument; i.e., it returns an angle ‘e’ in the
range -
range -
.
Example
#include <stdio.h>
#include <math.h>
void
main (void)
{
printf(“atan(%f) is %f\n”, 1.5, atan(1.5));
}
See Also
sin()
, cos(), tan(), asin(), acos(), atan2()
Return Value
The arc tangent of its argument.
ATAN2
Synopsis
#include <math.h>
double atan2 (double x, double x)
Description
This function returns the arc tangent of y/x.
Example
#include <stdio.h>
#include <math.h>
void
main (void)
{
printf(“atan2(%f, %f) is %f\n”, 10.0, -10.0, atan2(10.0, -10.0));
}
See Also
sin()
, cos(), tan(), asin(), acos(), atan()
Return Value
The arc tangent of y/x.