SW006014 Microchip Technology, SW006014 Datasheet - Page 176
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: 176 of 246
- Download datasheet (3Mb)
DS51456E-page 172
log
Description:
Include:
Prototype:
Argument:
Return Value:
Remarks:
Example:
Calculates the natural logarithm of a double precision floating-point
value.
<math.h>
double log(double x);
x
Returns the natural logarithm of x. -inf is returned if x is 0 and NaN is
returned if x is a negative number.
A domain error occurs if x ≤ 0.
#include <math.h>
#include <stdio.h> /* for printf, perror */
#include <errno.h> /* for errno
int main(void)
{
}
Output:
The natural logarithm of 2.000000 is 0.693147
The natural logarithm of 0.000000 is -inf
Error: domain error
The natural logarithm of -2.000000 is nan
double x, y;
errno = 0;
x = 2.0;
y = log (x);
if (errno)
printf("The natural logarithm of %f is %f\n\n",
errno = 0;
x = 0.0;
y = log (x);
if (errno)
printf("The natural logarithm of %f is %f\n\n",
errno = 0;
x = -2.0;
y = log (x);
if (errno)
printf("The natural logarithm of %f is %f\n\n",
perror("Error");
perror("Error");
perror("Error");
any positive value for which to return the log
x, y);
x, y);
x, y);
/* for log
© 2008 Microchip Technology Inc.
*/
*/
Related parts for SW006014
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet:
Part Number:
Description:
Manufacturer:
Microchip Technology Inc.
Datasheet: