




























































































Estude fácil! Tem muito documento disponível na Docsity
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Prepare-se para as provas
Estude fácil! Tem muito documento disponível na Docsity
Prepare-se para as provas com trabalhos de outros alunos como você, aqui na Docsity
Os melhores documentos à venda: Trabalhos de alunos formados
Prepare-se com as videoaulas e exercícios resolvidos criados a partir da grade da sua Universidade
Responda perguntas de provas passadas e avalie sua preparação.
Ganhe pontos para baixar
Ganhe pontos ajudando outros esrudantes ou compre um plano Premium
Comunidade
Peça ajuda à comunidade e tire suas dúvidas relacionadas ao estudo
Descubra as melhores universidades em seu país de acordo com os usuários da Docsity
Guias grátis
Baixe gratuitamente nossos guias de estudo, métodos para diminuir a ansiedade, dicas de TCC preparadas pelos professores da Docsity
Lista de problemas de conversão, Mathlab solutions cap. 1-11
Tipologia: Manuais, Projetos, Pesquisas
1 / 362
Esta página não é visível na pré-visualização
Não perca as partes importantes!
Script file:
clear, clc disp('Part (a)') (22+5.1^2)/(50-6.3^2) disp('Part (b)') 44/7+8^2/5-99/3.9^
Command Window:
Part (a) ans =
Part (b) ans =
Script file:
clear, clc disp('Part (a)') sqrt(41^2-5.2^2)/(exp(5)-100.53) disp('Part (b)') %alternative: nthroot(132,3)+log(500)/ 132^(1/3)+log(500)/
Command Window:
Part (a) ans =
Part (b) ans =
Script file:
clear, clc disp('Part (a)') (14.8^3-6.3^2)/(sqrt(13)+5)^ disp('Part (b)') 45(288/9.3-4.6^2)-1065exp(-1.5)
Command Window:
Part (a) ans =
Part (b) ans =
Script file:
clear, clc disp('Part (a)') (24.5+64/3.5^2+8.3*12.5^3)/(sqrt(76.4)-28/15) disp('Part (b)') (5.9^2-2.4^2)/3+(log10(12890)/exp(0.3))^
Command Window:
Part (a) ans = 2.3626e+ Part (b) ans =
Script file:
clear, clc disp('Part (a)') %alternative: sin(15pi/180) instead of sind(15) cos(7pi/9)+tan(7pi/15)sind(15) disp('Part (b)') %alternatives: could use nthroot(0.18,3), could convert to radians %and use regular trig functions sind(80)^2-(cosd(14)*sind(80))^2/(0.18)^(1/3)
Script file:
clear, clc x=5.1; y=4.2; disp('Part (a)') 3/4xy-7x/y^2+sqrt(xy) disp('Part (b)') (xy)^2-(x+y)/(x-y)^2 +sqrt((x+y)/(2x-y))
Command Window:
Part (a) ans =
Part (b) ans =
Script file:
clear, clc a=12; b=5.6; c=3a/b^2; d=(a-b)^c/c; disp('Part (a)') a/b+(d-c)/(d+c)-(d-b)^ disp('Part (b)') exp((d-c)/(a-2b))+log(abs(c-d+b/a))
Command Window:
Part (a) ans = -0. Part (b) ans = 2.2925e+
Script file:
clear, clc r=24; disp('Part (a)') %need to solve (a)(a/2)(a/4)=4/3 pi r^ %could also use ^(1/3) a=nthroot(84/3pir^3,3) disp('Part (b)') %need to solve 2(a^2/2+a^2/4+a^2/8)=4 pi r^ a=sqrt(8/74pir^2) disp(' ') disp('Problem 11') a=11; b=9; %could be one long expression s=sqrt(b^2+16a^2); Labc = s/2 + b^2/(8a)log((4a+s)/b)
Command Window:
Part (a) a =
Part (b) a =
Script file:
clear, clc a=11; b=9; %could be one long expression s=sqrt(b^2+16a^2); Labc = s/2 + b^2/(8a)log((4a+s)/b)
Command Window:
Labc =
Part (b) LHS = -0. RHS = -0.
Script file:
clear, clc alpha=pi/6; beta=3pi/8; %compare LHS and RHS LHS = sin(alpha)+sin(beta) RHS = 2sin((alpha+beta)/2)*cos((alpha-beta)/2)
Command Window:
LHS =
RHS =
Script file:
clear, clc Integral=sin(a3pi/2)/a^2 - 3pi/2cos(a3pi/2)/a - ... sin(api/3)/a^2 + pi/3cos(a*pi/3)/a
Command Window:
Integral =
Script file:
clear, clc a=5.3; gamma=42; b=6; disp('Part (a)') c=sqrt(a^2+b^2-2abcosd(gamma)) disp('Part (b)') alpha = asind(asind(gamma)/c) beta = asind(b*sind(gamma)/c) disp('Part (c)') Total = alpha+beta+gamma
Command Window:
Part (a) c =
Part (b) alpha =
beta =
Part (c) Total = 180.
Script file:
clear, clc a=5; b=7; gamma=25; disp('Part (a)') c=sqrt(a^2+b^2-2abcosd(gamma)) disp('Part (b)') alpha = asind(asind(gamma)/c) %note that beta is over 90 deg and asind will give 1st quadrant beta = 180 - asind(b*sind(gamma)/c) disp('Part (c)') %compare LHS with RHS LHS=(a-b)/(a+b) RHS=tand((alpha-beta)/2)/tand((alpha+beta)/2)
Command Window:
Part (a) c =
Part (b) alpha =
beta =
Part (c) LHS = -0. RHS = -0.
Script file:
clear, clc a=16; b=11; C=pi(3(a+b)-sqrt((3a+b)(a+3*b)))
Command Window:
C =
Script file:
clear, clc %alternate 37-rem(315,37) empty=37*ceil(315/37)-
Command Window:
empty = 18
Script file:
clear, clc %alternate rem(739,54) unpacked=739-54*fix(739/54)
Command Window:
unpacked = 37
Script file:
clear, clc format long g variable=316501.673; %note basic matlab only has round function to nearest integer %symbolic math toolbox has round function that allows rounding to %specified digit, i.e round(variable,2) will round to 2nd digit after %the decimal point, round(variable,-3) will round to the thousands digit. disp('Part (a)') round(100variable)/ disp('Part (b)') round(variable/1000)
Command Window:
Part (a) ans =
Part (b) ans = 317000
Script file:
clear, clc V=14; R1=120.6; R2=119.3; R3=121.2; R4=118.8; Vab=V(R1R3-R2R4)/((R1+R3)(R3+R4))
Command Window:
Vab =
Script file:
clear, clc L=0.15; R=14; C=2.6e-6; f=1/(2pi)sqrt(1/(L*C)-(R/L)^2)
Command Window:
f =
Command Window:
Req =
Script file:
clear, clc V0=36; R=2500; C=160010^-6; t=8; VC=V0(1-exp(-t/(R*C))); I=VC/R
Command Window:
I =
Script file:
clear, clc k=log(0.5)/5730; Age=round(log(.7745)/k)
Command Window:
Age = 2112
Script file:
clear, clc disp('Part (a)') gcd(91,147) disp('Part (b)') gcd(555,962)
Command Window:
Part (a) ans = 7 Part (b) ans = 37
Script file:
clear, clc ratio=10^(3(9.5+10.7)/2)/10^(3(8.7+10.7)/2)
Command Window:
ratio =
Script file:
clear, clc L=2; v=5000; c=30010^6; delta=L(1-sqrt(1-v^2/c^2))
Command Window:
delta = 2.7778e-
Script file:
clear, clc format bank %an interest rate of 10% is assumed P=80000; n=5; r=.1; bonus=P(1+ r/365)^(365n) - P*(1+ r)^n
Command Window:
bonus =
Part (b) bigt_minutes =
Script file:
clear, clc format rat disp('Part (a)') 5/8+16/ disp('Part (b)') 1/3-11/13+2.7^
Command Window:
Part (a) ans = 79/ Part (b) ans = 1247/
Script file:
clear, clc factorial_20=sqrt(2pi20)*(20/exp(1))^ error=(factorial(20)-factorial_20)/factorial(20)
Command Window:
factorial_20 = 2.4228e+ error =
Script file:
clear, clc row=[8 10/4 12*1.4 51 tand(85) sqrt(26) 0.15]
Command Window:
row = 8.0000 2.5000 16.8000 51.0000 11.4301 5.0990 0.
Script file:
clear, clc row=[sqrt(15)*10^3, 25/(14-6^2), log(35)/0.4^3, sind(65)/cosd(80), ... 129, cos(pi/20)^2]
Command Window:
row = 1.0e+03 * 3.8730 -0.0011 0.0556 0.0052 0.1290 0.
Script file:
clear, clc col=[25.5; 14*tand(58)/(2.1^2+11); factorial(6); 2.7^4; 0.0375; pi/5]
Command Window:
col =
Script file:
clear, clc row=1:6:
Command Window:
row = 1 7 13 19 25 31 37 43
Script file:
clear, clc %alternative row = 96:-9.4: row=linspace(96,2,11)
Command Window:
row = 96.0000 86.6000 77.2000 67.8000 58.4000 49.0000 39. 30.2000 20.8000 11.4000 2.
Script file:
clear, clc %square brackets needed, else ' only applied to - col = [26:-3.6:-10]'
Command Window:
col =
-2. -6. -10.
Script file:
clear, clc %alternative col = [-34:27/8:-7]' %for alternative square brackets needed, else ' only applied to - col=linspace(-34,-7,9)'
Command Window:
col = -34. -30. -27. -23. -20. -17. -13. -10. -7.
Script file:
clear, clc Fives(1:5)=
Command Window:
Fives = 5 5 5 5 5
Script file:
clear, clc Nines=linspace(9,9,9)
Command Window:
Nines = 9 9 9 9 9 9 9 9 9