Current location - Training Enrollment Network - Mathematics courses - How to express the number e in c language
How to express the number e in c language
The number e (exponent e) in C language can be expressed by exp () function.

Function prototype: double exp (double x);

Work? Can: calculate the value of e x

Return value: calculation result

For example:

Double? x= 1.5,? y;

y? =? exp(x); ? //? The value of y is e1.5 note: when using the exp function, you need to include the header file # include.