P. 1
Prova_final_Calculo_numerico[1]

Prova_final_Calculo_numerico[1]

|Views: 108|Likes:
Published by Camila Siqueira

More info:

Published by: Camila Siqueira on Nov 08, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as DOCX, PDF, TXT or read online from Scribd
See more
See less

04/17/2013

pdf

text

original

Questão 8.

18
Um indutor e um resistor não linear de resistência

estão conectados
em série com uma fonte de tensão CC e uma chave. A chave está inicialmente aberta,
sendo então fechada no tempo t=0. A corrente I no circuito para t>0 é determinada a
apartir da solução da equação:

Para

e , determine e trace a corrente em função do tempo em
.
(a) Resolva o problema com a função edoPontoCentral escrita no problema 8.11.
Use 0,005 como passo de integração.
(b) Resolva o problema usando uma das funções residentes do MATLAB.
RESOLUÇÃO
a) Arquivo da função
Nome do arquivo: questao18.m






b) Arquivo de Script da Solução:












function dIdt = questao18(t,I)
R=500+250*I*I;
VO=1000; L=15;
dIdt=VO/L-R*I/L;

% Autor:
% Aluno 1:Camila Vasconcelos Siqueira
% Questão 8.18
clc
clear all
close all

disp('Corrente em um circuito formado por
um indutor e um resistor não-linear em
série');
tint = 0:0.005:0.1;
Iini = 0;
[t,I] = ode45 ('questao18', tint, Iini);
plot(t,I)
xlabel('t (s)');
ylabel('I (A)')
fprintf('Corrente (I) em função do tempo
(t)\n');
fprintf('I(%1.4f)=%1.4f\n',t,I');

c) Resposta do Matlab:












d) Gráfico da solução

Corrente em um circuito formado por um indutor
e um resistor não-linear em série
Corrente (I) em função do tempo (t)
I(0.0000)=0.0050
I(0.0100)=0.0150
I(0.0200)=0.0250
I(0.0300)=0.0350
I(0.0400)=0.0450
I(0.0500)=0.0550
I(0.0600)=0.0650
I(0.0700)=0.0750
I(0.0800)=0.0850
I(0.0900)=0.0950
I(0.1000)=0.0000
I(0.3065)=0.5593
I(0.7574)=0.9029
I(1.0037)=1.0702
I(1.1126)=1.1389
I(1.1550)=1.1648
I(1.1707)=1.1742
I(1.1763)=1.1776
I(1.1784)=1.1788
I(1.1791)=1.1793
I(1.1794)=1.1794
Questão 8.19
Considere o tanque de água cilíndrico mostrado na Fig.8-1 (repetido ao lado). Enche-se
o tanque por cima e a água sai por um cano conectado no fundo. A taxa de variação da
altura do nível d’água h é dada pela equação (8.6):

(

)


No tanque em questão,

,

,

⁄ ,

⁄ . Além disso,

⁄ , e

⁄ . Determine e trace
um gráfico com a altura do nível d’água em função do tempo em , se, em
.
a) Use a Função edoRKE escrita no problema 8.12, com um passo de integração de
0,1s.
b) Use uma das funções residentes do MATLAB.
RESOLUÇÃO
a) Arquivo da função
Nome do arquivo: questao19.m




b) Arquivo de Script da Solução:










c) Resposta do Matlab:
function dhdt = questao19(t,h)
R=4; r= 0.02; g= 9.81;

dhdt=(-(r^2)*sqrt(2*g*h))/(2*h*R-h^2);


% Autores:
% Aluno 1: Camila Vasconcelos Siqueira
% Questão 8.19
clc
clearall
closeall

disp(' Altura do nível da água em função do
tempo:');
tint = [0:0,1:150];
hini = 3;
[t,h] = ode45('questao19', tint, 6);

plot(t,h)
xlabel('t (s)');
ylabel('h (m)')

aux=[t';h(:,1)'];
fprintf('h(%2.4f)=%2.4f\n',aux);




























Altura do nível da água
em função do tempo:
h(0.0000)=6.0000
h(1.0000)=5.9996
h(2.0000)=5.9993
h(3.0000)=5.9989
h(4.0000)=5.9986
h(5.0000)=5.9982
h(6.0000)=5.9978
h(7.0000)=5.9975
h(8.0000)=5.9971
h(9.0000)=5.9967
h(10.0000)=5.9964
h(11.0000)=5.9960
h(12.0000)=5.9957
h(13.0000)=5.9953
h(14.0000)=5.9949
h(15.0000)=5.9946
h(16.0000)=5.9942
h(17.0000)=5.9939
h(18.0000)=5.9935
h(19.0000)=5.9931
h(20.0000)=5.9928
h(21.0000)=5.9924
h(22.0000)=5.9921
h(23.0000)=5.9917
h(24.0000)=5.9913
h(25.0000)=5.9910
h(26.0000)=5.9906
h(27.0000)=5.9903
h(28.0000)=5.9899
h(29.0000)=5.9895
h(30.0000)=5.9892
h(31.0000)=5.9888
h(32.0000)=5.9885
h(33.0000)=5.9881
h(34.0000)=5.9877
h(35.0000)=5.9874
h(36.0000)=5.9870
h(37.0000)=5.9867
h(38.0000)=5.9863
h(39.0000)=5.9859
h(40.0000)=5.9856
h(41.0000)=5.9852
h(42.0000)=5.9849
h(43.0000)=5.9845
h(44.0000)=5.9841
h(45.0000)=5.9838
h(46.0000)=5.9834
h(47.0000)=5.9831
h(48.0000)=5.9827
h(49.0000)=5.9823
h(50.0000)=5.9820
h(51.0000)=5.9816
h(52.0000)=5.9813
h(53.0000)=5.9809
h(54.0000)=5.9805
h(55.0000)=5.9802
h(56.0000)=5.9798
h(57.0000)=5.9795
h(58.0000)=5.9791
h(59.0000)=5.9788
h(60.0000)=5.9784
h(61.0000)=5.9780
h(62.0000)=5.9777

h(63.0000)=5.9773
h(64.0000)=5.9770
h(65.0000)=5.9766
h(66.0000)=5.9762
h(67.0000)=5.9759
h(68.0000)=5.9755
h(69.0000)=5.9752
h(70.0000)=5.9748
h(71.0000)=5.9745
h(72.0000)=5.9741
h(73.0000)=5.9737
h(74.0000)=5.9734
h(75.0000)=5.9730
h(76.0000)=5.9727
h(77.0000)=5.9723
h(78.0000)=5.9720
h(79.0000)=5.9716
h(80.0000)=5.9712
h(81.0000)=5.9709
h(82.0000)=5.9705
h(83.0000)=5.9702
h(84.0000)=5.9698
h(85.0000)=5.9695
h(86.0000)=5.9691
h(87.0000)=5.9687
h(88.0000)=5.9684
h(89.0000)=5.9680
h(90.0000)=5.9677
h(91.0000)=5.9673
h(92.0000)=5.9670
h(93.0000)=5.9666
h(94.0000)=5.9662
h(95.0000)=5.9659
h(96.0000)=5.9655
h(97.0000)=5.9652
h(98.0000)=5.9648
h(99.0000)=5.9645
h(100.0000)=5.9641
h(101.0000)=5.9637
h(102.0000)=5.9634
h(103.0000)=5.9630
h(104.0000)=5.9627
h(105.0000)=5.9623
h(106.0000)=5.9620
h(107.0000)=5.9616
h(108.0000)=5.9613
h(109.0000)=5.9609
h(110.0000)=5.9605
h(111.0000)=5.9602
h(112.0000)=5.9598
h(113.0000)=5.9595
h(114.0000)=5.9591
h(115.0000)=5.9588
h(116.0000)=5.9584
h(117.0000)=5.9581
h(118.0000)=5.9577
h(119.0000)=5.9573
h(120.0000)=5.9570
h(121.0000)=5.9566
h(122.0000)=5.9563
h(123.0000)=5.9559
h(124.0000)=5.9556
h(125.0000)=5.9552
h(126.0000)=5.9549
h(127.0000)=5.9545

h(128.0000)=5.9541
h(129.0000)=5.9538
h(130.0000)=5.9534
h(131.0000)=5.9531
h(132.0000)=5.9527
h(133.0000)=5.9524
h(134.0000)=5.9520
h(135.0000)=5.9517
h(136.0000)=5.9513
h(137.0000)=5.9510
h(138.0000)=5.9506
h(139.0000)=5.9502
h(140.0000)=5.9499
h(141.0000)=5.9495
h(142.0000)=5.9492
h(143.0000)=5.9488
h(144.0000)=5.9485
h(145.0000)=5.9481
h(146.0000)=5.9478
h(147.0000)=5.9474
h(148.0000)=5.9471
h(149.0000)=5.9467
h(150.0000)=5.9463
d) Gráfico da solução

Questão 8.20
Um tanque esférico de raio R=4m éesvaziado por meio de um pequeno buraco circular
de raio r=0,02m localizado no fundo. O topo do tanque está aberto. O nível d’água
instantâneo no tanque h(medido a partir do fundo do tanque, no dreno), pode ser
determinado a partir da solução da seguinte EDO:


Onde

⁄ . Se o nível d’água inicial em é , determine o tempo
necessário para drenar o tanque até um nível de .
a) Use o método de Runge-Kutta de quarta ordem (função edoRK, listada no
Programa 8-4 e desenvolvida no exemplo8-6).
b) Use uma das funções residentes do MATLAB.
RESOLUÇÃO
a) Arquivo da função
Nome do arquivo: questao20.m


function dhdt = questao20(t,h)
R=4; r= 0.02; g= 9.81;

dhdt=(-(r^2)*sqrt(2*g*h))/(2*h*R-h^2);


b) Arquivo de Script da Solução:









c) Resposta do Matlab:



d) Gráfico da solução

% Autor:
% Aluno 1:Camila Vasconcelos Siqueira
% Questão 8.20
clc
clear all
close all

disp(' Tempo necessário para drenar um
tanque até um nível de 0.5 metros');
tint = [0:100:2.43e+4];
hini = 6;
[t,h] = ode45('questao20', tint, 6);
m=find(0.5<h & h<0.51);
plot(t,h)
xlabel('t (s)');
ylabel('h (m)')
% disp('Altura em função do tempo');

fprintf('h(%2.0f)=0.5\n',t(m));

Tempo necessário para drenar um
tanque até um nível de 0.5 metros
h(23300)=0.5
Questão 8.21
Um pequeno foguete com peso inicial de 1360 kg (incluindo 90 kg de combustível),
inicialmente em repouso, é lançado verticalmente. O foguete queima o combustível em
uma taxa constante de ⁄ , o que resulta em uma força de propulsão T constante,
de 31400 N. O peso instantâneo do foguete é () . A força de
arasto D sentida pelo foguete é dada por:

Determine e trace a posição, a velocidade e a aceleração do foguete (três figuras
separadas em uma página) em função do tempo, de , quando o foguete deixa o
repouso, até . Reduza a EDO de segunda ordem a um sistema de duas EDOs de
primeira ordem.
a) Use o método de Runge-Kutta de quarta ordem. Utiliza a função Sis2E-
DOsRK4 (Programa 8-6), desenvolvida no Exemplo 8-8, ou a função Sis2E-
DOsRKclas (escrita no Problema 8-16). Trabalhe com um passo de integração
de 0,05s.
b) Use uma das funções residentes do MATLAB.

RESOLUÇÃO
a) Arquivo da função
Nome do arquivo: questão_21.m


















functiondydt = questao_21(t,y)
w=13500-360*t; T=31400; g=9.81;
k=w/g;
dydt =zeros(2,1);
dydt(1)=y(2);
dydt(2)=(T-w-0.036*g*(y(2)^2))/k;


b) Arquivo de Script da Solução:

























c) Resposta do Matlab:
% Autor:
% Aluno 1: Camila Vasconcelos Siqueira
% Questão 8.21
clc
clear all
close all

