

Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Esta página não é visível na pré-visualização
Não perca as partes importantes!


Tópicos de resoluçao da 2ª Frequência v
Da forma iterativa de Newton-Raphson, temos que:
x_{i+1} = x_i - f(x_i)/f'(x_i) = x_i - (x_i^2-7)/(2x_i) = x_i - x_i/2 + 7/(2x_i) = x_i/2 + 7/(2x_i) = 1/2 (x_i + 7/x_i) C.Q.D.
Escolha de x0:
f:=x-> x^2-7: f(2)f''(2); f(3)f''(3) − 6
4
Com x0=3:
n:=3: x :=3: for k from 1 to n do x:=x-f(x)/f'(x): print(Unquoted, "x".k=float(x)) end_for: DIGITS:=5: print(NoNL,Unquoted, "A soluçao é aproximadamente ".float(x)): delete x,n,DIGITS:
x1 = -2. x2 = - 1.872810856 + 4.854318108 I x3 = 8.008729391 - 1.365810064 I A soluçao é aproximadamente 8.0087 - 1.3658*I
t 1 3 5
v(t) 800 2310 3090
xList := [1,3,5]: yList := [800,2310,3090]: p := interpolate(xList, yList,x): print(NoNL,Unquoted, "O polinómio interpolador é dado por P(x)="): simplify(p(x));
valor:= evalAt(simplify(p(x)),x=4): print(Unquoted, "O valor de v(4) é aproximadamente P(4)= ".float(valor)):
O polinómio interpolador é dado por P(x)= − 365 x
2 4
(^) + 1120 x − 915 4
O valor de v(4) é aproximadamente P(4)= 2791.
ET(n):=(2-1)^50.375/(180n^4): solve(ET(n)<=0.5*10^(-4),n, Real)
[2.540663741, ∞) ∪ ( − ∞, − 2.540663741]
Para aproximar o integral pela regra de Simpson, com um erro inferior a 0.5*10^(-4), é necessário considerar n=4 (n par) subintervalos.
f:=x->ln(x+1):
n:=4: a:=1: b:=2: h:=(b-a)/n: x:=a: s:=0: for i from 1 to n-1 do x:=x+h: if i mod 2= then s:=s+2f(x) else s:=s+4f(x) end_if end_for: IT:=h/3*(f(a)+s+f(b)): delete x,n:
DIGITS:=4: print(NoNL,Unquoted, "O integral é aproximadamente ".float(IT)): delete x,n,DIGITS:
O integral é aproximadamente 0.
y:=1: t:=0: for i from 1 to 3 do y:=y+0.4(2t+y); t:=0+0.4*i; print(Unquoted,"t".i=t,"y".i=float(y)) end_for: print(NoNL,Unquoted, "O valor de y(1.2) é aproximadamente ".float(y)):
t1 = 0.4, y1 = 1. t2 = 0.8, y2 = 2. t3 = 1.2, y3 = 3. O valor de y(1.2) é aproximadamente 3.