bolaryn bolaryn
  • 09-02-2022
  • Computers and Technology
contestada

Using the Mclaurin’s series only, prove categorically that e=2.71828

Respuesta :

tonb
tonb tonb
  • 09-02-2022

Answer:

import math

e = n = 0

while(round(e, 5) != 2.71828):

 e = e + 1/math.factorial(n)

 print(n, e)

 n = n + 1

Explanation:

Above McLaurin series implementation shows that you approximate e to 5 decimals already after 8 iterations.

Answer Link

Otras preguntas

Underneath the Appalachian Plateau is a vast ____
The researchers change the procedure such that instead of placing the objects in a box, the participants have to recall all the objects that they have seen duri
A 50.0-kg bungee jumper steps off a bridge with a light bungee cord tied to her and to the bridge. The unstretched length of the cord is 13.0 m. The jumper reac
Type the correct answer in each box. Spell all words correctly. A sequence of transformations maps ∆ABC onto ∆A″B″C″. The type of transformation that maps ∆AB
If $4200 is invested in a savings account for which interest is compounded semiannually, and if the $4200 turns into $4900 in 4 years, what is the interest rate
Give a sketch illustrating the different types of interconversions​
You are given the sample mean and the population standard deviation. Use this information to construct the​ 90% and​ 95% confidence intervals for the population
Evaluate x+x3-4x4 when x=2
Why should a poll be scientific rather than informal?
to which graph does the point (-1,3) belong to A) y (> or = to) 3x-1 B) y (> or = to) -x + 3 C) y (> or = to) -2x + 5 D) y (> or = to) 2x + 6