8430: 基础函数使用 —— exp
[Creator : ]
Description
Compute exponential function
Returns the base-e exponential function of $x$, which is e raised to the power $x$: $e^x$.double exp (double x); float exp (float x); long double exp (long double x); double exp (T x); // additional overloads for integral types需要包含的头文件为 <cmath>。
#include <cmath>
Input
一个实数 $x\ (-100\leq x \leq 100)$。
Output
一个实数,保留 $6$ 位小数点精度。
Sample 1 Input
-3.2
Sample 1 Output
0.040762
Sample 2 Input
0
Sample 2 Output
1.000000
Sample 3 Input
1
Sample 3 Output
2.718282
74
137338297954017610774568497053696.000000
Sample 4 Input
100
Sample 4 Output
26881171418161356094253400435962903554686976.000000