SW006014 Microchip Technology, SW006014 Datasheet - Page 155

C COMPILER MPLAB FOR PIC24 MCU

SW006014

Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet

Specifications of SW006014

Supported Families
PIC24
Core Architecture
PIC
Kit Contents
Software And Docs
Mcu Supported Families
PIC24
Tool Function
Compiler
Tool Type
Compiler
Processor Series
PIC24
Lead Free Status / RoHS Status
Not applicable / Not applicable
For Use With/related Products
PIC24
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
© 2008 Microchip Technology Inc.
atanf
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
atan2
Description:
Include:
Prototype:
Arguments:
Return Value:
Remarks:
Example:
Calculates the trigonometric arc tangent function of a single precision
floating-point value.
<math.h>
float atanf (float x);
x
Returns the arc tangent in radians in the range of -pi/2 to +pi/2
(inclusive).
No domain or range error will occur.
#include <math.h>
#include <stdio.h> /* for printf */
int main(void)
{
}
Output:
The arctangent of 2.000000 is 1.107149
The arctangent of -1.000000 is -0.785398
Calculates the trigonometric arc tangent function of y/x.
<math.h>
double atan2 (double y, double x);
y
x
Returns the arc tangent in radians in the range of -pi to pi (inclusive)
with the quadrant determined by the signs of both parameters.
A domain error occurs if both x and y are zero or both x and y are
+/- infinity.
#include <math.h>
#include <stdio.h> /* for printf, perror */
#include <errno.h> /* for errno
int main(void)
{
float x, y;
x = 2.0F;
y = atanf (x);
printf("The arctangent of %f is %f\n\n", x, y);
x = -1.0F;
y = atanf (x);
printf("The arctangent of %f is %f\n\n", x, y);
double x, y, z;
value for which to return the arc tangent
y value for which to return the arc tangent
x value for which to return the arc tangent
/* for atanf
/* for atan2
*/
DS51456E-page 151
*/
*/

Related parts for SW006014