Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
taylorsen7
# Exemplo de polinômio de Taylor de sen(x). jcfatorial<-function(n){ #jcfatorial é o nome que escolhi para a função que calcula o fatorial de número natural. if (n==0){p=1} else {p=n*jcfatorial(n-1)} p} taylorsen7<-function(s){ # Polinômio da Taylor de grau 7, em a=0, para sen(x). s-s^3/jcfatorial(3)+s^5/jcfatorial(5)-s^7/jcfatorial(7) } # Testando a função que construímos. curve(taylorsen7,-4,4,col="blue",ylim=c(-1,1),ylab="") legend("topleft", legend="taylorsen7(x)", lty=1, col="blue", lwd=1, bty="n") par(new=TRUE) curve(sin,-4,4,col="red",ylab="") legend(x=-4.3,y=0.95, legend="sen(x)", lty=1, col="red", lwd=1, bty="n")
run
|
edit
|
history
|
help
0
Sierpinski curve square
Chi-squared tests of independence [Seat Belt Yes/No] worked
2
19-08-2020-JacobiSistema
Gab1A(resumido)
Teste de sheffé
peso 16ago
time series
error de redondeo
Chi-squared tests of independence [m musculoskeletal injuries treated]