sandra/ms614/handouts/trabalhofinalgrupo5.pdf · nelson, d.,the penguin dictionary of mathematics -...

Post on 20-Mar-2020

4 Views

Category:

Documents

0 Downloads

Preview:

Click to see full reader

TRANSCRIPT

CÓDIGO DA SÉRIE

options(digits = 10)options(scipen = 10)

tabela = c()

n = 100000000for(i in 0:n){ if(i==0){ soma = 0 } soma = soma + ((-1)^i)/(2*i+1) if(i==n){ tabela = c(tabela, n, soma*4, pi, abs(pi-soma*4)) print(soma*4) }}

matriz = matrix(tabela,ncol = 4, byrow = T)colnames(matriz) = c("Iteracoes", "Aproximacao", "ValorPi", "Diferenca Absoluta")matriz

TABELA DO ERROPrecisão pela Regra dos Trapézios Repetida

https://academo.org/demos/estimating-pi-monte-carlo/https://academo.org/demos/estimating-pi-monte-carlo/

bootstraps

top related