disp(' Posição do foguete em função do
tempo');
[t,y] = ode45('questao_21', 0:0.05:3, [0
0]);

subplot(3,1,1);
plot(t,y(:,1))
xlabel('t (s)');
ylabel('y (m)')
aux=[t';y(:,1)'];
fprintf('Deslocamento (y) em função do
tempo (t)\n\n');
fprintf('y(%2.4f)=%2.4f\n',aux);

subplot(3,1,2);
plot(t,y(:,2))
xlabel('t (s)');
ylabel('v (m/s)')
aux2=[t';y(:,2)'];
fprintf('Velocidade (v) em função do tempo
(t)\n\n');
fprintf('y(%2.4f)=%2.4f\n',aux2);

tempo = 0:0.05:3;
ac = (31400-13500+360.*tempo'-
0.036.*9.81.*y(:,2).^2)*9.81./(13500-
360.*tempo');

subplot(3,1,3);
plot(tempo,ac);
xlabel('t (s)');
ylabel('a (m/s²)');
aux3=[t';ac'];
fprintf('Aceleração (a) em função do tempo
(t)\n\n');
fprintf('y(%2.4f)=%2.4f\n',aux3);




























Posição do foguete em
função do tempo
Deslocamento (y) em
função do tempo (t)
y(0.0000)=0.0000
y(0.0500)=0.0163
y(0.1000)=0.0651
y(0.1500)=0.1467
y(0.2000)=0.2610
y(0.2500)=0.4081
y(0.3000)=0.5880
y(0.3500)=0.8010
y(0.4000)=1.0470
y(0.4500)=1.3261
y(0.5000)=1.6384
y(0.5500)=1.9840
y(0.6000)=2.3629
y(0.6500)=2.7752
y(0.7000)=3.2210
y(0.7500)=3.7003
y(0.8000)=4.2133
y(0.8500)=4.7599
y(0.9000)=5.3403
y(0.9500)=5.9546
y(1.0000)=6.6027
y(1.0500)=7.2848
y(1.1000)=8.0009
y(1.1500)=8.7511
y(1.2000)=9.5355
y(1.2500)=10.3541
y(1.3000)=11.2070
y(1.3500)=12.0943
y(1.4000)=13.0160
y(1.4500)=13.9722
y(1.5000)=14.9630
y(1.5500)=15.9884
y(1.6000)=17.0484
y(1.6500)=18.1433
y(1.7000)=19.2729
y(1.7500)=20.4374
y(1.8000)=21.6369
y(1.8500)=22.8713
y(1.9000)=24.1408
y(1.9500)=25.4454
y(2.0000)=26.7852
y(2.0500)=28.1602
y(2.1000)=29.5705
y(2.1500)=31.0162
y(2.2000)=32.4973
y(2.2500)=34.0138
y(2.3000)=35.5658
y(2.3500)=37.1534
y(2.4000)=38.7767
y(2.4500)=40.4356
y(2.5000)=42.1303
y(2.5500)=43.8607
y(2.6000)=45.6270
y(2.6500)=47.4291
y(2.7000)=49.2672
y(2.7500)=51.1413
y(2.8000)=53.0515
y(2.8500)=54.9977
y(2.9000)=56.9801
y(2.9500)=58.9986
y(3.0000)=61.0534
Velocidade (v) em função
do tempo (t)

y(0.0000)=0.0000
y(0.0500)=0.6511
y(0.1000)=1.3038
y(0.1500)=1.9579
y(0.2000)=2.6136
y(0.2500)=3.2707
y(0.3000)=3.9293
y(0.3500)=4.5894
y(0.4000)=5.2510
y(0.4500)=5.9141
y(0.5000)=6.5785
y(0.5500)=7.2445
y(0.6000)=7.9119
y(0.6500)=8.5807
y(0.7000)=9.2509
y(0.7500)=9.9226
y(0.8000)=10.5956
y(0.8500)=11.2701
y(0.9000)=11.9460
y(0.9500)=12.6232
y(1.0000)=13.3018
y(1.0500)=13.9818
y(1.1000)=14.6631
y(1.1500)=15.3458
y(1.2000)=16.0298
y(1.2500)=16.7151
y(1.3000)=17.4018
y(1.3500)=18.0897
y(1.4000)=18.7790
y(1.4500)=19.4696
y(1.5000)=20.1614
y(1.5500)=20.8545
y(1.6000)=21.5489
y(1.6500)=22.2445
y(1.7000)=22.9413
y(1.7500)=23.6394
y(1.8000)=24.3387
y(1.8500)=25.0392
y(1.9000)=25.7409
y(1.9500)=26.4438
y(2.0000)=27.1479
y(2.0500)=27.8531
y(2.1000)=28.5595
y(2.1500)=29.2670
y(2.2000)=29.9757
y(2.2500)=30.6855
y(2.3000)=31.3963
y(2.3500)=32.1083
y(2.4000)=32.8214
y(2.4500)=33.5355
y(2.5000)=34.2507
y(2.5500)=34.9670
y(2.6000)=35.6843
y(2.6500)=36.4026
y(2.7000)=37.1219
y(2.7500)=37.8422
y(2.8000)=38.5636
y(2.8500)=39.2858
y(2.9000)=40.0091
y(2.9500)=40.7333
y(3.0000)=41.4584
Aceleração (a) em função
do tempo (t)

y(0.0000)=13.0073
y(0.0500)=13.0377
y(0.1000)=13.0679
y(0.1500)=13.0980
y(0.2000)=13.1279
y(0.2500)=13.1577
y(0.3000)=13.1873
y(0.3500)=13.2168
y(0.4000)=13.2462
y(0.4500)=13.2754
y(0.5000)=13.3044
y(0.5500)=13.3333
y(0.6000)=13.3620
y(0.6500)=13.3906
y(0.7000)=13.4190
y(0.7500)=13.4472
y(0.8000)=13.4753
y(0.8500)=13.5032
y(0.9000)=13.5309
y(0.9500)=13.5584
y(1.0000)=13.5858
y(1.0500)=13.6130
y(1.1000)=13.6400
y(1.1500)=13.6669
y(1.2000)=13.6935
y(1.2500)=13.7200
y(1.3000)=13.7462
y(1.3500)=13.7723
y(1.4000)=13.7982
y(1.4500)=13.8239
y(1.5000)=13.8494
y(1.5500)=13.8747
y(1.6000)=13.8998
y(1.6500)=13.9247
y(1.7000)=13.9494
y(1.7500)=13.9738
y(1.8000)=13.9981
y(1.8500)=14.0222
y(1.9000)=14.0460
y(1.9500)=14.0696
y(2.0000)=14.0930
y(2.0500)=14.1162
y(2.1000)=14.1392
y(2.1500)=14.1619
y(2.2000)=14.1844
y(2.2500)=14.2067
y(2.3000)=14.2287
y(2.3500)=14.2506
y(2.4000)=14.2721
y(2.4500)=14.2935
y(2.5000)=14.3146
y(2.5500)=14.3354
y(2.6000)=14.3561
y(2.6500)=14.3764
y(2.7000)=14.3966
y(2.7500)=14.4164
y(2.8000)=14.4361
y(2.8500)=14.4554
y(2.9000)=14.4745
y(2.9500)=14.4934
y(3.0000)=14.5120
d) Gráfico da solução


Questão 8.22
Um manômetro em formato de U (usado para medir pressão) está inicialmente cheio de
água, mas é exposto a uma diferença de pressão tal que o nível d’água em seu lado
esquerdo fica 0,05m mais alto que o nível d’água em seu lado direito. T t=0, a diferença
de pressão é repentinamente removida. Quando se despreza o atrito, a altura do nível
d’água no lado esquerdo y medida a partir do plano central entre os dois níveis d’água
iniciais é dada pela solução da equação:

Onde é o comprimento total do tubo em forma de U, e

⁄ .
Resolva a EDO e trace e

(duas figuras separadas em uma página) em função de t
nos primeiros 10s. Transforme a EDO de segunda ordem em duas EDOs de primeira
ordem e resolva o sistema usando:
a) A função Sis2EDOsRKEuMod escrita no Problema 8.15. Use um passo se
integração de 0,02s.

b) Use uma das funções residentes do MATLAB.
RESOLUÇÃO
a) Arquivo da função
Nome do arquivo: exercicio22.m





b) Arquivo de Script da Solução:









c) Resposta do Matlab
Na outra página.









functiondydt = exercicio22 (t,y)
L=0.2;
g=9.81;
dydt = zeros(2,1);
dydt(1) = y(2);
dydt(2) = -2*g*y(1)/L;


% Autores:
% Aluno (a) 1:Camila Vasconcelos Siqueira
% Questão 8.22
clc
close all
clear all

