EAGLE Help

Exponential Functions


Function
Exponential Functions.

Syntax
real exp(real x);
real log(real x);
real log10(real x);
real pow(real x, real y);
real sqrt(real x);

Returns
exp returns the exponential e to the power of x.
log returns the natural logarithm of x.
log10 returns the base 10 logarithm of x.
pow returns the value of x to the power of y.
sqrt returns the square root of x.

Note

The "n-th" root can be calculated using the pow function with a negative exponent.

Example

real x = 2.1;
printf("The square root of %f is %f\n", x, sqrt(x));

Index Copyright © 2005 CadSoft Computer GmbH