-->
当前位置:首页 > 题库

PROGRAMMING:exponential function

Luz5年前 (2021-05-10)题库389
Calculate the value of $$e ^ x $$according to McLaughlin's formula.
![ Title. JPG] (~ / 9b03c2eb-9597-49e9-aad5-b043f38d61c7. JPG)
####Input format
> $$x$$ $$\epsilon$$
Note: $$x $$is the exponent and $$$epsilon $$is the calculation precision.
####Output format
> $$y$$
Note: $$y $$is the value of $$e ^ x $$. Output 6 decimal places with% f format qualifier.
Requirement: the absolute value of the last item calculated is less than $$\ epsilon $$.
####Input sample
```in
0.5 0.0000001
```
####Output sample
```out
one point six four eight seven two one
```







answer:If there is no answer, please comment