[t,y]=ode45('exercicio22',[0:0.02:10],
[0.05 0]);
plot(t,y);
xlabel('t (s)')
ylabel('y (m)')
legend('Nível de água','Velocidade')
aux = [t' ;y(:,1)'];
fprintf('Altura do nível de água (y) em
função do tempo (t)\n\n');
fprintf('y (%2.4f)= %2.4f \n', aux);




























y (2.6000)= 0.0406
y (2.6200)= 0.0341
y (2.6400)= 0.0262
y (2.6600)= 0.0174
y (2.6800)= 0.0078
y (2.7000)= -0.0021
y (2.7200)= -0.0118
y (2.7400)= -0.0212
y (2.7600)= -0.0297
y (2.7800)= -0.0370
y (2.8000)= -0.0429
y (2.8200)= -0.0471
y (2.8400)= -0.0495
y (2.8600)= -0.0499
y (2.8800)= -0.0484
y (2.9000)= -0.0450
y (2.9200)= -0.0398
y (2.9400)= -0.0331
y (2.9600)= -0.0250
y (2.9800)= -0.0160
y (3.0000)= -0.0064
y (3.0200)= 0.0035
y (3.0400)= 0.0132
y (3.0600)= 0.0224
y (3.0800)= 0.0308
y (3.1000)= 0.0379
y (3.1200)= 0.0436
y (3.1400)= 0.0475
y (3.1600)= 0.0496
y (3.1800)= 0.0498
y (3.2000)= 0.0480
y (3.2200)= 0.0443
y (3.2400)= 0.0389
y (3.2600)= 0.0320
y (3.2800)= 0.0238
y (3.3000)= 0.0147
y (3.3200)= 0.0050
y (3.3400)= -0.0049
y (3.3600)= -0.0146
y (3.3800)= -0.0237
y (3.4000)= -0.0319
y (3.4200)= -0.0388
y (3.4400)= -0.0442
y (3.4600)= -0.0479
y (3.4800)= -0.0498
y (3.5000)= -0.0496
y (3.5200)= -0.0476
y (3.5400)= -0.0436
y (3.5600)= -0.0380
y (3.5800)= -0.0309
y (3.6000)= -0.0226
y (3.6200)= -0.0133
y (3.6400)= -0.0036
y (3.6600)= 0.0063
y (3.6800)= 0.0159
y (3.7000)= 0.0249
y (3.7200)= 0.0329
y (3.7400)= 0.0397
y (3.7600)= 0.0449
y (3.7800)= 0.0483
y (3.8000)= 0.0499
y (3.8200)= 0.0495
y (3.8400)= 0.0471
y (3.8600)= 0.0429
y (3.8800)= 0.0371

y (1.3000)= 0.0476
y (1.3200)= 0.0436
y (1.3400)= 0.0380
y (1.3600)= 0.0309
y (1.3800)= 0.0225
y (1.4000)= 0.0133
y (1.4200)= 0.0036
y (1.4400)= -0.0063
y (1.4600)= -0.0160
y (1.4800)= -0.0250
y (1.5000)= -0.0330
y (1.5200)= -0.0397
y (1.5400)= -0.0449
y (1.5600)= -0.0484
y (1.5800)= -0.0499
y (1.6000)= -0.0495
y (1.6200)= -0.0471
y (1.6400)= -0.0429
y (1.6600)= -0.0371
y (1.6800)= -0.0297
y (1.7000)= -0.0213
y (1.7200)= -0.0119
y (1.7400)= -0.0022
y (1.7600)= 0.0077
y (1.7800)= 0.0173
y (1.8000)= 0.0262
y (1.8200)= 0.0340
y (1.8400)= 0.0406
y (1.8600)= 0.0455
y (1.8800)= 0.0487
y (1.9000)= 0.0500
y (1.9200)= 0.0493
y (1.9400)= 0.0466
y (1.9600)= 0.0422
y (1.9800)= 0.0361
y (2.0000)= 0.0286
y (2.0200)= 0.0200
y (2.0400)= 0.0106
y (2.0600)= 0.0007
y (2.0800)= -0.0091
y (2.1000)= -0.0186
y (2.1200)= -0.0274
y (2.1400)= -0.0351
y (2.1600)= -0.0414
y (2.1800)= -0.0461
y (2.2000)= -0.0490
y (2.2200)= -0.0500
y (2.2400)= -0.0490
y (2.2600)= -0.0461
y (2.2800)= -0.0414
y (2.3000)= -0.0351
y (2.3200)= -0.0274
y (2.3400)= -0.0187
y (2.3600)= -0.0092
y (2.3800)= 0.0007
y (2.4000)= 0.0105
y (2.4200)= 0.0199
y (2.4400)= 0.0285
y (2.4600)= 0.0360
y (2.4800)= 0.0421
y (2.5000)= 0.0466
y (2.5200)= 0.0492
y (2.5400)= 0.0500
y (2.5600)= 0.0487
y (2.5800)= 0.0456

y (0.0000)= 0.0500
y (0.0200)= 0.0490
y (0.0400)= 0.0461
y (0.0600)= 0.0414
y (0.0800)= 0.0351
y (0.1000)= 0.0274
y (0.1200)= 0.0186
y (0.1400)= 0.0092
y (0.1600)= -0.0007
y (0.1800)= -0.0105
y (0.2000)= -0.0199
y (0.2200)= -0.0286
y (0.2400)= -0.0361
y (0.2600)= -0.0422
y (0.2800)= -0.0467
y (0.3000)= -0.0493
y (0.3200)= -0.0500
y (0.3400)= -0.0487
y (0.3600)= -0.0456
y (0.3800)= -0.0406
y (0.4000)= -0.0341
y (0.4200)= -0.0262
y (0.4400)= -0.0173
y (0.4600)= -0.0078
y (0.4800)= 0.0021
y (0.5000)= 0.0119
y (0.5200)= 0.0212
y (0.5400)= 0.0297
y (0.5600)= 0.0371
y (0.5800)= 0.0429
y (0.6000)= 0.0471
y (0.6200)= 0.0495
y (0.6400)= 0.0499
y (0.6600)= 0.0484
y (0.6800)= 0.0450
y (0.7000)= 0.0398
y (0.7200)= 0.0330
y (0.7400)= 0.0250
y (0.7600)= 0.0160
y (0.7800)= 0.0064
y (0.8000)= -0.0035
y (0.8200)= -0.0133
y (0.8400)= -0.0225
y (0.8600)= -0.0308
y (0.8800)= -0.0380
y (0.9000)= -0.0436
y (0.9200)= -0.0476
y (0.9400)= -0.0497
y (0.9600)= -0.0498
y (0.9800)= -0.0480
y (1.0000)= -0.0443
y (1.0200)= -0.0389
y (1.0400)= -0.0320
y (1.0600)= -0.0238
y (1.0800)= -0.0147
y (1.1000)= -0.0050
y (1.1200)= 0.0049
y (1.1400)= 0.0146
y (1.1600)= 0.0237
y (1.1800)= 0.0319
y (1.2000)= 0.0389
y (1.2200)= 0.0443
y (1.2400)= 0.0480
y (1.2600)= 0.0498
y (1.2800)= 0.0497






























y (6.5000)= 0.0008
y (6.5200)= -0.0090
y (6.5400)= -0.0185
y (6.5600)= -0.0272
y (6.5800)= -0.0349
y (6.6000)= -0.0413
y (6.6200)= -0.0460
y (6.6400)= -0.0489
y (6.6600)= -0.0499
y (6.6800)= -0.0490
y (6.7000)= -0.0461
y (6.7200)= -0.0414
y (6.7400)= -0.0351
y (6.7600)= -0.0275
y (6.7800)= -0.0187
y (6.8000)= -0.0093
y (6.8200)= 0.0006
y (6.8400)= 0.0104
y (6.8600)= 0.0198
y (6.8800)= 0.0284
y (6.9000)= 0.0359
y (6.9200)= 0.0420
y (6.9400)= 0.0465
y (6.9600)= 0.0492
y (6.9800)= 0.0499
y (7.0000)= 0.0487
y (7.0200)= 0.0455
y (7.0400)= 0.0406
y (7.0600)= 0.0341
y (7.0800)= 0.0263
y (7.1000)= 0.0174
y (7.1200)= 0.0079
y (7.1400)= -0.0020
y (7.1600)= -0.0117
y (7.1800)= -0.0211
y (7.2000)= -0.0296
y (7.2200)= -0.0369
y (7.2400)= -0.0428
y (7.2600)= -0.0470
y (7.2800)= -0.0494
y (7.3000)= -0.0498
y (7.3200)= -0.0483
y (7.3400)= -0.0449
y (7.3600)= -0.0398
y (7.3800)= -0.0331
y (7.4000)= -0.0251
y (7.4200)= -0.0161
y (7.4400)= -0.0065
y (7.4600)= 0.0034
y (7.4800)= 0.0131
y (7.5000)= 0.0223
y (7.5200)= 0.0307
y (7.5400)= 0.0378
y (7.5600)= 0.0435
y (7.5800)= 0.0474
y (7.6000)= 0.0496
y (7.6200)= 0.0497
y (7.6400)= 0.0480
y (7.6600)= 0.0443
y (7.6800)= 0.0389
y (7.7000)= 0.0320
y (7.7200)= 0.0239
y (7.7400)= 0.0148
y (7.7600)= 0.0051
y (7.7800)= -0.0048

y (5.2000)= 0.0161
y (5.2200)= 0.0064
y (5.2400)= -0.0034
y (5.2600)= -0.0132
y (5.2800)= -0.0224
y (5.3000)= -0.0307
y (5.3200)= -0.0379
y (5.3400)= -0.0435
y (5.3600)= -0.0475
y (5.3800)= -0.0496
y (5.4000)= -0.0498
y (5.4200)= -0.0480
y (5.4400)= -0.0443
y (5.4600)= -0.0389
y (5.4800)= -0.0320
y (5.5000)= -0.0238
y (5.5200)= -0.0147
y (5.5400)= -0.0050
y (5.5600)= 0.0048
y (5.5800)= 0.0145
y (5.6000)= 0.0236
y (5.6200)= 0.0318
y (5.6400)= 0.0388
y (5.6600)= 0.0442
y (5.6800)= 0.0479
y (5.7000)= 0.0497
y (5.7200)= 0.0496
y (5.7400)= 0.0476
y (5.7600)= 0.0436
y (5.7800)= 0.0380
y (5.8000)= 0.0309
y (5.8200)= 0.0226
y (5.8400)= 0.0134
y (5.8600)= 0.0036
y (5.8800)= -0.0062
y (5.9000)= -0.0158
y (5.9200)= -0.0249
y (5.9400)= -0.0329
y (5.9600)= -0.0396
y (5.9800)= -0.0448
y (6.0000)= -0.0483
y (6.0200)= -0.0498
y (6.0400)= -0.0494
y (6.0600)= -0.0471
y (6.0800)= -0.0429
y (6.1000)= -0.0371
y (6.1200)= -0.0298
y (6.1400)= -0.0213
y (6.1600)= -0.0120
y (6.1800)= -0.0022
y (6.2000)= 0.0076
y (6.2200)= 0.0172
y (6.2400)= 0.0261
y (6.2600)= 0.0339
y (6.2800)= 0.0405
y (6.3000)= 0.0454
y (6.3200)= 0.0486
y (6.3400)= 0.0499
y (6.3600)= 0.0492
y (6.3800)= 0.0466
y (6.4000)= 0.0422
y (6.4200)= 0.0361
y (6.4400)= 0.0286
y (6.4600)= 0.0200
y (6.4800)= 0.0106
y (3.9000)= 0.0298
y (3.9200)= 0.0213
y (3.9400)= 0.0120
y (3.9600)= 0.0022
y (3.9800)= -0.0077
y (4.0000)= -0.0172
y (4.0200)= -0.0261
y (4.0400)= -0.0340
y (4.0600)= -0.0405
y (4.0800)= -0.0455
y (4.1000)= -0.0487
y (4.1200)= -0.0499
y (4.1400)= -0.0492
y (4.1600)= -0.0466
y (4.1800)= -0.0422
y (4.2000)= -0.0361
y (4.2200)= -0.0286
y (4.2400)= -0.0200
y (4.2600)= -0.0106
y (4.2800)= -0.0008
y (4.3000)= 0.0090
y (4.3200)= 0.0185
y (4.3400)= 0.0273
y (4.3600)= 0.0350
y (4.3800)= 0.0413
y (4.4000)= 0.0460
y (4.4200)= 0.0489
y (4.4400)= 0.0499
y (4.4600)= 0.0490
y (4.4800)= 0.0461
y (4.5000)= 0.0414
y (4.5200)= 0.0351
y (4.5400)= 0.0275
y (4.5600)= 0.0187
y (4.5800)= 0.0092
y (4.6000)= -0.0006
y (4.6200)= -0.0104
y (4.6400)= -0.0198
y (4.6600)= -0.0285
y (4.6800)= -0.0360
y (4.7000)= -0.0421
y (4.7200)= -0.0466
y (4.7400)= -0.0492
y (4.7600)= -0.0499
y (4.7800)= -0.0487
y (4.8000)= -0.0455
y (4.8200)= -0.0406
y (4.8400)= -0.0341
y (4.8600)= -0.0263
y (4.8800)= -0.0174
y (4.9000)= -0.0078
y (4.9200)= 0.0020
y (4.9400)= 0.0118
y (4.9600)= 0.0211
y (4.9800)= 0.0296
y (5.0000)= 0.0369
y (5.0200)= 0.0428
y (5.0400)= 0.0470
y (5.0600)= 0.0494
y (5.0800)= 0.0499
y (5.1000)= 0.0483
y (5.1200)= 0.0449
y (5.1400)= 0.0398
y (5.1600)= 0.0331
y (5.1800)= 0.0251













































y (7.8200)= -0.0236
y (7.8400)= -0.0318
y (7.8600)= -0.0387
y (7.8800)= -0.0441
y (7.9000)= -0.0479
y (7.9200)= -0.0497
y (7.9400)= -0.0496
y (7.9600)= -0.0475
y (7.9800)= -0.0436
y (8.0000)= -0.0380
y (8.0200)= -0.0309
y (8.0400)= -0.0226
y (8.0600)= -0.0134
y (8.0800)= -0.0037
y (8.1000)= 0.0062
y (8.1200)= 0.0158
y (8.1400)= 0.0248
y (8.1600)= 0.0328
y (8.1800)= 0.0396
y (8.2000)= 0.0448
y (8.2200)= 0.0482
y (8.2400)= 0.0498
y (8.2600)= 0.0494
y (8.2800)= 0.0471
y (8.3000)= 0.0429
y (8.3200)= 0.0371
y (8.3400)= 0.0298
y (8.3600)= 0.0213
y (8.3800)= 0.0121
y (8.4000)= 0.0023
y (8.4200)= -0.0076
y (8.4400)= -0.0171
y (8.4600)= -0.0260
y (8.4800)= -0.0339
y (8.5000)= -0.0404
y (8.5200)= -0.0454
y (8.5400)= -0.0486
y (8.5600)= -0.0499
y (8.5800)= -0.0492
y (8.6000)= -0.0466
y (8.6200)= -0.0422
y (8.6400)= -0.0361
y (8.6600)= -0.0287
y (8.6800)= -0.0201
y (8.7000)= -0.0107
y (8.7200)= -0.0009
y (8.7400)= 0.0089
y (8.7600)= 0.0184
y (8.7800)= 0.0272
y (8.8000)= 0.0349
y (8.8200)= 0.0412
y (8.8400)= 0.0459
y (8.8600)= 0.0489
y (8.8800)= 0.0499
y (8.9000)= 0.0489
y (8.9200)= 0.0461
y (8.9400)= 0.0414
y (8.9600)= 0.0352
y (8.9800)= 0.0275
y (9.0000)= 0.0188
y (9.0200)= 0.0093
y (9.0400)= -0.0005
y (9.0600)= -0.0103
y (9.0800)= -0.0197
y (9.1000)= -0.0284

y (9.1200)= -0.0359
y (9.1400)= -0.0420
y (9.1600)= -0.0465
y (9.1800)= -0.0491
y (9.2000)= -0.0499
y (9.2200)= -0.0486
y (9.2400)= -0.0455
y (9.2600)= -0.0406
y (9.2800)= -0.0341
y (9.3000)= -0.0263
y (9.3200)= -0.0175
y (9.3400)= -0.0079
y (9.3600)= 0.0019
y (9.3800)= 0.0117
y (9.4000)= 0.0210
y (9.4200)= 0.0295
y (9.4400)= 0.0368
y (9.4600)= 0.0427
y (9.4800)= 0.0470
y (9.5000)= 0.0493
y (9.5200)= 0.0498
y (9.5400)= 0.0483
y (9.5600)= 0.0449
y (9.5800)= 0.0398
y (9.6000)= 0.0331
y (9.6200)= 0.0251
y (9.6400)= 0.0161
y (9.6600)= 0.0065
y (9.6800)= -0.0033
y (9.7000)= -0.0131
y (9.7200)= -0.0223
y (9.7400)= -0.0306
y (9.7600)= -0.0378
y (9.7800)= -0.0434
y (9.8000)= -0.0474
y (9.8200)= -0.0495
y (9.8400)= -0.0497
y (9.8600)= -0.0479
y (9.8800)= -0.0443
y (9.9000)= -0.0389
y (9.9200)= -0.0320
y (9.9400)= -0.0239
y (9.9600)= -0.0148
y (9.9800)= -0.0051
y (10.0000)= 0.0047

d) Gráfico da solução

Questão 8.23
Se o efeito do atrito for incluído na análise do manômetro em forma de U do Problema
8.22, a altura do nível d’água y passa a ser dada pela solução da equação:

Resolva a EDO e trace ⁄ (duas figuras separadas em uma página) em função
de t nos primeiros 10s. Transforme a EDO de segunda ordem em duas EDOs de
primeira ordem e resolva o sistema usando:
a) A função Sis2EDOsRKclas escrita no Problema 8.16. Use um passo se
integração de 0,02s.
b) Use uma das funções residentes do MATLAB.


RESOLUÇÃO
a) Arquivo da função
Nome do arquivo: exercicio23.m






b) Arquivo de Script da Solução:










c) Resposta do Matlab:
Na outra página.








functiondydt = exercicio23 (t,y)
L=0.2;
g=9.81;
dydt = zeros(2,1);
dydt(1)=y(2);
dydt(2)=(-0.5*y(2)-2*g*y(1))/L;


% Autores:
% Aluno (a) 1: Camila Vasconcelos Siqueira
% Questão 8.23
clc
close all
clear all

