Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
EulerEx1
# Dada a equação # y'(t)=cos(t) # y(-2)=-1 # Estimar y(4) pelo método de Euler. a=-2 b=4 n=100 h=(b-a)/n y=0*(0:n) y[1]=-1 # y(-2)=-1 é o y_0 nas notas. for ( i in 1:n){ y[i+1]=y[i]+h*cos(a+i*h) # y(c+h)=y(c)+hy'(c)+Erro } t=seq(a,b,by=h);t y # Como conhecemos y=f(t), que é f<-function(t){sin(t)-1-sin(-2)} curve(f,a,b,col="blue") points(t,y,col="red")
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
Otavio-fez
Sequence position finder2
Análise de Variâncias DIC e teste de Tukey 1
Sensitivity to Escitalopram MACE count
Área de parábolas via séries de Arquimedes e Cálculo
funções iron
Chi Square Tests [Is the die fair?]
Mann Whitney wilcoxon test
Mathematical operations 1
26-08-2020Teste
Please log in to post a comment.