Question: Approximation with a series and factorial functions Write a program that calculates Pl with the expression 1 2 2 N=00 (i!)22i+1 (2i + 1)! using
Pi Approximation with a series and factorial functions Escriba un programa que calcule PI con la expresin 2=21i=0N=(2i+1)!(i!)22i+1 utilizando como herramienta adicional de cmputo la funcin factorial de la librera de Python. Comparar la aproximacin de PI con el cdigo sin la funcin factorial. References: (1) math.factorial(x) [https://www.geeksforgeeks.org/factorial-in-python/] (2) sympy.factorial(x) [ Contestar las siguientes preguntas: (1) Cul es el valor de PI cuando N=20 ? (2) Cuantos trminos de la serie se necesitan para lograr un valor de Pl aproximado a 7 decimal places, esto es: 3.1415926
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