[t,y]=ode45('exercicio23',[0:0.02:10],
[0.05 0]);
plot(t,y);
xlabel('t (s)')
ylabel('y (m)')
legend('Nível de água','Velocidade')
aux = [t' ;y(:,1)'];
fprintf('Altura do nível de água (y) em
função do tempo (t)\n\n');
fprintf('y (%2.4f)= %2.4f \n', aux);




























y (0.0000)= 0.0500
y (0.0200)= 0.0490
y (0.0400)= 0.0463
y (0.0600)= 0.0418
y (0.0800)= 0.0360
y (0.1000)= 0.0292
y (0.1200)= 0.0215
y (0.1400)= 0.0134
y (0.1600)= 0.0052
y (0.1800)= -0.0029
y (0.2000)= -0.0104
y (0.2200)= -0.0171
y (0.2400)= -0.0229
y (0.2600)= -0.0275
y (0.2800)= -0.0309
y (0.3000)= -0.0329
y (0.3200)= -0.0335
y (0.3400)= -0.0329
y (0.3600)= -0.0310
y (0.3800)= -0.0280
y (0.4000)= -0.0241
y (0.4200)= -0.0195
y (0.4400)= -0.0143
y (0.4600)= -0.0089
y (0.4800)= -0.0034
y (0.5000)= 0.0020
y (0.5200)= 0.0070
y (0.5400)= 0.0116
y (0.5600)= 0.0154
y (0.5800)= 0.0185
y (0.6000)= 0.0207
y (0.6200)= 0.0220
y (0.6400)= 0.0225
y (0.6600)= 0.0220
y (0.6800)= 0.0207
y (0.7000)= 0.0187
y (0.7200)= 0.0161
y (0.7400)= 0.0130
y (0.7600)= 0.0096
y (0.7800)= 0.0059
y (0.8000)= 0.0022
y (0.8200)= -0.0014
y (0.8400)= -0.0048
y (0.8600)= -0.0078
y (0.8800)= -0.0104
y (0.9000)= -0.0124
y (0.9200)= -0.0139
y (0.9400)= -0.0148
y (0.9600)= -0.0151
y (0.9800)= -0.0147
y (1.0000)= -0.0139
y (1.0200)= -0.0125
y (1.0400)= -0.0108
y (1.0600)= -0.0087
y (1.0800)= -0.0064
y (1.1000)= -0.0039
y (1.1200)= -0.0015
y (1.1400)= 0.0010
y (1.1600)= 0.0032
y (1.1800)= 0.0052
y (1.2000)= 0.0070
y (1.2200)= 0.0083
y (1.2400)= 0.0093
y (1.2600)= 0.0099
y (1.2800)= 0.0101



y (1.3000)= 0.0099
y (1.3200)= 0.0093
y (1.3400)= 0.0084
y (1.3600)= 0.0072
y (1.3800)= 0.0058
y (1.4000)= 0.0043
y (1.4200)= 0.0026
y (1.4400)= 0.0010
y (1.4600)= -0.0007
y (1.4800)= -0.0022
y (1.5000)= -0.0035
y (1.5200)= -0.0047
y (1.5400)= -0.0056
y (1.5600)= -0.0063
y (1.5800)= -0.0067
y (1.6000)= -0.0068
y (1.6200)= -0.0066
y (1.6400)= -0.0062
y (1.6600)= -0.0056
y (1.6800)= -0.0048
y (1.7000)= -0.0039
y (1.7200)= -0.0028
y (1.7400)= -0.0017
y (1.7600)= -0.0006
y (1.7800)= 0.0005
y (1.8000)= 0.0015
y (1.8200)= 0.0024
y (1.8400)= 0.0031
y (1.8600)= 0.0038
y (1.8800)= 0.0042
y (1.9000)= 0.0045
y (1.9200)= 0.0045
y (1.9400)= 0.0044
y (1.9600)= 0.0042
y (1.9800)= 0.0038
y (2.0000)= 0.0032
y (2.0200)= 0.0026
y (2.0400)= 0.0019
y (2.0600)= 0.0012
y (2.0800)= 0.0004
y (2.1000)= -0.0003
y (2.1200)= -0.0010
y (2.1400)= -0.0016
y (2.1600)= -0.0021
y (2.1800)= -0.0025
y (2.2000)= -0.0028
y (2.2200)= -0.0030
y (2.2400)= -0.0030
y (2.2600)= -0.0030
y (2.2800)= -0.0028
y (2.3000)= -0.0025
y (2.3200)= -0.0022
y (2.3400)= -0.0017
y (2.3600)= -0.0013
y (2.3800)= -0.0008
y (2.4000)= -0.0003
y (2.4200)= 0.0002
y (2.4400)= 0.0007
y (2.4600)= 0.0011
y (2.4800)= 0.0014
y (2.5000)= 0.0017
y (2.5200)= 0.0019
y (2.5400)= 0.0020
y (2.5600)= 0.0020
y (2.5800)= 0.0020
y (2.6000)= 0.0019
y (2.6200)= 0.0017
y (2.6400)= 0.0014
y (2.6600)= 0.0012
y (2.6800)= 0.0008
y (2.7000)= 0.0005
y (2.7200)= 0.0002
y (2.7400)= -0.0002
y (2.7600)= -0.0005
y (2.7800)= -0.0007
y (2.8000)= -0.0010
y (2.8200)= -0.0011
y (2.8400)= -0.0013
y (2.8600)= -0.0013
y (2.8800)= -0.0014
y (2.9000)= -0.0013
y (2.9200)= -0.0013
y (2.9400)= -0.0011
y (2.9600)= -0.0010
y (2.9800)= -0.0008
y (3.0000)= -0.0006
y (3.0200)= -0.0003
y (3.0400)= -0.0001
y (3.0600)= 0.0001
y (3.0800)= 0.0003
y (3.1000)= 0.0005
y (3.1200)= 0.0006
y (3.1400)= 0.0008
y (3.1600)= 0.0009
y (3.1800)= 0.0009
y (3.2000)= 0.0009
y (3.2200)= 0.0009
y (3.2400)= 0.0008
y (3.2600)= 0.0008
y (3.2800)= 0.0006
y (3.3000)= 0.0005
y (3.3200)= 0.0004
y (3.3400)= 0.0002
y (3.3600)= 0.0001
y (3.3800)= -0.0001
y (3.4000)= -0.0002
y (3.4200)= -0.0003
y (3.4400)= -0.0004
y (3.4600)= -0.0005
y (3.4800)= -0.0006
y (3.5000)= -0.0006
y (3.5200)= -0.0006
y (3.5400)= -0.0006
y (3.5600)= -0.0006
y (3.5800)= -0.0005
y (3.6000)= -0.0004
y (3.6200)= -0.0003
y (3.6400)= -0.0002
y (3.6600)= -0.0001
y (3.6800)= -0.0000
y (3.7000)= 0.0000
y (3.7200)= 0.0001
y (3.7400)= 0.0002
y (3.7600)= 0.0003
y (3.7800)= 0.0003
y (3.8000)= 0.0004
y (3.8200)= 0.0004
y (3.8400)= 0.0004
y (3.8600)= 0.0004
y (3.8800)= 0.0004



























y (3.9000)= 0.0003
y (3.9200)= 0.0003
y (3.9400)= 0.0002
y (3.9600)= 0.0002
y (3.9800)= 0.0001
y (4.0000)= 0.0000
y (4.0200)= -0.0000
y (4.0400)= -0.0001
y (4.0600)= -0.0001
y (4.0800)= -0.0002
y (4.1000)= -0.0002
y (4.1200)= -0.0003
y (4.1400)= -0.0003
y (4.1600)= -0.0003
y (4.1800)= -0.0003
y (4.2000)= -0.0003
y (4.2200)= -0.0002
y (4.2400)= -0.0002
y (4.2600)= -0.0002
y (4.2800)= -0.0001
y (4.3000)= -0.0001
y (4.3200)= -0.0000
y (4.3400)= 0.0000
y (4.3600)= 0.0001
y (4.3800)= 0.0001
y (4.4000)= 0.0001
y (4.4200)= 0.0002
y (4.4400)= 0.0002
y (4.4600)= 0.0002
y (4.4800)= 0.0002
y (4.5000)= 0.0002
y (4.5200)= 0.0002
y (4.5400)= 0.0002
y (4.5600)= 0.0001
y (4.5800)= 0.0001
y (4.6000)= 0.0001
y (4.6200)= 0.0000
y (4.6400)= 0.0000
y (4.6600)= -0.0000
y (4.6800)= -0.0000
y (4.7000)= -0.0001
y (4.7200)= -0.0001
y (4.7400)= -0.0001
y (4.7600)= -0.0001
y (4.7800)= -0.0001
y (4.8000)= -0.0001
y (4.8200)= -0.0001
y (4.8400)= -0.0001
y (4.8600)= -0.0001
y (4.8800)= -0.0001
y (4.9000)= -0.0001
y (4.9200)= -0.0000
y (4.9400)= -0.0000
y (4.9600)= -0.0000
y (4.9800)= 0.0000
y (5.0000)= 0.0000
y (5.0200)= 0.0000
y (5.0400)= 0.0001
y (5.0600)= 0.0001
y (5.0800)= 0.0001
y (5.1000)= 0.0001
y (5.1200)= 0.0001
y (5.1400)= 0.0001
y (5.1600)= 0.0001
y (5.1800)= 0.0001
y (5.2000)= 0.0001
y (5.2200)= 0.0000
y (5.2400)= 0.0000
y (5.2600)= 0.0000
y (5.2800)= 0.0000
y (5.3000)= -0.0000
y (5.3200)= -0.0000
y (5.3400)= -0.0000
y (5.3600)= -0.0000
y (5.3800)= -0.0000
y (5.4000)= -0.0001
y (5.4200)= -0.0001
y (5.4400)= -0.0001
y (5.4600)= -0.0001
y (5.4800)= -0.0001
y (5.5000)= -0.0000
y (5.5200)= -0.0000
y (5.5400)= -0.0000
y (5.5600)= -0.0000
y (5.5800)= -0.0000
y (5.6000)= -0.0000
y (5.6200)= 0.0000
y (5.6400)= 0.0000
y (5.6600)= 0.0000
y (5.6800)= 0.0000
y (5.7000)= 0.0000
y (5.7200)= 0.0000
y (5.7400)= 0.0000
y (5.7600)= 0.0000
y (5.7800)= 0.0000
y (5.8000)= 0.0000
y (5.8200)= 0.0000
y (5.8400)= 0.0000
y (5.8600)= 0.0000
y (5.8800)= 0.0000
y (5.9000)= 0.0000
y (5.9200)= 0.0000
y (5.9400)= -0.0000
y (5.9600)= -0.0000
y (5.9800)= -0.0000
y (6.0000)= -0.0000
y (6.0200)= -0.0000
y (6.0400)= -0.0000
y (6.0600)= -0.0000
y (6.0800)= -0.0000
y (6.1000)= -0.0000
y (6.1200)= -0.0000
y (6.1400)= -0.0000
y (6.1600)= -0.0000
y (6.1800)= -0.0000
y (6.2000)= -0.0000
y (6.2200)= -0.0000
y (6.2400)= -0.0000
y (6.2600)= 0.0000
y (6.2800)= 0.0000
y (6.3000)= 0.0000
y (6.3200)= 0.0000
y (6.3400)= 0.0000
y (6.3600)= 0.0000
y (6.3800)= 0.0000
y (6.4000)= 0.0000
y (6.4200)= 0.0000
y (6.4400)= 0.0000
y (6.4600)= 0.0000
y (6.4800)= 0.0000
y (6.5000)= 0.0000
y (6.5200)= 0.0000
y (6.5400)= 0.0000
y (6.5600)= 0.0000
y (6.5800)= -0.0000
y (6.6000)= -0.0000
y (6.6200)= -0.0000
y (6.6400)= -0.0000
y (6.6600)= -0.0000
y (6.6800)= -0.0000
y (6.7000)= -0.0000
y (6.7200)= -0.0000
y (6.7400)= -0.0000
y (6.7600)= -0.0000
y (6.7800)= -0.0000
y (6.8000)= -0.0000
y (6.8200)= -0.0000
y (6.8400)= -0.0000
y (6.8600)= -0.0000
y (6.8800)= -0.0000
y (6.9000)= 0.0000
y (6.9200)= 0.0000
y (6.9400)= 0.0000
y (6.9600)= 0.0000
y (6.9800)= 0.0000
y (7.0000)= 0.0000
y (7.0200)= 0.0000
y (7.0400)= 0.0000
y (7.0600)= 0.0000
y (7.0800)= 0.0000
y (7.1000)= 0.0000
y (7.1200)= 0.0000
y (7.1400)= 0.0000
y (7.1600)= 0.0000
y (7.1800)= 0.0000
y (7.2000)= 0.0000
y (7.2200)= -0.0000
y (7.2400)= -0.0000
y (7.2600)= -0.0000
y (7.2800)= -0.0000
y (7.3000)= -0.0000
y (7.3200)= -0.0000
y (7.3400)= -0.0000
y (7.3600)= -0.0000
y (7.3800)= -0.0000
y (7.4000)= -0.0000
y (7.4200)= -0.0000
y (7.4400)= -0.0000
y (7.4600)= -0.0000
y (7.4800)= -0.0000
y (7.5000)= -0.0000
y (7.5200)= -0.0000
y (7.5400)= 0.0000
y (7.5600)= 0.0000
y (7.5800)= 0.0000
y (7.6000)= 0.0000
y (7.6200)= 0.0000
y (7.6400)= 0.0000
y (7.6600)= 0.0000
y (7.6800)= 0.0000
y (7.7000)= 0.0000
y (7.7200)= 0.0000
y (7.7400)= 0.0000
y (7.7600)= 0.0000
y (7.7800)= 0.0000












































y (7.8000)= 0.0000
y (7.8200)= 0.0000
y (7.8400)= 0.0000
y (7.8600)= -0.0000
y (7.8800)= -0.0000
y (7.9000)= -0.0000
y (7.9200)= -0.0000
y (7.9400)= -0.0000
y (7.9600)= -0.0000
y (7.9800)= -0.0000
y (8.0000)= -0.0000
y (8.0200)= -0.0000
y (8.0400)= -0.0000
y (8.0600)= -0.0000
y (8.0800)= -0.0000
y (8.1000)= -0.0000
y (8.1200)= -0.0000
y (8.1400)= -0.0000
y (8.1600)= 0.0000
y (8.1800)= 0.0000
y (8.2000)= 0.0000
y (8.2200)= 0.0000
y (8.2400)= 0.0000
y (8.2600)= 0.0000
y (8.2800)= 0.0000
y (8.3000)= 0.0000
y (8.3200)= 0.0000
y (8.3400)= 0.0000
y (8.3600)= 0.0000
y (8.3800)= 0.0000
y (8.4000)= 0.0000
y (8.4200)= 0.0000
y (8.4400)= 0.0000
y (8.4600)= 0.0000
y (8.4800)= -0.0000
y (8.5000)= -0.0000
y (8.5200)= -0.0000
y (8.5400)= -0.0000
y (8.5600)= -0.0000
y (8.5800)= -0.0000
y (8.6000)= -0.0000
y (8.6200)= -0.0000
y (8.6400)= -0.0000
y (8.6600)= -0.0000
y (8.6800)= -0.0000
y (8.7000)= -0.0000
y (8.7200)= -0.0000
y (8.7400)= -0.0000
y (8.7600)= -0.0000
y (8.7800)= -0.0000
y (8.8000)= 0.0000
y (8.8200)= 0.0000
y (8.8400)= 0.0000
y (8.8600)= 0.0000
y (8.8800)= 0.0000
y (8.9000)= 0.0000
y (8.9200)= 0.0000
y (8.9400)= 0.0000
y (8.9600)= 0.0000
y (8.9800)= 0.0000
y (9.0000)= 0.0000
y (9.0200)= 0.0000
y (9.0400)= 0.0000
y (9.0600)= 0.0000
y (9.0800)= 0.0000
y (9.1000)= -0.0000
y (9.1200)= -0.0000
y (9.1400)= -0.0000
y (9.1600)= -0.0000
y (9.1800)= -0.0000
y (9.2000)= -0.0000
y (9.2200)= -0.0000
y (9.2400)= -0.0000
y (9.2600)= -0.0000
y (9.2800)= -0.0000
y (9.3000)= -0.0000
y (9.3200)= -0.0000
y (9.3400)= -0.0000
y (9.3600)= -0.0000
y (9.3800)= -0.0000
y (9.4000)= -0.0000
y (9.4200)= 0.0000
y (9.4400)= 0.0000
y (9.4600)= 0.0000
y (9.4800)= 0.0000
y (9.5000)= 0.0000
y (9.5200)= 0.0000
y (9.5400)= 0.0000
y (9.5600)= 0.0000
y (9.5800)= 0.0000
y (9.6000)= 0.0000
y (9.6200)= 0.0000
y (9.6400)= 0.0000
y (9.6600)= 0.0000
y (9.6800)= 0.0000
y (9.7000)= 0.0000
y (9.7200)= -0.0000
y (9.7400)= -0.0000
y (9.7600)= -0.0000
y (9.7800)= -0.0000
y (9.8000)= -0.0000
y (9.8200)= -0.0000
y (9.8400)= -0.0000
y (9.8600)= -0.0000
y (9.8800)= -0.0000
y (9.9000)= -0.0000
y (9.9200)= -0.0000
y (9.9400)= -0.0000
y (9.9600)= -0.0000
y (9.9800)= -0.0000
y (10.0000)= -0.0000
d) Gráfico da solução


