Skip to contents

The truncated sum beside exp(x).

Usage

ExpTaylor(x, terms = 30)

Arguments

x

series argument.

terms

number of terms, >= 1.

Value

list(partial_sums, e_x, final_error).

References

Morin, D. J. (2016). Probability: For the Enthusiastic Beginner. Createspace. Eq (7.7).

Examples

ExpTaylor(1)$final_error
#> [1] 4.440892e-16