Docsity
Docsity

Prepare-se para as provas
Prepare-se para as provas

Estude fácil! Tem muito documento disponível na Docsity


Ganhe pontos para baixar
Ganhe pontos para baixar

Ganhe pontos ajudando outros esrudantes ou compre um plano Premium


Guias e Dicas
Guias e Dicas

Lista de problemas de conversão, cap. 1-11, Manuais, Projetos, Pesquisas de Engenharia Elétrica

Lista de problemas de conversão, Mathlab solutions cap. 1-11

Tipologia: Manuais, Projetos, Pesquisas

2019

Compartilhado em 09/08/2019

iana-cavalcanti-7
iana-cavalcanti-7 🇧🇷

3 documentos

1 / 362

Toggle sidebar

Esta página não é visível na pré-visualização

Não perca as partes importantes!

bg1
Chapter 1
Solved Problems
Problem 1
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^2
Command Window:
Part (a)
ans =
4.6566
Part (b)
ans =
12.5768
Problem 2
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)/8
132^(1/3)+log(500)/8
Command Window:
Part (a)
ans =
0.8493
Part (b)
ans =
5.8685
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63
pf64

Pré-visualização parcial do texto

Baixe Lista de problemas de conversão, cap. 1-11 e outras Manuais, Projetos, Pesquisas em PDF para Engenharia Elétrica, somente na Docsity!

Chapter 1

Solved Problems

Problem 1

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 =

Problem 2

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 =

Problem 3

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 =

Problem 4

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 =

Problem 5

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)

Problem 8

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 =

Problem 9

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+

Problem 10

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 =

Problem 11

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.

Problem 14

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 =

Problem 15

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 =

Problem 16

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.

Problem 17

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.

Problem 21

Script file:

clear, clc a=16; b=11; C=pi(3(a+b)-sqrt((3a+b)(a+3*b)))

Command Window:

C =

Problem 22

Script file:

clear, clc %alternate 37-rem(315,37) empty=37*ceil(315/37)-

Command Window:

empty = 18

Problem 23

Script file:

clear, clc %alternate rem(739,54) unpacked=739-54*fix(739/54)

Command Window:

unpacked = 37

Problem 24

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

Problem 25

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 =

Problem 26

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 =

Problem 30

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 =

Problem 31

Script file:

clear, clc k=log(0.5)/5730; Age=round(log(.7745)/k)

Command Window:

Age = 2112

Problem 32

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

Problem 33

Script file:

clear, clc ratio=10^(3(9.5+10.7)/2)/10^(3(8.7+10.7)/2)

Command Window:

ratio =

Problem 34

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-

Problem 35

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 =

Problem 39

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/

Problem 40

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 =

Chapter 2

Solved Problems

Problem 1

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.

Problem 2

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.

Problem 3

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 =

Problem 7

Script file:

clear, clc row=1:6:

Command Window:

row = 1 7 13 19 25 31 37 43

Problem 8

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.

Problem 9

Script file:

clear, clc %square brackets needed, else ' only applied to - col = [26:-3.6:-10]'

Command Window:

col =

-2. -6. -10.

Problem 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.

Problem 11

Script file:

clear, clc Fives(1:5)=

Command Window:

Fives = 5 5 5 5 5

Problem 12

Script file:

clear, clc Nines=linspace(9,9,9)

Command Window:

Nines = 9 9 9 9 9 9 9 9 9