Справочник Пользователя для Microchip Technology SW006021-1N
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.