Questão 8.24
Considere a vibração forçada no sistema massa-mola mostrado na figura. A posição x da
massa em função do tempo é dada pela solução da equação:

Onde é a massa, ⁄ é a constante da mola,

é a
amplitude da força harmônica aplicada e ⁄ é a frequência dessa força.
As condições iniciais são () e

. Resolva a EDO em e trace
e

em função de t (dois gráficos separados na mesma página).
a) A função Sis2EDOsRKclas escrita no Problema 8.16. Use um passo se
integração de 0,01s.
b) Use uma das funções residentes do MATLAB.
RESOLUÇÃO
a) Arquivo da função
Nome do arquivo: exercicio23.m






b) Arquivo de Script da Solução:









c) Resposta do Matlab.
Na outra página.










functiondxdt = questao24(t,x)
m=2; Fo=50; w=3; k=800;
dxdt =zeros(2,1);
dxdt(1)=x(2);
dxdt(2)=-k*x(1)/m+Fo*cos(w*t)/m;


% Autores:
% Aluno 1:Camila Vasconcelos Siqueira
% Questão 8.24
clc
clear all
close all

disp(' Posição da massa em função do
tempo');
[t,x] = ode45('questao24', 0:0.01:10, [0.1
0.1]);

plot(t,x)
xlabel('t (s)');
ylabel('m (m)')
aux=[t';x(:,1)'];


fprintf('x(%2.4f)=%2.4f\n',aux);




























x(0.0000)=0.1000
x(0.0100)=0.1002
x(0.0200)=0.0990
x(0.0300)=0.0963
x(0.0400)=0.0922
x(0.0500)=0.0869
x(0.0600)=0.0806
x(0.0700)=0.0736
x(0.0800)=0.0660
x(0.0900)=0.0583
x(0.1000)=0.0506
x(0.1100)=0.0433
x(0.1200)=0.0366
x(0.1300)=0.0308
x(0.1400)=0.0261
x(0.1500)=0.0226
x(0.1600)=0.0204
x(0.1700)=0.0197
x(0.1800)=0.0203
x(0.1900)=0.0223
x(0.2000)=0.0254
x(0.2100)=0.0296
x(0.2200)=0.0347
x(0.2300)=0.0403
x(0.2400)=0.0463
x(0.2500)=0.0522
x(0.2600)=0.0580
x(0.2700)=0.0631
x(0.2800)=0.0675
x(0.2900)=0.0709
x(0.3000)=0.0730
x(0.3100)=0.0738
x(0.3200)=0.0731
x(0.3300)=0.0709
x(0.3400)=0.0673
x(0.3500)=0.0623
x(0.3600)=0.0560
x(0.3700)=0.0487
x(0.3800)=0.0406
x(0.3900)=0.0318
x(0.4000)=0.0228
x(0.4100)=0.0138
x(0.4200)=0.0051
x(0.4300)=-0.0031
x(0.4400)=-0.0105
x(0.4500)=-0.0168
x(0.4600)=-0.0219
x(0.4700)=-0.0257
x(0.4800)=-0.0280
x(0.4900)=-0.0289
x(0.5000)=-0.0284
x(0.5100)=-0.0266
x(0.5200)=-0.0236
x(0.5300)=-0.0197
x(0.5400)=-0.0150
x(0.5500)=-0.0098
x(0.5600)=-0.0045
x(0.5700)=0.0008
x(0.5800)=0.0057
x(0.5900)=0.0099
x(0.6000)=0.0133
x(0.6100)=0.0155
x(0.6200)=0.0165
x(0.6300)=0.0161
x(0.6400)=0.0143
x(0.6500)=0.0111


x(0.6500)=0.0111
x(0.6600)=0.0065
x(0.6700)=0.0007
x(0.6800)=-0.0062
x(0.6900)=-0.0140
x(0.7000)=-0.0225
x(0.7100)=-0.0313
x(0.7200)=-0.0401
x(0.7300)=-0.0488
x(0.7400)=-0.0570
x(0.7500)=-0.0644
x(0.7600)=-0.0708
x(0.7700)=-0.0759
x(0.7800)=-0.0798
x(0.7900)=-0.0822
x(0.8000)=-0.0831
x(0.8100)=-0.0825
x(0.8200)=-0.0806
x(0.8300)=-0.0773
x(0.8400)=-0.0730
x(0.8500)=-0.0677
x(0.8600)=-0.0619
x(0.8700)=-0.0556
x(0.8800)=-0.0493
x(0.8900)=-0.0433
x(0.9000)=-0.0377
x(0.9100)=-0.0328
x(0.9200)=-0.0290
x(0.9300)=-0.0263
x(0.9400)=-0.0249
x(0.9500)=-0.0249
x(0.9600)=-0.0262
x(0.9700)=-0.0289
x(0.9800)=-0.0329
x(0.9900)=-0.0381
x(1.0000)=-0.0441
x(1.0100)=-0.0509
x(1.0200)=-0.0581
x(1.0300)=-0.0655
x(1.0400)=-0.0727
x(1.0500)=-0.0796
x(1.0600)=-0.0858
x(1.0700)=-0.0910
x(1.0800)=-0.0951
x(1.0900)=-0.0979
x(1.1000)=-0.0993
x(1.1100)=-0.0991
x(1.1200)=-0.0974
x(1.1300)=-0.0943
x(1.1400)=-0.0899
x(1.1500)=-0.0843
x(1.1600)=-0.0776
x(1.1700)=-0.0703
x(1.1800)=-0.0624
x(1.1900)=-0.0544
x(1.2000)=-0.0464
x(1.2100)=-0.0389
x(1.2200)=-0.0320
x(1.2300)=-0.0260
x(1.2400)=-0.0210
x(1.2500)=-0.0174
x(1.2600)=-0.0150
x(1.2700)=-0.0141
x(1.2800)=-0.0146
x(1.2900)=-0.0164

x(1.3100)=-0.0234
x(1.3200)=-0.0283
x(1.3300)=-0.0337
x(1.3400)=-0.0395
x(1.3500)=-0.0452
x(1.3600)=-0.0507
x(1.3700)=-0.0556
x(1.3800)=-0.0598
x(1.3900)=-0.0629
x(1.4000)=-0.0648
x(1.4100)=-0.0653
x(1.4200)=-0.0643
x(1.4300)=-0.0619
x(1.4400)=-0.0581
x(1.4500)=-0.0529
x(1.4600)=-0.0464
x(1.4700)=-0.0389
x(1.4800)=-0.0306
x(1.4900)=-0.0218
x(1.5000)=-0.0127
x(1.5100)=-0.0036
x(1.5200)=0.0052
x(1.5300)=0.0134
x(1.5400)=0.0208
x(1.5500)=0.0270
x(1.5600)=0.0321
x(1.5700)=0.0358
x(1.5800)=0.0381
x(1.5900)=0.0389
x(1.6000)=0.0383
x(1.6100)=0.0364
x(1.6200)=0.0334
x(1.6300)=0.0294
x(1.6400)=0.0246
x(1.6500)=0.0194
x(1.6600)=0.0140
x(1.6700)=0.0087
x(1.6800)=0.0038
x(1.6900)=-0.0005
x(1.7000)=-0.0039
x(1.7100)=-0.0062
x(1.7200)=-0.0072
x(1.7300)=-0.0068
x(1.7400)=-0.0051
x(1.7500)=-0.0019
x(1.7600)=0.0026
x(1.7700)=0.0084
x(1.7800)=0.0152
x(1.7900)=0.0229
x(1.8000)=0.0312
x(1.8100)=0.0398
x(1.8200)=0.0485
x(1.8300)=0.0570
x(1.8400)=0.0649
x(1.8500)=0.0720
x(1.8600)=0.0781
x(1.8700)=0.0830
x(1.8800)=0.0866
x(1.8900)=0.0886
x(1.9000)=0.0892
x(1.9100)=0.0883
x(1.9200)=0.0860
x(1.9300)=0.0825
x(1.9400)=0.0778
x(1.9500)=0.0723



























x(1.9600)=0.0661
x(1.9700)=0.0596
x(1.9800)=0.0530
x(1.9900)=0.0467
x(2.0000)=0.0409
x(2.0100)=0.0359
x(2.0200)=0.0318
x(2.0300)=0.0289
x(2.0400)=0.0272
x(2.0500)=0.0270
x(2.0600)=0.0282
x(2.0700)=0.0307
x(2.0800)=0.0344
x(2.0900)=0.0393
x(2.1000)=0.0451
x(2.1100)=0.0516
x(2.1200)=0.0586
x(2.1300)=0.0656
x(2.1400)=0.0726
x(2.1500)=0.0791
x(2.1600)=0.0849
x(2.1700)=0.0898
x(2.1800)=0.0935
x(2.1900)=0.0959
x(2.2000)=0.0969
x(2.2100)=0.0964
x(2.2200)=0.0944
x(2.2300)=0.0909
x(2.2400)=0.0861
x(2.2500)=0.0801
x(2.2600)=0.0731
x(2.2700)=0.0655
x(2.2800)=0.0573
x(2.2900)=0.0490
x(2.3000)=0.0408
x(2.3100)=0.0331
x(2.3200)=0.0260
x(2.3300)=0.0198
x(2.3400)=0.0147
x(2.3500)=0.0108
x(2.3600)=0.0084
x(2.3700)=0.0073
x(2.3800)=0.0077
x(2.3900)=0.0093
x(2.4000)=0.0122
x(2.4100)=0.0161
x(2.4200)=0.0208
x(2.4300)=0.0261
x(2.4400)=0.0316
x(2.4500)=0.0372
x(2.4600)=0.0425
x(2.4700)=0.0472
x(2.4800)=0.0512
x(2.4900)=0.0541
x(2.5000)=0.0557
x(2.5100)=0.0560
x(2.5200)=0.0549
x(2.5300)=0.0523
x(2.5400)=0.0483
x(2.5500)=0.0429
x(2.5600)=0.0363
x(2.5700)=0.0287
x(2.5800)=0.0203
x(2.5900)=0.0114
x(2.6000)=0.0022
x(2.6100)=-0.0069
x(2.6200)=-0.0157
x(2.6300)=-0.0238
x(2.6400)=-0.0312
x(2.6500)=-0.0374
x(2.6600)=-0.0424
x(2.6700)=-0.0460
x(2.6800)=-0.0481
x(2.6900)=-0.0488
x(2.7000)=-0.0481
x(2.7100)=-0.0461
x(2.7200)=-0.0429
x(2.7300)=-0.0387
x(2.7400)=-0.0339
x(2.7500)=-0.0286
x(2.7600)=-0.0231
x(2.7700)=-0.0177
x(2.7800)=-0.0127
x(2.7900)=-0.0083
x(2.8000)=-0.0049
x(2.8100)=-0.0025
x(2.8200)=-0.0015
x(2.8300)=-0.0017
x(2.8400)=-0.0034
x(2.8500)=-0.0065
x(2.8600)=-0.0109
x(2.8700)=-0.0166
x(2.8800)=-0.0233
x(2.8900)=-0.0308
x(2.9000)=-0.0389
x(2.9100)=-0.0473
x(2.9200)=-0.0558
x(2.9300)=-0.0640
x(2.9400)=-0.0717
x(2.9500)=-0.0785
x(2.9600)=-0.0843
x(2.9700)=-0.0889
x(2.9800)=-0.0921
x(2.9900)=-0.0938
x(3.0000)=-0.0940
x(3.0100)=-0.0928
x(3.0200)=-0.0901
x(3.0300)=-0.0862
x(3.0400)=-0.0812
x(3.0500)=-0.0753
x(3.0600)=-0.0689
x(3.0700)=-0.0621
x(3.0800)=-0.0553
x(3.0900)=-0.0487
x(3.1000)=-0.0426
x(3.1100)=-0.0373
x(3.1200)=-0.0330
x(3.1300)=-0.0299
x(3.1400)=-0.0281
x(3.1500)=-0.0276
x(3.1600)=-0.0285
x(3.1700)=-0.0308
x(3.1800)=-0.0344
x(3.1900)=-0.0390
x(3.2000)=-0.0446
x(3.2100)=-0.0508
x(3.2200)=-0.0574
x(3.2300)=-0.0642
x(3.2400)=-0.0708
x(3.2500)=-0.0770
x(3.2600)=-0.0825
x(3.2700)=-0.0870
x(3.2800)=-0.0904
x(3.2900)=-0.0924
x(3.3000)=-0.0930
x(3.3100)=-0.0921
x(3.3200)=-0.0897
x(3.3300)=-0.0859
x(3.3400)=-0.0808
x(3.3500)=-0.0745
x(3.3600)=-0.0672
x(3.3700)=-0.0593
x(3.3800)=-0.0509
x(3.3900)=-0.0423
x(3.4000)=-0.0339
x(3.4100)=-0.0260
x(3.4200)=-0.0187
x(3.4300)=-0.0124
x(3.4400)=-0.0071
x(3.4500)=-0.0032
x(3.4600)=-0.0006
x(3.4700)=0.0006
x(3.4800)=0.0003
x(3.4900)=-0.0012
x(3.5000)=-0.0040
x(3.5100)=-0.0078
x(3.5200)=-0.0124
x(3.5300)=-0.0175
x(3.5400)=-0.0230
x(3.5500)=-0.0284
x(3.5600)=-0.0336
x(3.5700)=-0.0382
x(3.5800)=-0.0419
x(3.5900)=-0.0446
x(3.6000)=-0.0461
x(3.6100)=-0.0463
x(3.6200)=-0.0450
x(3.6300)=-0.0422
x(3.6400)=-0.0381
x(3.6500)=-0.0326
x(3.6600)=-0.0259
x(3.6700)=-0.0182
x(3.6800)=-0.0098
x(3.6900)=-0.0008
x(3.7000)=0.0083
x(3.7100)=0.0174
x(3.7200)=0.0261
x(3.7300)=0.0342
x(3.7400)=0.0414
x(3.7500)=0.0475
x(3.7600)=0.0524
x(3.7700)=0.0558
x(3.7800)=0.0578
x(3.7900)=0.0584
x(3.8000)=0.0575
x(3.8100)=0.0553
x(3.8200)=0.0519
x(3.8300)=0.0476
x(3.8400)=0.0426
x(3.8500)=0.0371
x(3.8600)=0.0315
x(3.8700)=0.0260
x(3.8800)=0.0208
x(3.8900)=0.0164
x(3.9000)=0.0128












































x(3.9100)=0.0104
x(3.9200)=0.0092
x(3.9300)=0.0094
x(3.9400)=0.0109
x(3.9500)=0.0139
x(3.9600)=0.0182
x(3.9700)=0.0237
x(3.9800)=0.0302
x(3.9900)=0.0375
x(4.0000)=0.0454
x(4.0100)=0.0536
x(4.0200)=0.0618
x(4.0300)=0.0697
x(4.0400)=0.0771
x(4.0500)=0.0836
x(4.0600)=0.0891
x(4.0700)=0.0933
x(4.0800)=0.0961
x(4.0900)=0.0975
x(4.1000)=0.0973
x(4.1100)=0.0957
x(4.1200)=0.0927
x(4.1300)=0.0884
x(4.1400)=0.0831
x(4.1500)=0.0769
x(4.1600)=0.0701
x(4.1700)=0.0630
x(4.1800)=0.0559
x(4.1900)=0.0490
x(4.2000)=0.0427
x(4.2100)=0.0372
x(4.2200)=0.0326
x(4.2300)=0.0293
x(4.2400)=0.0272
x(4.2500)=0.0266
x(4.2600)=0.0273
x(4.2700)=0.0294
x(4.2800)=0.0327
x(4.2900)=0.0371
x(4.3000)=0.0424
x(4.3100)=0.0484
x(4.3200)=0.0548
x(4.3300)=0.0612
x(4.3400)=0.0676
x(4.3500)=0.0734
x(4.3600)=0.0786
x(4.3700)=0.0828
x(4.3800)=0.0858
x(4.3900)=0.0875
x(4.4000)=0.0877
x(4.4100)=0.0865
x(4.4200)=0.0838
x(4.4300)=0.0796
x(4.4400)=0.0741
x(4.4500)=0.0676
x(4.4600)=0.0600
x(4.4700)=0.0518
x(4.4800)=0.0432
x(4.4900)=0.0345
x(4.5000)=0.0259
x(4.5100)=0.0178
x(4.5200)=0.0104
x(4.5300)=0.0039
x(4.5400)=-0.0014
x(4.5500)=-0.0054
x(4.5600)=-0.0081
x(4.5700)=-0.0093
x(4.5800)=-0.0091
x(4.5900)=-0.0076
x(4.6000)=-0.0049
x(4.6100)=-0.0012
x(4.6200)=0.0033
x(4.6300)=0.0084
x(4.6400)=0.0137
x(4.6500)=0.0191
x(4.6600)=0.0241
x(4.6700)=0.0286
x(4.6800)=0.0322
x(4.6900)=0.0348
x(4.7000)=0.0362
x(4.7100)=0.0362
x(4.7200)=0.0349
x(4.7300)=0.0320
x(4.7400)=0.0277
x(4.7500)=0.0222
x(4.7600)=0.0154
x(4.7700)=0.0077
x(4.7800)=-0.0007
x(4.7900)=-0.0096
x(4.8000)=-0.0187
x(4.8100)=-0.0277
x(4.8200)=-0.0363
x(4.8300)=-0.0443
x(4.8400)=-0.0514
x(4.8500)=-0.0573
x(4.8600)=-0.0620
x(4.8700)=-0.0652
x(4.8800)=-0.0670
x(4.8900)=-0.0673
x(4.9000)=-0.0662
x(4.9100)=-0.0638
x(4.9200)=-0.0602
x(4.9300)=-0.0557
x(4.9400)=-0.0505
x(4.9500)=-0.0448
x(4.9600)=-0.0390
x(4.9700)=-0.0333
x(4.9800)=-0.0281
x(4.9900)=-0.0234
x(5.0000)=-0.0197
x(5.0100)=-0.0172
x(5.0200)=-0.0158
x(5.0300)=-0.0159
x(5.0400)=-0.0173
x(5.0500)=-0.0201
x(5.0600)=-0.0242
x(5.0700)=-0.0295
x(5.0800)=-0.0358
x(5.0900)=-0.0429
x(5.1000)=-0.0506
x(5.1100)=-0.0585
x(5.1200)=-0.0665
x(5.1300)=-0.0741
x(5.1400)=-0.0811
x(5.1500)=-0.0872
x(5.1600)=-0.0924
x(5.1700)=-0.0962
x(5.1800)=-0.0987
x(5.1900)=-0.0997
x(5.2000)=-0.0991
x(5.2100)=-0.0971
x(5.2200)=-0.0937
x(5.2300)=-0.0891
x(5.2400)=-0.0834
x(5.2500)=-0.0769
x(5.2600)=-0.0697
x(5.2700)=-0.0623
x(5.2800)=-0.0549
x(5.2900)=-0.0478
x(5.3000)=-0.0412
x(5.3100)=-0.0354
x(5.3200)=-0.0307
x(5.3300)=-0.0271
x(5.3400)=-0.0249
x(5.3500)=-0.0240
x(5.3600)=-0.0245
x(5.3700)=-0.0264
x(5.3800)=-0.0295
x(5.3900)=-0.0337
x(5.4000)=-0.0387
x(5.4100)=-0.0445
x(5.4200)=-0.0506
x(5.4300)=-0.0568
x(5.4400)=-0.0628
x(5.4500)=-0.0684
x(5.4600)=-0.0732
x(5.4700)=-0.0771
x(5.4800)=-0.0798
x(5.4900)=-0.0812
x(5.5000)=-0.0811
x(5.5100)=-0.0796
x(5.5200)=-0.0765
x(5.5300)=-0.0721
x(5.5400)=-0.0664
x(5.5500)=-0.0595
x(5.5600)=-0.0517
x(5.5700)=-0.0433
x(5.5800)=-0.0345
x(5.5900)=-0.0256
x(5.6000)=-0.0169
x(5.6100)=-0.0087
x(5.6200)=-0.0012
x(5.6300)=0.0054
x(5.6400)=0.0107
x(5.6500)=0.0148
x(5.6600)=0.0175
x(5.6700)=0.0187
x(5.6800)=0.0186
x(5.6900)=0.0171
x(5.7000)=0.0144
x(5.7100)=0.0107
x(5.7200)=0.0062
x(5.7300)=0.0011
x(5.7400)=-0.0042
x(5.7500)=-0.0095
x(5.7600)=-0.0144
x(5.7700)=-0.0188
x(5.7800)=-0.0224
x(5.7900)=-0.0249
x(5.8000)=-0.0263
x(5.8100)=-0.0262
x(5.8200)=-0.0247
x(5.8300)=-0.0218
x(5.8400)=-0.0176
x(5.8500)=-0.0120












































x(5.8600)=-0.0052
x(5.8700)=0.0024
x(5.8800)=0.0108
x(5.8900)=0.0197
x(5.9000)=0.0287
x(5.9100)=0.0376
x(5.9200)=0.0460
x(5.9300)=0.0538
x(5.9400)=0.0607
x(5.9500)=0.0664
x(5.9600)=0.0708
x(5.9700)=0.0739
x(5.9800)=0.0754
x(5.9900)=0.0754
x(6.0000)=0.0741
x(6.0100)=0.0714
x(6.0200)=0.0676
x(6.0300)=0.0628
x(6.0400)=0.0574
x(6.0500)=0.0515
x(6.0600)=0.0455
x(6.0700)=0.0396
x(6.0800)=0.0341
x(6.0900)=0.0293
x(6.1000)=0.0254
x(6.1100)=0.0227
x(6.1200)=0.0212
x(6.1300)=0.0210
x(6.1400)=0.0223
x(6.1500)=0.0249
x(6.1600)=0.0288
x(6.1700)=0.0340
x(6.1800)=0.0400
x(6.1900)=0.0469
x(6.2000)=0.0543
x(6.2100)=0.0620
x(6.2200)=0.0696
x(6.2300)=0.0769
x(6.2400)=0.0835
x(6.2500)=0.0894
x(6.2600)=0.0941
x(6.2700)=0.0976
x(6.2800)=0.0996
x(6.2900)=0.1002
x(6.3000)=0.0993
x(6.3100)=0.0969
x(6.3200)=0.0931
x(6.3300)=0.0881
x(6.3400)=0.0821
x(6.3500)=0.0752
x(6.3600)=0.0678
x(6.3700)=0.0601
x(6.3800)=0.0524
x(6.3900)=0.0450
x(6.4000)=0.0382
x(6.4100)=0.0322
x(6.4200)=0.0272
x(6.4300)=0.0234
x(6.4400)=0.0210
x(6.4500)=0.0199
x(6.4600)=0.0202
x(6.4700)=0.0219
x(6.4800)=0.0248
x(6.4900)=0.0288
x(6.5000)=0.0337
x(6.5100)=0.0392
x(6.5200)=0.0451
x(6.5300)=0.0510
x(6.5400)=0.0568
x(6.5500)=0.0621
x(6.5600)=0.0667
x(6.5700)=0.0703
x(6.5800)=0.0727
x(6.5900)=0.0737
x(6.6000)=0.0734
x(6.6100)=0.0715
x(6.6200)=0.0683
x(6.6300)=0.0636
x(6.6400)=0.0576
x(6.6500)=0.0505
x(6.6600)=0.0425
x(6.6700)=0.0340
x(6.6800)=0.0250
x(6.6900)=0.0160
x(6.7000)=0.0072
x(6.7100)=-0.0011
x(6.7200)=-0.0087
x(6.7300)=-0.0152
x(6.7400)=-0.0206
x(6.7500)=-0.0247
x(6.7600)=-0.0273
x(6.7700)=-0.0286
x(6.7800)=-0.0284
x(6.7900)=-0.0268
x(6.8000)=-0.0241
x(6.8100)=-0.0204
x(6.8200)=-0.0159
x(6.8300)=-0.0108
x(6.8400)=-0.0055
x(6.8500)=-0.0002
x(6.8600)=0.0048
x(6.8700)=0.0091
x(6.8800)=0.0127
x(6.8900)=0.0152
x(6.9000)=0.0165
x(6.9100)=0.0164
x(6.9200)=0.0149
x(6.9300)=0.0120
x(6.9400)=0.0077
x(6.9500)=0.0022
x(6.9600)=-0.0045
x(6.9700)=-0.0121
x(6.9800)=-0.0204
x(6.9900)=-0.0292
x(7.0000)=-0.0380
x(7.0100)=-0.0467
x(7.0200)=-0.0550
x(7.0300)=-0.0626
x(7.0400)=-0.0692
x(7.0500)=-0.0747
x(7.0600)=-0.0788
x(7.0700)=-0.0816
x(7.0800)=-0.0828
x(7.0900)=-0.0825
x(7.1000)=-0.0809
x(7.1100)=-0.0779
x(7.1200)=-0.0738
x(7.1300)=-0.0688
x(7.1400)=-0.0631
x(7.1500)=-0.0569
x(7.1600)=-0.0506
x(7.1700)=-0.0445
x(7.1800)=-0.0388
x(7.1900)=-0.0338
x(7.2000)=-0.0298
x(7.2100)=-0.0268
x(7.2200)=-0.0251
x(7.2300)=-0.0248
x(7.2400)=-0.0259
x(7.2500)=-0.0283
x(7.2600)=-0.0320
x(7.2700)=-0.0369
x(7.2800)=-0.0427
x(7.2900)=-0.0494
x(7.3000)=-0.0565
x(7.3100)=-0.0638
x(7.3200)=-0.0711
x(7.3300)=-0.0781
x(7.3400)=-0.0844
x(7.3500)=-0.0899
x(7.3600)=-0.0942
x(7.3700)=-0.0973
x(7.3800)=-0.0990
x(7.3900)=-0.0992
x(7.4000)=-0.0979
x(7.4100)=-0.0951
x(7.4200)=-0.0909
x(7.4300)=-0.0856
x(7.4400)=-0.0792
x(7.4500)=-0.0720
x(7.4600)=-0.0642
x(7.4700)=-0.0562
x(7.4800)=-0.0483
x(7.4900)=-0.0407
x(7.5000)=-0.0336
x(7.5100)=-0.0274
x(7.5200)=-0.0222
x(7.5300)=-0.0183
x(7.5400)=-0.0157
x(7.5500)=-0.0144
x(7.5600)=-0.0146
x(7.5700)=-0.0161
x(7.5800)=-0.0188
x(7.5900)=-0.0227
x(7.6000)=-0.0273
x(7.6100)=-0.0327
x(7.6200)=-0.0383
x(7.6300)=-0.0441
x(7.6400)=-0.0496
x(7.6500)=-0.0547
x(7.6600)=-0.0590
x(7.6700)=-0.0624
x(7.6800)=-0.0645
x(7.6900)=-0.0653
x(7.7000)=-0.0647
x(7.7100)=-0.0626
x(7.7200)=-0.0591
x(7.7300)=-0.0542
x(7.7400)=-0.0480
x(7.7500)=-0.0408
x(7.7600)=-0.0327
x(7.7700)=-0.0239
x(7.7800)=-0.0149
x(7.7900)=-0.0058
x(7.8000)=0.0031












































x(7.8100)=0.0114
x(7.8200)=0.0189
x(7.8300)=0.0255
x(7.8400)=0.0308
x(7.8500)=0.0348
x(7.8600)=0.0374
x(7.8700)=0.0386
x(7.8800)=0.0383
x(7.8900)=0.0367
x(7.9000)=0.0339
x(7.9100)=0.0301
x(7.9200)=0.0255
x(7.9300)=0.0204
x(7.9400)=0.0150
x(7.9500)=0.0097
x(7.9600)=0.0047
x(7.9700)=0.0003
x(7.9800)=-0.0033
x(7.9900)=-0.0058
x(8.0000)=-0.0071
x(8.0100)=-0.0071
x(8.0200)=-0.0056
x(8.0300)=-0.0028
x(8.0400)=0.0015
x(8.0500)=0.0070
x(8.0600)=0.0136
x(8.0700)=0.0211
x(8.0800)=0.0292
x(8.0900)=0.0378
x(8.1000)=0.0465
x(8.1100)=0.0550
x(8.1200)=0.0630
x(8.1300)=0.0703
x(8.1400)=0.0767
x(8.1500)=0.0819
x(8.1600)=0.0857
x(8.1700)=0.0881
x(8.1800)=0.0890
x(8.1900)=0.0884
x(8.2000)=0.0865
x(8.2100)=0.0832
x(8.2200)=0.0788
x(8.2300)=0.0734
x(8.2400)=0.0674
x(8.2500)=0.0610
x(8.2600)=0.0544
x(8.2700)=0.0481
x(8.2800)=0.0421
x(8.2900)=0.0369
x(8.3000)=0.0326
x(8.3100)=0.0295
x(8.3200)=0.0276
x(8.3300)=0.0270
x(8.3400)=0.0279
x(8.3500)=0.0301
x(8.3600)=0.0336
x(8.3700)=0.0382
x(8.3800)=0.0439
x(8.3900)=0.0502
x(8.4000)=0.0571
x(8.4100)=0.0641
x(8.4200)=0.0711
x(8.4300)=0.0777
x(8.4400)=0.0837
x(8.4500)=0.0888
x(8.4600)=0.0927
x(8.4700)=0.0954
x(8.4800)=0.0968
x(8.4900)=0.0966
x(8.5000)=0.0949
x(8.5100)=0.0917
x(8.5200)=0.0872
x(8.5300)=0.0815
x(8.5400)=0.0748
x(8.5500)=0.0673
x(8.5600)=0.0592
x(8.5700)=0.0510
x(8.5800)=0.0428
x(8.5900)=0.0349
x(8.6000)=0.0277
x(8.6100)=0.0213
x(8.6200)=0.0159
x(8.6300)=0.0118
x(8.6400)=0.0091
x(8.6500)=0.0077
x(8.6600)=0.0077
x(8.6700)=0.0091
x(8.6800)=0.0117
x(8.6900)=0.0154
x(8.7000)=0.0199
x(8.7100)=0.0251
x(8.7200)=0.0306
x(8.7300)=0.0361
x(8.7400)=0.0415
x(8.7500)=0.0464
x(8.7600)=0.0505
x(8.7700)=0.0536
x(8.7800)=0.0555
x(8.7900)=0.0562
x(8.8000)=0.0553
x(8.8100)=0.0530
x(8.8200)=0.0493
x(8.8300)=0.0443
x(8.8400)=0.0379
x(8.8500)=0.0306
x(8.8600)=0.0223
x(8.8700)=0.0135
x(8.8800)=0.0044
x(8.8900)=-0.0047
x(8.9000)=-0.0135
x(8.9100)=-0.0219
x(8.9200)=-0.0294
x(8.9300)=-0.0358
x(8.9400)=-0.0411
x(8.9500)=-0.0450
x(8.9600)=-0.0475
x(8.9700)=-0.0485
x(8.9800)=-0.0481
x(8.9900)=-0.0463
x(9.0000)=-0.0434
x(9.0100)=-0.0395
x(9.0200)=-0.0348
x(9.0300)=-0.0296
x(9.0400)=-0.0241
x(9.0500)=-0.0187
x(9.0600)=-0.0136
x(9.0700)=-0.0091
x(9.0800)=-0.0055
x(9.0900)=-0.0029
x(9.1000)=-0.0015
x(9.1100)=-0.0015
x(9.1200)=-0.0029
x(9.1300)=-0.0057
x(9.1400)=-0.0098
x(9.1500)=-0.0152
x(9.1600)=-0.0217
x(9.1700)=-0.0290
x(9.1800)=-0.0370
x(9.1900)=-0.0454
x(9.2000)=-0.0538
x(9.2100)=-0.0621
x(9.2200)=-0.0699
x(9.2300)=-0.0769
x(9.2400)=-0.0829
x(9.2500)=-0.0878
x(9.2600)=-0.0913
x(9.2700)=-0.0934
x(9.2800)=-0.0939
x(9.2900)=-0.0930
x(9.3000)=-0.0906
x(9.3100)=-0.0870
x(9.3200)=-0.0823
x(9.3300)=-0.0766
x(9.3400)=-0.0703
x(9.3500)=-0.0636
x(9.3600)=-0.0567
x(9.3700)=-0.0501
x(9.3800)=-0.0439
x(9.3900)=-0.0385
x(9.4000)=-0.0339
x(9.4100)=-0.0306
x(9.4200)=-0.0285
x(9.4300)=-0.0277
x(9.4400)=-0.0283
x(9.4500)=-0.0303
x(9.4600)=-0.0336
x(9.4700)=-0.0380
x(9.4800)=-0.0434
x(9.4900)=-0.0495
x(9.5000)=-0.0560
x(9.5100)=-0.0628
x(9.5200)=-0.0694
x(9.5300)=-0.0757
x(9.5400)=-0.0814
x(9.5500)=-0.0861
x(9.5600)=-0.0897
x(9.5700)=-0.0921
x(9.5800)=-0.0930
x(9.5900)=-0.0924
x(9.6000)=-0.0904
x(9.6100)=-0.0869
x(9.6200)=-0.0820
x(9.6300)=-0.0760
x(9.6400)=-0.0689
x(9.6500)=-0.0611
x(9.6600)=-0.0529
x(9.6700)=-0.0444
x(9.6800)=-0.0359
x(9.6900)=-0.0279
x(9.7000)=-0.0204
x(9.7100)=-0.0139
x(9.7200)=-0.0084
x(9.7300)=-0.0042
x(9.7400)=-0.0013
x(9.7500)=0.0001


















d) Gráfico da solução

x(9.7600)=0.0002
x(9.7700)=-0.0011
x(9.7800)=-0.0036
x(9.7900)=-0.0071
x(9.8000)=-0.0115
x(9.8100)=-0.0166
x(9.8200)=-0.0220
x(9.8300)=-0.0274
x(9.8400)=-0.0326
x(9.8500)=-0.0373
x(9.8600)=-0.0413
x(9.8700)=-0.0442
x(9.8800)=-0.0460
x(9.8900)=-0.0464
x(9.9000)=-0.0455
x(9.9100)=-0.0430
x(9.9200)=-0.0392
x(9.9300)=-0.0340
x(9.9400)=-0.0276
x(9.9500)=-0.0201
x(9.9600)=-0.0118
x(9.9700)=-0.0030
x(9.9800)=0.0061
x(9.9900)=0.0152
x(10.0000)=0.0240
Questão 8.25
Um capacitor de é colocado em série com o circuito do Problema 8.18.
Conforme mostrado na figura, o circuito contém uma fonte de tensão ,

,
um indutor de e uma resistência não linear

, onde

e

⁄ . A chave está inicialmente aberta, sendo então fechada no tempo
. A carga no capacitor em é determinada a partir da solução da equação:

(

)

Inicialmente, ⁄ .
a) Reduza a EDO de segunda ordem em um sistema de duas EDOs de primeira
ordem e determine a carga em função do tempo em resolvendo
o sistema com método de Runge-Kutta de quarta ordem.
b) Use os resultados da letra (a) para traçar um gráfico com a corrente no circuito.
A corrente é dada pela derivada temporal da carga,

.
c) Resolva o problema (letras (a) e (b)) usando funções residentes do MATLAB.

RESOLUÇÃO
a) Arquivo da função
Nome do arquivo: exercicio25.m












functiondqdt = exercicio25 (t,q)
c=4.2e-6;
Vo=1000;
L=15;
Ro=500;
R1=250;
dqdt=zeros(2,1);
dqdt(1)=q(2);
dqdt(2)=Vo/L-q(1)/L/c-R1*q(2)^3/L-Ro*q(2)/L;

b) Arquivo de Script da solução:


















c) Resposta do Matlab
Na outra página.













% Autores:
% Aluno (a) 1:Camila Vasconcelos Siqueira
% Questão 8.25
clc
close all
clear all

[t,q]=ode45('exercicio25',[0:0.002:0.4], [0 0]);
plot(t,q(:,1));
xlabel('t (s)')
ylabel('q (Coulomb)')
aux = [t' ;q(:,1)'];
fprintf('Carga (Q) em função do tempo (t)\n\n');
fprintf('q (%2.4f)= %2.4f \n\n', aux);
figure(2)
plot(t,q(:,2));
xlabel('t(s)');
ylabel('I(A)');
aux2 = [t' ;q(:,2)'];
fprintf('Corrente (I) em função do tempo (t)\n\n');
fprintf('I(%2.4f)=%2.4f\n\n', aux2);

































q (0.3680)= 0.0042
q (0.3700)= 0.0042
q (0.3720)= 0.0042
q (0.3740)= 0.0042
q (0.3760)= 0.0042
q (0.3780)= 0.0042
q (0.3800)= 0.0042
q (0.3820)= 0.0042
q (0.3840)= 0.0042
q (0.3860)= 0.0042
q (0.3880)= 0.0042
q (0.3900)= 0.0042
q (0.3920)= 0.0042
q (0.3940)= 0.0042
q (0.3960)= 0.0042
q (0.3980)= 0.0042
q (0.4000)= 0.0042
Carga (Q) em função do
tempo (t)
q (0.0000)= 0.0000
q (0.0020)= 0.0001
q (0.0040)= 0.0005
q (0.0060)= 0.0011
q (0.0080)= 0.0018
q (0.0100)= 0.0026
q (0.0120)= 0.0035
q (0.0140)= 0.0043
q (0.0160)= 0.0051
q (0.0180)= 0.0058
q (0.0200)= 0.0063
q (0.0220)= 0.0067
q (0.0240)= 0.0069
q (0.0260)= 0.0069
q (0.0280)= 0.0067
q (0.0300)= 0.0064
q (0.0320)= 0.0060
q (0.0340)= 0.0055
q (0.0360)= 0.0050
q (0.0380)= 0.0044
q (0.0400)= 0.0039
q (0.0420)= 0.0034
q (0.0440)= 0.0030
q (0.0460)= 0.0027
q (0.0480)= 0.0025
q (0.0500)= 0.0025
q (0.0520)= 0.0025
q (0.0540)= 0.0026
q (0.0560)= 0.0029
q (0.0580)= 0.0031
q (0.0600)= 0.0035
q (0.0620)= 0.0038
q (0.0640)= 0.0042
q (0.0660)= 0.0045
q (0.0680)= 0.0048
q (0.0700)= 0.0051
q (0.0720)= 0.0052
q (0.0740)= 0.0053
q (0.0760)= 0.0053
q (0.0780)= 0.0053
q (0.0800)= 0.0052
q (0.0820)= 0.0050
q (0.0840)= 0.0048
q (0.0860)= 0.0046
q (0.0880)= 0.0043
q (0.0900)= 0.0041
q (0.0920)= 0.0039
q (0.0940)= 0.0037
q (0.0960)= 0.0036
q (0.0980)= 0.0035
q (0.1000)= 0.0035
q (0.1020)= 0.0035
q (0.1040)= 0.0035
q (0.1060)= 0.0036
q (0.1080)= 0.0037
q (0.1100)= 0.0039
q (0.1120)= 0.0040
q (0.1140)= 0.0042
q (0.1160)= 0.0043
q (0.1180)= 0.0044

q (0.1200)= 0.0046
q (0.1220)= 0.0046
q (0.1240)= 0.0047
q (0.1260)= 0.0047
q (0.1280)= 0.0047
q (0.1300)= 0.0046
q (0.1320)= 0.0046
q (0.1340)= 0.0045
q (0.1360)= 0.0044
q (0.1380)= 0.0043
q (0.1400)= 0.0042
q (0.1420)= 0.0041
q (0.1440)= 0.0040
q (0.1460)= 0.0039
q (0.1480)= 0.0039
q (0.1500)= 0.0039
q (0.1520)= 0.0039
q (0.1540)= 0.0039
q (0.1560)= 0.0039
q (0.1580)= 0.0040
q (0.1600)= 0.0040
q (0.1620)= 0.0041
q (0.1640)= 0.0042
q (0.1660)= 0.0042
q (0.1680)= 0.0043
q (0.1700)= 0.0043
q (0.1720)= 0.0044
q (0.1740)= 0.0044
q (0.1760)= 0.0044
q (0.1780)= 0.0044
q (0.1800)= 0.0044
q (0.1820)= 0.0044
q (0.1840)= 0.0043
q (0.1860)= 0.0043
q (0.1880)= 0.0042
q (0.1900)= 0.0042
q (0.1920)= 0.0042
q (0.1940)= 0.0041
q (0.1960)= 0.0041
q (0.1980)= 0.0041
q (0.2000)= 0.0041
q (0.2020)= 0.0041
q (0.2040)= 0.0041
q (0.2060)= 0.0041
q (0.2080)= 0.0041
q (0.2100)= 0.0041
q (0.2120)= 0.0042
q (0.2140)= 0.0042
q (0.2160)= 0.0042
q (0.2180)= 0.0042
q (0.2200)= 0.0043
q (0.2220)= 0.0043
q (0.2240)= 0.0043
q (0.2260)= 0.0043
q (0.2280)= 0.0043
q (0.2300)= 0.0043
q (0.2320)= 0.0043
q (0.2340)= 0.0043
q (0.2360)= 0.0042
q (0.2380)= 0.0042
q (0.2400)= 0.0042
q (0.2420)= 0.0042

q (0.2440)= 0.0042
q (0.2460)= 0.0042
q (0.2480)= 0.0041
q (0.2500)= 0.0041
q (0.2520)= 0.0041
q (0.2540)= 0.0041
q (0.2560)= 0.0041
q (0.2580)= 0.0042
q (0.2600)= 0.0042
q (0.2620)= 0.0042
q (0.2640)= 0.0042
q (0.2660)= 0.0042
q (0.2680)= 0.0042
q (0.2700)= 0.0042
q (0.2720)= 0.0042
q (0.2740)= 0.0042
q (0.2760)= 0.0042
q (0.2780)= 0.0042
q (0.2800)= 0.0042
q (0.2820)= 0.0042
q (0.2840)= 0.0042
q (0.2860)= 0.0042
q (0.2880)= 0.0042
q (0.2900)= 0.0042
q (0.2920)= 0.0042
q (0.2940)= 0.0042
q (0.2960)= 0.0042
q (0.2980)= 0.0042
q (0.3000)= 0.0042
q (0.3020)= 0.0042
q (0.3040)= 0.0042
q (0.3060)= 0.0042
q (0.3080)= 0.0042
q (0.3100)= 0.0042
q (0.3120)= 0.0042
q (0.3140)= 0.0042
q (0.3160)= 0.0042
q (0.3180)= 0.0042
q (0.3200)= 0.0042
q (0.3220)= 0.0042
q (0.3240)= 0.0042
q (0.3260)= 0.0042
q (0.3280)= 0.0042
q (0.3300)= 0.0042
q (0.3320)= 0.0042
q (0.3340)= 0.0042
q (0.3360)= 0.0042
q (0.3380)= 0.0042
q (0.3400)= 0.0042
q (0.3420)= 0.0042
q (0.3440)= 0.0042
q (0.3460)= 0.0042
q (0.3480)= 0.0042
q (0.3500)= 0.0042
q (0.3520)= 0.0042
q (0.3540)= 0.0042
q (0.3560)= 0.0042
q (0.3580)= 0.0042
q (0.3600)= 0.0042
q (0.3620)= 0.0042
q (0.3640)= 0.0042
q (0.3660)= 0.0042
d) Gráfico da solução


Questão 26
Um paraquedista salta de um avião em vôo retilíneo e estável. O movimento do
paraquedista é descrito aproximadamente pelo seguinte conjunto de equações:

(

)

(

)

(

)

(

)

(

)

(

)

Onde descrevem a posição do pára-quedista de acordo com o sistema de
coordenadas mostrado na figura. Para ,

⁄ ,


e condições iniciais:
() ()

( ) ⁄

( )

RESOLUÇÃO
a) Arquivo da função
Nome do arquivo: exercicio26.m










b) Arquivo de Script da solução:











functiondxydt = exercicio26(t,x)
m=80;
g=9.81;
gama=5.38;
dxydt = zeros(4,1);
dxydt(1)=x(2);
dxydt(2)=-gama/m*x(2)*sqrt(x(2)^2+x(4)^2);
dxydt(3)=x(4);
dxydt(4)=-g-gama/m*x(4)*sqrt(x(2)^2+x(4)^2);

% Autores:
% Aluno (a) 1:Camila Vasconcelos Siqueira
% Questão 8.26

clc
close all
clear all

[t,x]=ode45('exercicio26',[0:0.1:5], [0 134 0 0]);
plot(x(:,1),x(:,3));
xlabel('comprimento (m))');
ylabel('altura (m)');
aux = [x(:,3),x(:,1)]';
fprintf('Altura (y) em função da distância (x)');
fprintf('y (%2.4f)= %2.4f \n', aux);

c) Resposta do Matlab
































Altura (y) em função da
distância (x)
y (0.0000)= 0.0000
y (-0.0402)= 9.5537
y (-0.1447)= 15.3235
y (-0.3049)= 19.4700
y (-0.5178)= 22.7082
y (-0.7820)= 25.3640
y (-1.0966)= 27.6149
y (-1.4610)= 29.5656
y (-1.8747)= 31.2857
y (-2.3371)= 32.8218
y (-2.8472)= 34.2064
y (-3.4044)= 35.4649
y (-4.0078)= 36.6155
y (-4.6558)= 37.6717
y (-5.3470)= 38.6448
y (-6.0800)= 39.5441
y (-6.8532)= 40.3768
y (-7.6644)= 41.1487
y (-8.5115)= 41.8647
y (-9.3924)= 42.5293
y (-10.3049)= 43.1465
y (-11.2468)= 43.7197
y (-12.2158)= 44.2519
y (-13.2098)= 44.7459
y (-14.2267)= 45.2042
y (-15.2645)= 45.6293
y (-16.3210)= 46.0235
y (-17.3946)= 46.3888
y (-18.4837)= 46.7272
y (-19.5866)= 47.0406
y (-20.7018)= 47.3306
y (-21.8281)= 47.5990
y (-22.9641)= 47.8472
y (-24.1089)= 48.0767
y (-25.2615)= 48.2889
y (-26.4209)= 48.4849
y (-27.5862)= 48.6661
y (-28.7569)= 48.8334
y (-29.9324)= 48.9878
y (-31.1119)= 49.1305
y (-32.2951)= 49.2621
y (-33.4813)= 49.3837
y (-34.6704)= 49.4959
y (-35.8619)= 49.5993
y (-37.0556)= 49.6948
y (-38.2510)= 49.7829
y (-39.4481)= 49.8642
y (-40.6466)= 49.9392
y (-41.8463)= 50.0083
y (-43.0471)= 50.0721
y (-44.2489)= 50.1310
d) Gráfico da solução










c) Resposta do Matlab:
Corrente em um circuito formado por um indutor e um resistor não-linear em série Corrente (I) em função do tempo (t) I(0.0000)=0.0050 I(0.0100)=0.0150 I(0.0200)=0.0250 I(0.0300)=0.0350 I(0.0400)=0.0450 I(0.0500)=0.0550 I(0.0600)=0.0650 I(0.0700)=0.0750 I(0.0800)=0.0850 I(0.0900)=0.0950 I(0.1000)=0.0000 I(0.3065)=0.5593 I(0.7574)=0.9029 I(1.0037)=1.0702 I(1.1126)=1.1389 I(1.1550)=1.1648 I(1.1707)=1.1742 I(1.1763)=1.1776 I(1.1784)=1.1788 I(1.1791)=1.1793 I(1.1794)=1.1794

d) Gráfico da solução

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->