[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


exp

Compute ex.

Compatibility:

This function is compatible with the following targets:

ANSI

BeOS

EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <math.h>

double exp(double x);
float expf(float);
long double expl(long double);
Parameters:

Parameters for this function are:

x  
float, double or long double  
value to be computed  

Return:

exp() returns ex, where e is the natural logarithm base value.

Remarks:

A range error may occur for larger numbers.

See Also:

"Inlined Intrinsics Option"

"log"

"expm1"

"exp2"

"pow"

exp() example:
#include <math.h>
#include <stdio.h>

int main(void)
{
	double x = 4.0;
	printf("The natural logarithm base e raised to the\n");
	printf("power of %f is %f.\n", x, exp(x));

	return 0;
}

Output:
The natural logarithm base e raised to the
power of 4.000000 is 54.598150.


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000