SW006014 Microchip Technology, SW006014 Datasheet - Page 151
![C COMPILER MPLAB FOR PIC24 MCU](/photos/9/32/93245/sw006014_sml.jpg)
SW006014
Manufacturer Part Number
SW006014
Description
C COMPILER MPLAB FOR PIC24 MCU
Manufacturer
Microchip Technology
Type
MPLAB® C Compilerr
Series
PIC24r
Datasheet
1.SW006014.pdf
(246 pages)
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
- Current page: 151 of 246
- Download datasheet (3Mb)
3.3
© 2008 Microchip Technology Inc.
<MATH.H> MATHEMATICAL FUNCTIONS
The header file
mon mathematical operations. Error conditions may be handled with a domain error or
range error (see
A domain error occurs when the input argument is outside the domain over which the
function is defined. The error is reported by storing the value of
returning a particular value defined for each function.
A range error occurs when the result is too large or too small to be represented in the
target precision. The error is reported by storing the value of
returning
result underflowed (return value is too small).
Responses to special values, such as NaNs, zeros, and infinities, may vary depending
upon the function. Each function description includes a definition of the function's
response to such values.
HUGE_VAL
Description:
Include:
Remarks:
acos
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
HUGE_VAL
math.h
errno.h
if the result overflowed (return value was too large) or a zero if the
HUGE_VAL is returned by a function on a range error (e.g., the function
tries to return a value too large to be represented in the target
precision).
<math.h>
-HUGE_VAL is returned if a function result is negative and is too large
(in magnitude) to be represented in the target precision. When the
printed result is +/- HUGE_VAL, it will be represented by +/- inf.
Calculates the trigonometric arc cosine function of a double precision
floating-point value.
<math.h>
double acos (double x);
x
Returns the arc cosine in radians in the range of 0 to pi (inclusive).
A domain error occurs if x is less than -1 or greater than 1.
#include <math.h>
#include <stdio.h> /* for printf, perror */
#include <errno.h> /* for errno
int main(void)
{
double x,y;
errno = 0;
x = -2.0;
y = acos (x);
if (errno)
printf("The arccosine of %f is %f\n\n", x, y);
consists of a macro and various functions that calculate com-
).
perror("Error");
value between -1 and 1 for which to return the arc cosine
/* for acos
ERANGE
EDOM
in
DS51456E-page 147
in
errno
*/
*/
errno
and
and
Related parts for SW006014
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![TC1014-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1014-5.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.7VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-2.8VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1055-4.0VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.5VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
![TC1186-2.85VCT](/images/manufacturer_photos/0/4/440/microchip_technology_inc__tmb.jpg)
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: