Documente Academic
Documente Profesional
Documente Cultură
ION BALMU
ANATOLIE CASIAN
VALERIU MIHAILOV
LUCRRI DE LABORATOR LA
MECANIC
realizate n MATLAB
Chiinu
U.T.M.
2007
2.4.......................................................................................................................................... Con
Notri
Exemplu pentru regimul de comand - fereastra "Command
Windows",__________________________________________________
>> x = 0.2;
>>
Exemplu pentru Editorul intern a MATLAB.___________________
x = 0.2;
z=x_______________________________________________________
Introducere
Ce este MATLAB
n timpul de fa MATLAB este unul din cele mai puternice din
toate pachetele universale de calcul. Inginerii i savanii aplic MATLAB
pentru rezolvarea problemelor din diferite domenii de aplicare:
achiziionarea, analizarea i vizualizarea datelor; prelucrarea semnalelor
i a imaginilor; cercetarea i calcularea diferitor procese tehnice;
modelarea, simularea i optimizarea sistemelor tehnice; dezvoltarea
aplicaiilor, incluznd interfeele grafice etc.
MATLAB este un sistem interactiv cu un limbaj de performan
nalt foarte efectiv pentru calcule tehnice a crui element informaional
de baz este matricea. Denumirea de MATLAB provine de la Matrix
Laboratory.
MATLAB s-a dezvoltat pe parcursul anilor cu adugrile a mai
multor utilizatori. La universiti pachetul MATLAB se folosete ca un
instrument standard de iniiere i cursuri avansate n matematic. n
industrie MATLAB este instrumentul cu o capacitate nalt pentru
cercetare, dezvoltare i analiz.
Sistemul MATLAB const din 5 pri principale:
Rapid
control Prototyping and
mil sw/hw
CodeRapid
Embedded
lArification,
TargEt5 Validation andControl
TestingEvstem Design and Analysis
Generationan
Fig.
Versiunile existente
In momentul de fa sunt mai multe versiuni a pachetului
MATLAB :
1) MATLAB 6.1 (Release 12) - lansat la 7 Martie 2005, instalarea
ocup ~260 Mb
2) MATLAB 6.5.1 (Release 13) SP3
3) MATLAB 7.0.0 (Release 14)
4) MATLAB 7.0.1 (Release 14) SP1
6
Jt MATLAB
File Edit Debug Desktop Window Help
e9
Shortcuts
10
? X
Command Window
11
8 SS'
12
File Type
To get started,
13
J
Current Directory
I Workspace |
14
Command History
- H 13 . 0 9 . 0 6 9 : 0 2 %
Or
| A US SI ^
IB
\M
ttf | ^ |
Current Directors
C:\Prograrn Files\MATLAB704Work
-r\
|E
[B
Shortcuts
How to Add
What's Mew
To cret started, select MATLAB
Help or Demos
1
0VR
+ Start |
15
File
D
+ ') MATLAB
Command
Window
Only
Simple
Short History Tall History Five
Panel
_______
Command
Window
Command History
C
Current Directory
c ^ Workspace
He P
'
Workspace
View Options
L+r-^V Financial
Derivatives Toolbox
16
a) Matlab 6
b) Matlab 7
Fig.I.4. Setarea vizibilitii tuturor ferestrelor:
Programele pot fi redactate ntr-un editor de texte i pe
urm copiat n rndul de comand folosind Clipboard-ul.
Exemplele din prezenta lucrare servesc pentru antrenare n
aplicrile MATLAB. In versiunea 6.1 era posibil copierea
chiar i cu simbolurile rndului de introducere ">>" sistemul automat le v-a omite, iar n versiunile mai mari
sistemul nu le omite i d eroare.
Care editor de folosit? Editorul intern a MATLAB, Notepad, MS
Word, redactorul intern al NORTON Comander sau FAR Manager. Ins
exist diferene ntre ele. MS Word este un redactor mai sofisticat i ceea
ce vedem noi pe ecran nu tot timpul v-a nelege MATLAB, pe cnd
celelalte editoare enumerate mai sus sunt editoare simple. Exemplul de
mai jos pare simplu, ns la inserare din MS Word n MATLAB v-a da trei
greeli (acest exemplu v-a fi analizat n capitolul 1.10).
x=10 - 2A3
Totui cel mai comod editor pentru MATLAB este redactorul intern
(incorporat) al lui, deoarece el are aceleai faciliti ca i linia de
comand, plus avantajele unui translator - executarea pas cu pas, setarea
punctelor de stopare a programului etc.
jnj _xj
Editor - D:\Temp\matlab2.m
File Edit lext Cell Tools Debug Desktop Window Help
a=l
b=a+l
?X
HI m HP m m
#4 /T
EB _lI
3
script
Ln 2
Col 3
OVR
17
Tineti minte:
Fereastra "Command Window" ofer posibilitatea de redactare
numai a ultimului rnd de comand. S nu v mire faptul, c cursorul -l
puteti muta n rndurile precedente i nu le puteti redacta.
19
20
1.4.1. Numerele
Pentru numere MATLAB folosete notaia convenional decimal,
n fa cu semnul plus sau minus iar partea zecimal a numrului se
desparte prin punct. Unele exemple a numerelor:
3
-99
0.0001
-9.6397238
Simbolul e servete pentru a scrie numerele n form exponenial,
adic indic puterea numrului zece. De exemplu, numerele 0.00215 i
2.15e-3 sunt echivalente. Numerele complexe se scriu cu ajutorul literei i
sau j.
>>2.15e-3
ans = 0.00215
>> 5*(2.2+3.9i)+0.8
ans = 11.8000+19.5000i_______________________________________
Toate numerele sunt stocate n seansul de lucru folosind formatul
lung specificat de IEEE - standardul virgulei mobile. Numerele cu virgul
mobil au o precizie finit cu 16 numere dup virgul, iar valoarea n
intervalul de la 10-308 pn la 10+308.
21
transpose); ( ) Specificarea
prioritii de evaluare.
inei minte:
Expresiile matematice se calcul conform regulilor de prioritate a
operaiilor i de la stnga la dreapta:
a*b
a*b/c este echivalent cu---------,
c
ns
a
a/b*c este echivalent cu * c.
b
5
1.5. Variabilele
MATLAB nu necesit declararea tipului sau dimensiunilor
variabilelor. Cnd MATLAB are nevoie de o variabil nou, programul
automat creeaz variabila i aloc memorie. Dac variabila deja exist,
MATLAB schimb coninutul ei i, dac e necesar, aloc spaiu nou. Ca
semn de atribuire a valorii sau a expresiei se folosete "=" i rezultatul
apare direct n fereastra de comand, de exemplu:
>> numstudents = 25
num students = 25____________________________________________
creeaz o matrice 1x1 cu numele numstudents i-i atribuie valoarea
25 n singurul ei element.
inei minte:
22
>> b=2.98+3.86i;
>> whos a b
Name
Size
Bytes
Class
a
1x1
8
double array
b
1x1
16
array
(complex)
Crand total is 2 elements using 24 bytes
In coloana Class este indicat tipul variabilei, n Bytes -numrul de
bii, pentru a pstra valoarea, iar Size conine informaia despre
dimensiune. Dup tabel e plasat un rnd cu numrul total al volumului de
memorie n octei pe care le ocup toate variabilele.
% a
=h m
Graphics Debug
\ Maine L.
Value
SB
1
1e-100
<3x4 double>
Desktop Window
Stack: Base
Size
Bytes
Class
1x1
8 8
double
1x1
96
double
3x4
24
Help
double
________________________________I
Fig. 1.7. Fereastra Workspace
2)
3)
5)
Tabelul 1.2
Funciile trigonometrice (argumentul se d n radiani)
sin, cos, tan, cot
Sinus, cosinus, tangenta, i cotangenta
sec, csc
Secanta, cosecanta
Funciile trigonometrice inverse (rezultatul se calculeaz n
radiani)
asin, acos,
Arcsinus, arccosinus, arctangenta i
atan, acot
arccotangent
asec, acsc
Arcsecanta, arccosecanta
Funciile hiperbolice
sinii, cosh, tanh,
Sinus, cosinus, tangenta i cotangenta
coth
hiperbolice
sech, csch
Secant i cosecant hiperbolice
asinh, acosh,
Arcsinus, arccosinus, arctangent i
atanh, acoth
arccotangent;
Funcie exi ponenial, logaritmii, funciile de putere
*
exp
Funcia exponenial
log, log2, log10
Logaritm natural, logaritmii n baza 2 i 10
pow2
Ridicarea la ptrat
sqrt, nthroot
Rdcin ptrat, rdcina de ordinul N
Modul, semnul i funciile pentru lucrul cu numere complexe
abs, sign
Modulul i semnul numrului
conj, imag, real
Complex-conjugat, partea imaginar i real
Funcii speciale a constantelor cel mai des folosite
3.14159265...
J
U
unitatea imaginar, V
eps
eroarea relativ, s = 2-52
realmin
cel mai mic numr real, 2-1022
realmax
cel mai mare numr real, (2 - s) 21023
Inf
Infinit
NaN
Nu este numr (Not-a-number)
inei minte:
La executarea funciei matematice argumentul se scrie n paranteze
rotunde imediat dup numele funciei.
Fie, de exemplu, c trebuie de gsit valoarea expresiei de mai jos
cnd x = 0.2 i y = -3.9:
27
c=
sin
(
4
0.1 y
1
3
cos
+
3
+
28
r
4 ^
sin nx
K3 J
(4 '
cos nx
+e
0.1y
29
1.8.1. Matricele
Pentru a introduce orice matrice trebuie de inut cont de regulile
urmtoare:
30
31
c=
5
11
6
12
c=
32
4
5
6
1
2
3
11
[2 5 8
14
11] [3
12]
15
18
35
26
27 28 29 30 31 32 33
c=
36 37 38 39 40 41 42
3
44
5
6
34
43
45
46
47
50 52
49
c=
51
53
"
5
54
55
56
"
"
8
"
6
9
57
_
>> c=[ [1 4] 7 10; [2;3] [5 8; 6 9] [11;12]]
58
59
60
61
rnd
62
63
66
67
c
70
71
74
75
0 64
65
.
7.
2
68 c 2
69
3
=
0.
.
9
4 72
73
.
2.
6
[0.1 0.5 - 3.7 8.1]
r
r 2 = [5.2 9.7 3.4 - 5.7]
77
In MATLAB n linia de comand va fi nevoie de scris
urmtoarele rnduri______________________________________
76
78
c=
34
79
80
81
82
84
85
89
>> a = 1:9
91 a = 1 2 3 4 5 6 7 8 9__________________________
92
Deoarece rezultatul operatorului colon este un vector
urmtoarea expresie este echivalent cu cea precedent:
90
93
94
95
>> a = [1:9]
a= 1 2 3
4 5
6 7
8 9__________________________
96
101
104
105______________________________________________________________________D
e exemplu:______________________________________________
106
>> 100:-7:50
107
100 93 86 79 72 65 58 51
>> 0:pi/4:pi
108_______________________________________________________________________0
0.7854 1.5708 2.3562 3.1416___________________________
109
110
117
118
119
c=
36
125______________________________________________________________________P
131
132
133
(1,1)
138
134
(1.2)
139
(1)
144
(2)
150
(2,2)
151
(1*n+1)
(1*n+2)
136
(1
137
,n-1)
140
145
(2,1)
135
(1,3)
141
142
(3)
(n
143
-1)
146
147
148
(2,3)
153
154
(1*n+3)
(n
)
(2
149
,n-1)
152
(1
,n)
(1
*n+n-1)
(2
,n)
155
(2
*n)
156
157
158
159 M(ij)
160
161
162
163
164
165
166
167
M(k)
168
169
(m,1)
174
(m,1)
175
((m1)*n+
1)
((m1)*n+
2)
170
171
(m,1)
176
177
((m1)*n+
3)
172
(
m,n-1)
178
((
m1)*n+n1)
173
(
m,n)
179
(
m*n)
180
181
182
183
184
186
37
187
191
192
(1,1
(1,2
(1J1
(1J1+1)
200
204
205
(2,1
(2,2
(2J1
(2J1+1)
213
226
217
230
218
231
(1-
(1-
(i1-
239
243
244
(1,
(1,
(i1J
(i1,j1+1
)
252
256
257
(1+
(1+
(i1+
(H+1J1
+1
)
265
278
269
282
270
283
(2-
(2-
(2-
291
295
296
(2,
(2,
(i2,j
(i2J1+1
)
304
308
309
(2+
(2+
(2+
(i2+1J1
+1
)
317
330
321
334
322
335
(m,1
(m,1
(m,j
(m,j1+1
)
(1J1-1)
(2J1-1)
(i1-1J11)
(i1J1-1)
(i1+1,j1
-1)
(i2-1J11)
(2J1-1)
(2+1J1
-1)
(m,j1-1)
193 194
(1J2-1)
206 207
(2J2-1)
219 220
232 233
(11J
1+
1)
(M-1J21)
245 246
(11J21)
258 259
(H+1J21)
271 272
284 285
(21J
1+
1)
(2-1J21)
297 298
02J2-1)
310 311(i2
+1
J2
-1)
323 324
336 337
(mj2-1)
195
196
(1J2
(1J2+1)
208
209
(2,j2
(2J2+1)
221
234
222
235
(1-
(M1J
2+
1)
247
248
(i1J
(i1,j2+1
)
260
261
(H+
(i1+1J2
+1
)
273
286
274
287
(2-
(i21,j
2+
1)
299
300
(i2,j
02J2+1
)
312
313
(2+
(i2+1J2
+1
)
325
338
326
339
(m,j
(m,j2+1
)
197 198
199
(1,n
(1,n
210 211
212
(2,n
(2,n
223 224
236 237
225
238
(1-
(1-
249 250
251
(i1,n
(i1,n
262 263
264
(1+
(1+
275 276
288 289
277
290
(2-
(2-
301 302
303
(2,
(i2,n
314 315
316
(2+
(2+
327 328
340 341
329
342
(m,n
(m,n
343
344
349
c=
38
354
360
362
374
375
376
39
378_________________________________________________________________________i
399
400
c=
40
413
415
416
417
41
Scderea
424 .*
nmulirea masivelor (element cu
element) ./
mprirea masivelor (element cu
element)
425 .\
mprirea la stnga a masivelor (element cu element) .A
Ridicarea la putere a masivelor (element cu element) Transpunerea
masivelor
423
426
427______________________________________________________________________D
x=
-1.2000
445
446
447
448
449
0.300
0
0.800
0
0.7
000
451
0.20
00
1.
450
3000
1.800
452
453
454
455
456
>> f
458
459
460
461
462
464
465
466
467
468
3.1365
0.0997
0.137
4
0.674
4
0
457
f=
-12.7922
463
c=
42
1.
2794
470
1.783
469
471
472
473
474
2
475
476
477
484
485______________________________________________________________________O
487 488
489
491 492
493
495 496
497
>>
b
'
490
ans
=
494
1
498
2
502
3
506
499 500
501
503 504
505
507 508
509
511 512
513
>>
c
'
510
43
ans
=
514
515 516
1
518
519 520
4
522
5
8
521
523 524
517
525
526_______________________________________________________________________10
11 12__________________________________________________
527
543
c=
44
transpunerea matricei;
2) calcularea sumei coloanelor a matricei transpuse;
3) transpunerea rezultatului primit._____________________________
545
>>
sum(a')',sum(b')' ans =
546
4
5 ans
= 6 15
24
547________________________________________________________________________3
3_______________________________________________________
1)
548
554
555
556
558
>> sqr(2)
559
560_______________________________________________________________________?
45
__
n versiunea MATLAB 7:
564
565
566
567
1.
2.
n versiunea MATLAB 6 :
dac exist o singur variant, atunci dup apsarea tastei <TAB>
sistemul ar fi terminat numele funciei necunoscute fr transferul
rndului.
dac variante sunt cteva i tasta <TAB> se apas doar o singur dat
atunci MATLAB d un sunet de avertizare
569
1.
2.
c=
46
3.
572
573
576
clea
577
581
574
clg
cloop
578
naxe
579
clust
580
cla
clos
584
clut
erdata
583
ch
clipd
587
ata
clab
591
elm
594
class
clutc
hplot_if
602
clrp
opup
606
clmo
598
clos
e_system
592
clos
ereq
595
clea
r
599
clas
sfin
603
clxb
ode
607
clru
prop
611clock
588
clean
582
clipboar
errormsg
d
585
clabe
586
cleanp
l
589
clutc
590
cliprollr
h_if
egions
593
cleanupcomment
596
cliptr
597
clrmenu
600
clear
601
clma
classi
605
clegend
case
604
fy
608
clyap
609
612
clust
613
615
616
>>
cle<TAB>
618
clea
619
clea
620
clear
naxe
np
622
clea
623
cleanupcomment
nerrormsg
626
625
>> cleanupc<TAB>
629
628
>> cl eanupcomment
617
610
clf
clc
er
614
clegend
621
m
clearcas
624
e
627
630
631
633
634
635_________________________________________________________________________M
47
639
640________________________________________________________________________E
c=
48
643
*} MATLAB
644
6 4 5
D [ ^ | ^ ^ f e
|?
|c
^^||
646 x =
10 2 3 ???>> x = 10
2?3I
647
Error:
function.
648
Hissing
variable
or
649
650
651
652
653
b) Matlab 7
Ready
49
a) Matlab 6
Fig.1.11. Simbolurile necunoscute n MATLAB
MATLAB are un ajutor foarte bogat. Comanda help prezint n
fereastra de comand lista diviziunilor sistemului de informaii. Pentru a
obine coninutul diviziunii trebuie de indicat help i printrun spaiu (loc
gol) numele ei, iar pentru a extrage informaia detailat despre o funcie
oarecare, trebuie de introdus n rndul cu help numele funciei:
5
655
656
COMMAND WINDOW
657
659
661
663
658
660
662
(1 +2 J
7 7 7 a = ( (1 + 2 )
a=(
Error:
Expression or statement is incorrectpossibly unbalanced
{,
or
[.
(,
664
666
665
667
a=(l+2)|)
0VR
668
669
670
50
673
674
675
676
v\
In versiunea MATLAB 7:
Acest ajutor n aceast versiune este mai
2
3
File
vji;
678
- n|
WINDOW
x
|
679
680 | a= n i +2]J
681
O
V
R
A
51
n0
avansat.
677
I JJ: COMMAND
COMMAND
OVR
a) perechea gsit b)
682
fr pereche
683
Fig.1.13. Exemplu cu perechile de paranteze.
684
686
693
694
695
696
697
698
I.
Descriei comenzile de baz n regimul de comand a
Programului
700
MATLAB.
699
701
702
52
703
704
Vari
an
ta
Expresi
ile
53
705
706
707
708
+ x
709
54
sin
2
720 (x +
x
+
ln
cos
y
2
715
cos y)
A=
,----------- + ln
710
711
712
716
717
713
(x+l
gy
l)
5 x + ln
718
714
y| (x - cos
719
x
736
737
738
739
740
cos
6
+
\ct
gy
7 2 1
722
728
735
x + cos2 y
729
x-cos
y + tgy
743
B1
8 x
744 sin y-ln y )
9 y
741
749 (sin
750
745
746
11
1.
(1x
cos y)
+ ln
13
755
756
757
758
V
B2 = ch
x + cos y
747
13 ,2.5
14
754
x +
12
748
y - lnl x|)
751
752
753
10 1 3
x.
3.1
742
730
731
732
733
734
+s
i
n
y
y)
723
724
725
726
727
55
x + sin3
759
sin2
x
;
760
761
762
763
764
= [x (1 + x 2) (1 +
x
) _J + ln |ctgy|
767
x
x (1 + x )(1 + 2 x )
2
765
H2 = arcsin
768
ln |
ctgy
16 x
+
cos
J x y-
15
18 V
17
ln y
56
- ln y|;
769
770
771
772
10 x
+tgy
773
57
xcos+
775
776
Z~ =
ct
h-
779
+ sin y
780
782
y )3
781
+sin y
V x2 +
cos2 y
778
777
19
58
783
784
785
786
787
790
788
792
794
23 +
ctgy + sin y x2 (1
791 25 V
Q1
6
789
+ 2 x2 )
(120 +2 \ \
795 2
y
21 x
793
22
2.1
796
24
100 x +
2.2
100 x +
= (x3
797
- cos y
+ x2 (|x| + |sin
y|)
798
^(x3 - cos y)
|x| (x + tgy )
(5 x2 + |sin y| )2'2
799
800
801
802
803
807
806
808
809
804
(50 x + |sin y| )
810
+ tgy)
805
26
1 /O
27
sin
59
1/3
4 '
2
x (x
811R2
=
sh
-
812
2x + sin2 y
yJ
cos y
813
(x + ln |tgy|)1.3 + |x|
y)1/3
60
x + ln |tgy| +
(2x + sin2
814
815
816
817
818
819
821
822
823
824
825
826
829
1/3
+ cos y
''
827
820
T=
(1 + 3x3)
830
828
831 (1 + 2x ) + cos y
832____ ________________________"
V
28
sin y+ln
arcsin (cos 2
833
(1 + 2x4)1/4
y) + sin
|x y
61
834
835
836
837
838
9
839
840
841
842
843
e sin y + e cos y
849
H
2
1.3
844
2. 5
847
848
+ cos2 y
850
+ sin y
851
852
+ 3
e sin y
+ e cos y
853
854
855
x + sin y
ln y
arcsin
29 V
V|x -
845
ln y
846
62
+ yj \x
856
857
858
sin
y;
859
860
861
862
x + ln
x + |ctgy
866
867
863
34 V
10
869
yl )3
876
2.5
A1
( x +lctg
+ 5
865
31
873
875
868
870
864
872
+ln
cos y
877
871
878
siny
35
879
2
x
+ cos2
yj
880
32 V
33
63
881
882
883
884
885
2.3
886
887
888
889
890
11
891
B1 =
x3 + tgy
892
893
897
(sin 902
+
904
903
905
sin y-37 j
ln x
36
894
906
sin
y
;
38 1
895
y - ln Ix|) 2.5
896
62
898
899
39
^|x 3 + tgy\
901
907
908
909
910
914
H=
x (1 + x )(1 + 2 x )
920
921
ln|ctgy
915
922
91112
912
913
42
916
917
918
2x + sin2 y
yJ
ln\ctg
41 x
y\ -
x + ln |tgy| +
cos y
^ = sh(x + ln |tgy|)1.3 + \x\ (2x + sin2 y)1/3
919
64
923
65
924
925
926
928
929
13
930
931
927
932
T=
1
9340
43
935
44
933
x
+tgy
(e x cos y + 3sin y)
arcsin (cos 2 y)
+1 x|
(1 + 2
66
936
937
938
939
940
943
944
x2)
Q1
947
949
2.1
948
950
945
941
14
942
45 2
946
x|
100 x
+ ctgy +
sin y
x2 (1 + 2 x2)
951
+
952
100 x +
(1 + ctgy
67
953
arctg-*-F=
954
46 x
l/2x - sin y x
+
x - ln y|
^/2x
- sin y
68
955
956
957
958
,\1/3 +
2
959
15
960
961
962
965
A2 = sh
967
(
(50
x2 + |
sin
y|)
! \4 '
963
47
978
978
978
978
972
+
y )3
cos
968
966 x - 969
cos y
970
+ ln
971
x
(x+t
gy)
973
974
975
x
cos y)
7 6
x
2
+
cos2 y
977
69
979
980
+s
i
n
y
981
982
983
984
985
986
16
(1+3x3
sin y+ln x
13
(1x+cos2 y
y)
1 . 3
2
B2 = ch- ( x 3
+sinx + cos y
+ln
13
x1.3 +sin3
70
1.
y
987
988
989
990
A=
991
9 9 5
H2 = arcsin
ln|
co
x2
993
x+
997
\ctgy\ j
994
17
(x+lctgyl )3
s y| V x +
48 +
cos y
996
yj \
x - ln y
+ln cos y +
yj \x
998
71
- ln y
j
999
1000
1001
1002
3
.
1
f
1005
1003
18
tgy
x3 +
sin y - ln
52
Z~
(
=
x
+sin y
1010
19
1030
x" +
1013
1014
2.3
+sin
1015
cth
1029
y
+
1016
1 0 1 7
x +cos2 y
1018
1031
1041
ln\ctgy
H1 =
2x)
1033
1034
53 f 54
1035
1036
1037
55 V
62
1042
58
1038
1039
1043
^(x3 - cos y)
57
1040
x (1
+ x )
(1 +
2x)
sin
y
;
tgy\
x2+
1008
1032
1023
1007
1009
1012
49 x
51
y )j
50 V
1006
1024
1025
1026
1027
1028
(sin
1019 1021
y - ln | +
x
x|) 2.5 1020 1022
1004 1011
1044
72
ln 56 x|
ctgy| -
1045
1046
1047
2
1048
1049
1050
1051
1052
1055
Z1 =
1056
+ tgy + cos y
1053
20
1054
73
74
75
76
77
78
79
80
81
60
1
0
1057
x + ln |tgy| + cos y
82
sJ2x
1058
(x + ln |tgy|)1.3 + |x|
83
1059
1060
1061
1062
1063
21
1064
1067
1065
1066
1068
|x| (x + tgy)
22
(5x +
x2 (x + tgy)
1069
1 / 0
/i
84
'
1070
62
l/2x - sin y
arctg-*F:
+
1071 yj \x - ln y|
sin y
85
x61 -x
-^2x -
1072
1073
1074
1075
x2)
1079 100 x + ctgy
1076
1077
65
1083
1081
x2 )
1084
1085
1082
1086
64 2 \ \
cos
y
100 x + ctgy +
sin y x2 (1 + 2
(x2 +
cos2
y )3
A2 = sh
22
1080
63 f
66
(1 + 2 2.1
1078
cos y)
+ ln
+sin
(x - y
1 0 8 7
+ cos2 y
1088
67 J
86
x2
1089
1090
1091
1092
1093
1094
1095
x;
1096
1097
(x + 2 x2) (1 + 3 x3)
87
1098
1102
1106
J
H2 =
23
arcsin x 2 + cos2 y
68 x
1101 1 1 0 4
yj \
70 x
sin
x - ln y
y 1105
1107
ln
1099
1103
1108
1109
1.3
1110
1100
69 V
88
(1
+3x)
1111
1112
1113
+
\x - ln
y
111 4
1115
1116
71V
ex
sin y + 2x
cos y
1118 200x
+y
1117
1120
1121
J
1119
89
1122 1123
+ ln sin y
\ex
sin y + 2x
cos y
1 1 2 5 200x
+y
1124
1126
24
90
1128
1127
x (1 + x)2 (1 + 2x)3 + ,
x (1
x) (1
2x )
72
=5
1129
91
ln ctgy
1130
1131
1132
1133
1136
1134
25
1135
1137
=
arct
g
%]x - sin( y)
ix -s/1
1138
1139
Vx - x
- sin( y)
73
92
^/ x
1140
1141
e x sin y + e
cos y ^ 1 +
1142
93
e sin y
+ e cos y
1143
1144
1145
94
1146
1+
sin y + sin 2
y + sin 3 y \
1147
95
1148
1149
1150
26
96
1151
1154
1152
y /i
1155
1153
yj
cos 2 y + sin 4 y +
(e~ x + e x ) 3 (sin 4 y +
74
cos 2 y - 2) 2
97
ex +
ex
1156
1157
1158
1159
1160
27
1161
1164
W=
ln y
1162
75f
1163
1165
1166
ln y i
1+
V
+tgy
98
R = sh ( (
+ln y) ch
1168 yl\x - ln y
1167
( x + ln
y))|x - ln y
1169
99
1170
1171
1172
1173
e sin y + 2 2.3
F = cos y
+ln sin y
1178 200x + y
J
1174
1179
R = sh ( (
28
( x + ln y x
+ln y) ch
1176
1180
yj \x ln y
- ln y
1175
76 V
fex sin
y + 2x cos y
1 1 8 3 200x +
y
1177
1181
100
1182
1184
1185
1186
1187
1188
29
1190
A=5
1191
x (1 + x)2 (1 + 2x)3 + 3 x (1 +
x)(1 + 2x
1192
1189
101
ln ctgy
1193
1194
1195
-^/cos2y + sin4y
+ 4e
+e
x
1196
102
1197
Q = ex sin y + e
cos y ^ 1 +
1198
103
e sin
y+e cos y
11 9 9
1200
1201
30
1202
1203
1204
1206
1207
W
1205
f1210
1+
+^
1208
1211 x tg
1212
ln y
x + t g
y
1209
104
1213
1214
1215
1216
1219
Varianta
1232
x2
-----------y ( x ) = x 2
+ ln I
1229
ex +1
1 1
y ( x) = ex sin x (x3 + 2)
1233
4
1236
5
1240
6
1244
1218
1221
1222
N=8
1224
I
nterval
ul
1217
1220
1223
1228
Funcia
>
1237
y ( x ) = ex ( x sin x + ln |
x|)
1241
[1,3 ]
1227
[n,2n]
1234
[
0.5,2]
1238
[
0.2,3]
1231
1242
1243
1226
1230
1246
8
1252
9
1256
10
1260
11
1265
12
1269
13
1273
14
1277
1235
N=8
1239
N=7
1247
7
1248
N=9
N=8
x
1245
N=6
N=7
y ( x ) = ( x + ln | x|) ch ( x +
ln | x|)
1249
1253
1250
1251
1,3 ]
N=5
1254
1255
N=7
+1)
1257
1261
y ( x ) = sin x ln (|x|3 + 2) +
1262
x 2 cos x
1259
N=8
L
12631264
N=6
2,
y ( x ) = ex (x2 sin x +
c/gx2)
1266
1270
[0,
1258
y ( x ) = ln |x| ( x cos x + ln |
x|)
1274
1278
2 J
[n,2n]
1268
[0.3,3]
1272
[1,3 ]
1276
1267
1271
1275
1279
N=7
N=6
N=8
12801281
15
1282
1284
1287
y ( x ) = x2 sin x (ln | x| + 4 )
1288
1291
1295
y ( x ) = x ( cos x2 + thx2)
x|)
1286
17
1290
18
1294
19
1298
1299
20
1303
21
1307
22
y(x)
= x2 ln x|
(1
1300
+1) + ctg
(1
x| + 1)
1304
1308
(1
+ arcsin x )
y 1313
x3 + 2) + x2
( x ) = cos
sin x
x ln (
1317
/ . sin x cos x
1311
1312
23
1316
24
1283
16
N=7
2, 2
y (x)
1318
[0.2,4]
1285
1289
1,3 ]
1292
[n,3n]
1296
[n,2n]
1301
[0.3,4]
25
1326
1327
26
1330
1331-----------------------------y(x) = x
27
x --------------------1332
x +1
1335
1336
y (x)
1337
1338 1 + -/=
1341
1342
1343y (x)
1344
=
1347
30
106
N=6
[0.2, n]
1328 [0, ]
3
1325
1324
N=8
1310
N=7
N=8
N=1
0
N=8
1329
N=9
[
1333
0,1]
1348
1302
1321
1349
1334
N=7
[
1340
0,3]
N=9
[
n,3n]
1346
[1,1]
1350
1345
+e
N=7
[
0,2n]
1320
.A
cos x
1297
1315
V1 +
sin x .
N=8
[n,3n]
1314
1339
28
29
sin x +
1293
1306
1319
1322
N=7
[n,3n]
1309
[1,3 ]
1305
x +1
1323
y (x) = ln(x + 1)V ex + e " x
N=6
N=1
1
N=7
1351
1355
1356
1357
1361
1362_______________________________________________________________________>
> figure(n);____________________________________________
1363
107
1367
1368
1374
1375
1376
1377
1378
n
determinarea coordonatelor punctelor pe axa absciselor.
Construirea vectorului xl cu elemente de pas constant se efectueaz
cu ajutorul operatorului colon. Mai departe trebuie de calculat
valorile f(x1) pentru fiecare element al vectorului xl i de scris
rezultatul n vectorul yl. Pentru construirea graficului funciei
trebuie de folosit funcia plot. Se indic argumentele xl i yl n
paranteze rotunde. Ordinea comenzilor sunt indicate mai jos
1379
1380
1381
1382
>> x1=[-2:0.05:2];
>> y1=exp(x1).*sin(pi*x1)+x1.A2;
1383_______________________________________________________________________>
> plot(x1,y1)___________________________________________
1384
108
1385
1387 -2
-1.5
1389
-1
-0.5
0
1388
0.5
1.5
1390
1391
1392
1393
1394
1395
1397
109
1398
1399
pas
const n indicarea scrii pe dreptunghi, adic punctele, care
vor fi folosite pentru a calcula valorile funciei. Pentru a genera
scara se folosete funcia meshgrid, care depinde de dou
argumente -vectorii care determin scrile pe axele x i y.
1401 Funcia meshgrid, creeaz dou variabile care sunt matrice
1400
1402
1403
>> [x3,y3]=meshgrid(-1:0.1:1,0:0.1:2);
1404
1408
110
0 -1
1412
0 -1
1413
1417
1418
1419_____________________________________________________________________G
1.5
1.5
0.5
0.5
(contourf) a funciei.
Numrul liniilor de nivel se indic n al patrulea argument,
1422
1423
111
1424________________________________________________________________________a
dugtor, de exemplu:_____________________________________
1425_______________________________________________________________________>
> contour(x3,y3,z3, 10); contourf(x3,y3,z3, 10);_______________
1426 n locul numrului liniilor se poate de indicat n form de
vector valorile lui z(x,y) pentru care trebuie de construit liniile de
1427________________________________________________________________________n
ivel (fig. 2.5):____________________________________________
1428
>> contour(x3,y3,z3,[-0.51 -0.25 -0.01 0.89])
1429_______________________________________________________________________>
> contourf(x3,y3,z3,[-3:0.3:3]) %sau setm pasul nostru_________
1430
1431
1432
-1
-0.5
0.5
-1
-0.5
1433
0 -1
77
0.5
1434__________________________________________________________________Su
1435________________________________________________________________________P
1439
1440
1441
x(t) = sin31, t
vectorul t,
1442
1443________________________________________________________________________a
1446
>> y2=sin(t).A3;
1447_______________________________________________________________________>
> plot(x2,y2)___________________________________________
1448
1449
-1
-0.5
0.5
-10 -10
1450
1451
1452
1453__________________________________________________________________Pentr
> plot3(x2,y2,unghiul)____________________________________
1456
1457
1458
1459
1460
1461_____________________________________________________________________L
1464
1465_______________________________________________________________________>
-2
-1.5
-1
-0.5
0.5
1.5
2-2
-1.5
-1
-0.5
0.5
1.5
a)
b)
Fig. 2.8. Graficul cu i fr suprapunere (hold on i hold
off)
78
79
115
>> figure(3);
%metoda 1
1472
plot3(x2,y2,unghiul)
1473
>> hold on
1474
>> contour3 (x3,y3,z3,[-raza:0.1 :raza]);
1475_______________________________________________________________________>
1476
1477
-2 -2
-2 -2
1478
1479
1480
1481
1482
1488
1489
>> subplot(2,3,3)
116
1490
1491
1492_______________________________________________________________________>
> surf(x3,y3,z3)_________________________________________
1493
1494
1495
1502
1503
1506
117
118
1508
1509
I4
Figure 1
V~\~V~
1510
1511
1512
^EIi
e> 1
Id
hq
Label
15131514
V
Label
1515
15161517
1518
Z
Label
1519
15201521
1522
T
itle
1523
15241 5 2 5
1527
1526
09
L
egend
15281529
1530
C
o lor bar
1531
15321533
1535
1534
0.8
L
ine
15361537
1539
1538
0.7
A
rrow
15401541
1542
T
ext Arrow
1543
1544
q2
Double Arrow
1545
0
8
'
6
15461547
1549
1548
0 51
T
ext Box
15501551
1552
R
ectangle
1553
15541555
1557
1556
0.4
E
llipse
15581559
1560
A
xes
1561
15621563
1564
0.3
L
ight
15651566
15671568
1.4 1.2
0
2
0.1
1569
0.2
D 4
G
0.6
1570
D8
1571
2
D.4
0.6
0.8
0.
119
a) b)
Fig. 2.10. Figura cu 3 axe (a) i adugarea datelor la axe (b).
1572
1573
1574
120
1577
~ o & H a |[ | ( *t . e t .n | i - e | D B | a H
1578
80
1579
1580
2 0 -2 -4,
1581
1
1582 1.5 0 1.5
1583-----1 '--------------- ---------------- --------------------------- ----------------1584
2
1
1
lj
-3t-------------1---------------------!!
0
-1
1585
1
0
'
2
1
1586
1588
1589
1590
1593
81 i i i
82 I I I
1594
3
83
1
0
1
121
2
3
1595
-2
-1.5
-1
-0.5
0.5
1.5
1607
1608
m
1612
1613
c
1616
1617
r
1620
1621
g
1624
1625
b
1628
1629
w
1632
1633
Roz
16091610
o 1611
Cercule
Albalbastru
16141615
Cruciuli
Rou
16181619
Verde
16221623
Albastru
16261627
Alb
16301631
Negru
16341635
Tipul liniei
1636
1640
Dreapt
1643
1644
Punctat
1647
1648
Linie-punct
1639
1651
Linie
ntrerupt
1652
x
+
*
s
d
v
Semnul plus
Stelu
Ptrat
Romb
Triunghi cu vrful n
jos
16371638
A
Triunghi cu vrful n
sus
Triunghi cu vrful n
<
stnga
16451646
Triunghi cu vrful n
>
dreapta
16491650
Stelu cu 5 coluri
16411642
16531654
h 1655
1656
122
Stelu cu 6 coluri
5
1658
1659
Unele palete a culorilor sunt prezentate mai jos (v. fig. 2.13):
bone - seamn cu aspectul gray, dar cu un ton uor de culoare
albastr;
colorcube - fiecare culoare se schimb de la nchis pn la
deschis;
cool - nuane de culori alb albastre i purpurii;
1660
1663
1
Axa X
a) b) c) d) e) f) g) h) i) j) k) l)
1665
Fig. 2.13. Graficul funciei n rezultatul aplicrii
comenzilor: a) colorbar; i colormap cu paletele b)gray; c)bone;
d)colorcube; e)cool; f)copper; g)hot; h)hsv; i)jet; j)spring; k)summer;
l)winter.
1664
1666
1667
123
1668
1670
1671_______________________________________________________________________>
124
Rezultatele experientei
1674
1675
1676
1677
1678
1679
1680
1681
1682
\\
-1.5
-1 -0.5
0.5
1.5
125
-0.5
126
-2
-1.5
-1
0.5
1.5
a) grid on b) title
Fig. 2.14. Graficul funciei n rezultatul aplicrii funciilor
1694
a) grid on; b) title.
1692
1693
1700 4
127
1701
1703
1702
functia 1
funcia 2
128
1704
1705
129
1706
1
1712
1709
>-
1707
1708
0
1713
X
N
/
1710
V*
1714
<
1711
130
1715
1719
1716
-1
1717
1718
1720
-2
131
1721
\\
1722
1723
-0.5
-2
0
0.5
1.5
-1.5
-1
-0.5
0.5
1.5
-2
-1.5
-1
1724
Axa X
a) b)
1726 Fig. 2.15. Graficul funciei n rezultatul aplicrii
funciilor: a) legend; b) xlabel, ylabel.
1727 Pentru a descrie cteva grafice se aplic comanda legend.
nscrierile legendei, luate n apostrofe se indic n argumentele funciei
legend, ordinea crora trebuie s coincid cu ordinea graficelor. Ultimul
argument indic poziia legendei (implicit 1):
1728 -1 n afara graficului n unghiul din dreapta de sus a ferestrei
graficului
1 se alege poziia cea mai bun n limitele graficului, astfel ca
mai puin s acopere graficele
1 n unghiul din dreapta de sus a graficului
2 n unghiul din stnga de sus a graficului
3 n unghiul din stnga de jos a graficului
1729_______________________________________________________4
n unghiul din dreapta de jos a graficului.______________________
1730_______________________________________________________________________>>
legend('functia 1','functia 2')_______________________________
1725
1731
1735
1739
1740
132
1753
1754
1755
1757
1758
1759
133
1762
1763
86
85
verti
cal
amb
ele
pe
84
1764
1765 f(x)
i g(x)
ambe
le pe
axele
1767 din
88
17681769
1773
1779
. .
. J
87
17701771
1772
17761777
1778
1780
1781
.
.
17821783
/
ambele
pe axele
de sus
.
.
17841785
1786
1
17871788
17891790
1791
~y
1792
1793
1794
Var
i
a
n
1795
1796
Funcia 1
1797
1798
134
Funcia 2
1799
mentul
Seg
t
a
1800
f (x) = sin x
1801
1802
g(x) = sin2 x
1
1804
1805
f (x) = sin x2
1803
e [e
2^,3^]
1806
g (x) = cos x2
1807
1810
g (x) = (x -1)4
1811
x e[-
2
1808
3
1812
f (x) = x3 + 2
1809
2
x +1
1813
f (x) = ln x2
4
1816
1817
f (x) = 2 x3
1,1]
1814
g (x) = x ln
x
1818
g (x) = 2 x5
1821
f (x) = x2
8
1832
1833
1828
1822
g (x) = x3
1823
3
18531
f ( x ) = x sin x2
1855
f ( x) = x2
sin x
1842
f (x) = sin3
(x)
1846
2
18491
( x2 + 1)
1837
1
18451
f ( x) = x2 ln
0
18411
g (x) =
arccos x
g (x) = ln
1830
x +1)
g (x) = x sin
1834
x
g (x
1838
1839
) = x (ln
+1)
x
g (x) = cos3
1843
x
g (x) = x3
1847
cos x
g (x) = x2 +
1851
x+2
1825
9
18361
f (x) = x2
cos x
1850
1854
f ( x ) = x ln
4
18571
5
18611
6
18671
7
18711
x e[x e[-
1,1]
f (x) =
arcsin x
f (x) = cos2
1829
x,
e[-
0.5,0.5]
6
1824
0.2,10]
1819
5
1820
1815
1826
(1
g (x) = x2
cos x
1858
f (x) = 2ex
sin x
1862
f (x) = 5e~x
cos x
f ( x) = x2
sin2 x
1872
f ( x) = e x sin x2
1868
g (x) = x2
cos3 x
1863
/
x
sin x
1864
g (x )=
1865
x
g (x) = x
1869
cos x
1873
g (x) = x
1859
135
1827
x e[-
1,1]
1831
xG
[0.2,8]
1840
x G [n,6n]
1835
1844
x G [-
n,2n]
1848
x G [-
n,3n]
x G [0.2,4]
1852
1856
x G [-
n,4n]
1860
x G [-
1,3 ]
xG
[0.1,4]
1866
1870
x G [-
1,3 ]
1874
x G [-
8
18751
1876
f ( x) = x
cos x
f (x) =
2arcsin x
f(x)=
1884
3e~ x sin x
f ( x) = x2
1888
sin x
f (x) =
1892
3arccos x
1896
f (x) = x sin
x
1900 2
1901
1879 2
0
1883 2
1
1887 2
2
1891 2
3
1895 2
1880
6
1908 2
7
1912 2
8
1916 2
9
1920 3
1,2 ]
x G [2n,2n]
1882
x G [1,2 ]
1886
xG
[0,3]
1890
xG
1878
f (x) = xthx
f ( x ) = (x 2
+ 1)sin x
1905
f ( x) = e ~x
sin2 x
f ( x) = 3 x
1913
cos x
f (x) = x2
1917
cos x
1921
f ( x ) = x2
(ln x + 2)
1909
1,1 ]
g (x) = x
x G [-
1899
1,3 ]
x G [-
1903
1,2]
x G [-
1907
1,3]
(x2 + 2 )
1910
x G [-
1894
5
1904 2
cos2 x
g (x) = x
1877
cos2 x
g (x) = x2
1881
cos x
g (x) = ex
1885
cos x
g (x) = x
1889
cos x
g (x) = e~x
1893
cos x
1898
g
1897
(x ) = x
(ln x
g (x) = x2
1902
cos x
g (x ) = ln
1906
x G [-
1911
n,3n]
cos x
g (x) = x2
cos2 x
g (x) = x
1918
sin2 x
g (x) = ex
1922
sin x
1914
1915
xG
1919
x G [-
1,3]
x G [-
1923
1,2 ]
1924
1925
1926
Var
ia
n
t
1927
1928
Funcia
5
136
S
egment
ul 1
1929
1930
egme
ntul 2
a
1931
1932
z (x, y) = sin x e -
1
1935
1933
1936
z (x, y) = sin x ln y
1934
[0,2;r]
1937
x
G [0,2^]
[0,1]
y
1938
G
[1,10
]
1939
1940
z (x, y) = sin2 (x - 2 y) e -y
3
1943
1944
2 xy
4
1947
1948
5
1951
y)
- x
z (x, y) = e
)sin( xy)
1952
4
(x + y
1941
[0,;T ]
x
G [ - 1,1]
1946
x
G [0,3]
1950
1954
1945
1949
1953
1956
x y +2xy-3
1957
z (x y)
1958
1961
=
x + y +1
1962
z (x, y) = e cos (x - y)
1966
8
1965
9
1969
1970
z (x, y) = 2 x cos x ln y
10
[0,4]
1960
[-
y
G[-
x
G [-1,1 ]
1967
x
G [-2,2]
1963
1971
3,3]
2,2]
-x
1,1]
G[-
1959
y
G[-
[-
2,2]
1955
G[-
1,1]
2 2
1942
1,1]
1964
G[-n,n]
1968
[1,1]
G
y
G [1,5
1972
1973
1974
11
1977
-x
z (x, y) = e (x + y ) cos
(xy)
1978
12
1981
13
1985
z ( x, y) = cos (x + 2 y2) ln
(| xy| + 1)
1982
1986
z ( x, y ) = 2 x sin ( xy ) ln
137
x
G [-1,2]
1975
x
G [ 0,n]
1979
1983
[1,1 ]
G
1987
1976
[2,3]
G
1980
[1,1 ]
G
1984
[1,2 ]
G
1988
(y + 2 )
14
1989
15
1993
17
2001
1991
G
(xy )
1992
1996
[-
n, 2 n]
1995
z ( xy ) = ex [cos ( xy ) + xy
1999
[ 0,1]
2003
[0,n]
1994
16
1997
1990
[1,1 ]
G
1998
z ( xy ) = x sin ( x ) ln y
2002
18
[1,1 ]
G
G[N
, 2 N]
y
2000
[2,2]
G
2004
G
[1,5
]
2005
19
2009
2006
2010
20
2013
21
2017
22
2021
23
2025
24
2029
25
2033
26
2037
27
2041
2007
[-2,2]
2011
z ( x, y ) = 2 x sin ( x + y ) ln
(| y + 2 )
2018
+
2022
z ( x, y ) = (1 + xy ) [sin (xy )
2016
2020
x
G [-1,2]
2024
2019
2023
2027
2031
[1.5,2]
138
[0,2]
2028
[-2,2
2032
[-1,3
2035
[-1,1]
2039
2043
2036
[2,2]
G
2040
(xy )
2042
cos (xy )]
2038
[2,2 ]
(xy )
2034
[1,1 ]
x)
2030
G [0.5,1.5]
[1,1 ]
x]
2026
2015
[1,1 ]
2012
[1,1 ]
2014
2008
[0,1]
2044
(1 xy|
28
[0.5,2]
2)
z ( x, y ) = 2 sin ( x + 2 xy )
cos (3 xy )
z ( xy ) = 2 yu cos ( xy ) ln
2051
(xy )
2045
2046
29
2050
30
2054
2047- X G ,
2048
[ 2
2
[-1,3
2049
2052
[1,3 ]
2053
[ 0.5,
2]
G
2056
2057
2058
2062
2063 Sfat
practic.
2064 nainte de lansarea redactorului intern trebuie de schimbat
catalogul (directoriul) curent.
2065
139
2075
2077
2078
EDIT
2079
2080
FILE
VIEW
DEBUG
DITERNPV
RIATLAB
2083
WINDOW
Z]
2081
ALL FILES
2084
ILE TYPE
2089
% \ . rn
2094
^ Andrew,
asv
2098
E Et:
2082
2099
0^
M
P
2114
-file
rnyfun.rn < L
2105
1197 KB
ditor
Autosa...
2 1 1 3 0^
2100
1 KB
DF File
2109
2095
1 KB
-file
2104
2090
1 KB
ditor
Autosa...
Andrew, m
2103
^ Lucrri
laborator M...
2108
^
myfun.asv
2085
2086
2087
2091
11.09.2
006 15:12:01
2096
08.11.2
006 10:29:00
2092
2101
2102
LAST
MODIFIED
SIZE
-file
2093
tt
HELP
S>
L.
2088
DESKTOP
2110
1 KB
2115
1 KB
08.11.2
006 9:56:09
2106
16.11.2
006 14:01:21
2111
22.11.2
006 10:22:57
2116
22.11.2006
D
ESCRIPTIO
N
2097
2107
2112
2117
9:38:06 J
2118
2119
2120
2121
2122
2125
140
2126______________________________________________________________________E
g MATLAB Editor
2132
2133
2135 p-To run this file, select one of the following (* Change
MATLAB current directory C Add directory to the top of the
MATLAB path C Add directory to the bottom of the
MATLAB path
2136
2137
'OK^ 'l
Cancel
2138
2139
2140
2143
141
function argument_de_ieire=Nume_funcie(arg_de_intrare)
2149
2150
2151
virgule) :
function argument_de_ieire=Nume_ funcie(argument_de_intrarei,
argument_de_intrare2,...)
2152
2154 function
inei minte:
Toate funciile se pstreaz n M-fiiere cu acelai nume.
2157
2158________________________________________________________________________E
142
2164________________________________________________________________________f
2171
143
2174
2179
2180
este corect.
0.4
0.35
0.3
0.3
0.25
0.2
0.2
0.15
0.
1
0.1
0
0.05
0
0.2
0.4
0.6
0.1 0
0.8
0.20.40.60.8
a)
b)
Fig. 3.4. Graficul obinut cu plot (a) i fplot (b)
2181
2182
2183
2187
144
>> figure
2188
2189_______________________________________________________________________>
> fplot(,myfiin',[0,1])_____________________________________
2190
2191
3.4, b)).
Nu este greu de construit graficul unei funcii parametrice. Fie
c trebuie de construit graficul isteroidei x(t) = cos31, y( t ) = sin31 , t G
[0,2;r]. Trebuie de determinat vectorul t, apoi valorile lui x(t), y(t) de le
introdus n vectorii x i y i de folosit plot:
2192
2193
>>
t=[0:pi/20:2*pi]; >>
x=cos(t).A3; >>
y=sin(t).A3;
2194
2195_______________________________________________________________________>
> plot(x,y)_____________________________________________
2196
2202
2204
2205 I.
2206
Funcia
2208
2209
145
2210
Segme
ntul
V
aria
nta
2211
2212
2213
2215-----------------------/ ( x ) =
2217
*
e [0, l ]
1
2214
ll-10sin2bzic
2216
x
E
[0. 05 ,1
]
2218
sin
2220
/2
2219
2221
\kx +
IX
2222
E[0 ,1]
sin
- 20;
^
2224
2223
4
2231
1
f (x ) =
2228
arctg(1/ (1.1 + sin5;zx)) 23
2232
2233
2237 2238
e [0 ,l]
2239
*
e [0, l ]
2242
2243
/ (*) = CO S -j---------------------------- 7
2236
*e[0,l]
2234
f
( x ) = sin
2235
2225
{GK ?
2240
2241
f(x
e[0 ,l]
) = sin
2JT
2244
2245
f ( x ) = 3sin ,
8
2247
9
2252
10
1
22582 2 5 9
f ( x ) = 2 x sin6nx + e 2
x G [-1,1
]
2257
x
2254
[0.05,1
]
x cos6n x
2260
x
G [0,1]
2
2261
xG
[0.05,1]
2251 x G [0,1]
2246
2262
v 7
14- 12sin21nx
2263
[0.05,1
3
146
]
22642265
2266
2267
>in
x
G [0,1]
23nx f -
sin21nx
f
2270
(x)=
sin
2271
2268 2269
1
5
2273
arctgx
x
G [0,1]
2272
22742275--------------------f
6
7
( x ) = - -x
1 2276-------------------------------------arcctg
2277
1.2 + sin7nx
2279 2280
f
2282 2284 2286
1
( x ) = 2281
1
x
2283
2sir
x
f V
2285
2278
x
G [0,1]
2287
x
G [0,1]
f(x)=
3sin30n;
2290
22882289
+ x2
2291
x
G [0,1]
8
2292 2293
1
9
2297
2294
2295- -3n
2298
(x)=5
cos -------arctgx
x
G [0,1]
v 11
2296
)
22992300
2301
x
G [0,1]
0
2302 2303
2
1
(x)=
3co
2304
2307
2309
2310
2305
s
2306
2311
x
G [0,1]
2308
23122313
2314
x
147
23152316
2318
2327
2328__f
13
2326
x
G [0,1]
15 - 11sin50nx
(x)
2(?xsin7nx +
cos7nx
23302331
23332334
7
2
2
9
2339
2338
2329
x
G [0,1]
2332
8
23362337
2322
x
G [0,1]
6
2
2317
f (x)=
2325
+cos23
=
2
2321
f 25nx
(x )
2323
sin
2320
2319
2324
[0,1]
x
G [0,1]
3
2
x
G [0,1]
2335
x
G [0,1]
2340
x
G [0,1]
sin30
nx
+
sin
25
n
23412342
f ( x ) = sin
x3 - arctgex
2343
x
0
G [0,1]
2344
II. De scris file-funcia xy(t) i file-funcia, la care parametrii
de intrare sunt valoarea pasului i numrul figurii. De construit
graficul traiectoriei plane a punctului material cu ajutorul lui plot
pentru diferite valori ale pasului. De construit graficul cu ajutorul
lui comet.
2345
148
V
arianta
2346
2347
x (t), y (t)
149
2348
2349
2350
[
0,4^]
2351
x(t)
= t - sin t
y( t ) = 1 - c o s t
2352
2353
x ( t ) = 2 sin t - - sin
2t
2354
[
0,3^]
2357
2355
2356
y( t ) = 2 c o s t - jcos
2i
2358
2359
x ( t ) = 9 sin ^--^sin
^-t
2360
[
0,4^]
2363
2361
2362
y(t) = 9cos-^ +
^cos-^ ^
10
2
5
10
2364
2365
[
0,4^]
2366
(t) = cost.
y( t ) = sin(sin
t)
2367
2368
2369
2370
2372
2373
2377
2378
0,2n
]
y( t ) = sin t
2376
2374
2375
2371
0,2n
]
y( t ) = s sin
f
2379
x()
0,4n
]
= i ( i - 2 x ) ; y( t )
= sin t
2380
2381
2382
x (t) = t2
0,5n
]
2384
2385
x ( t ) = 2cos t + ^
2387
cos 2t; 3
2386
y ( t ) = 2sin t +sin
2t
150
0,4n
]
2388
2389
2390 [
x (t) = 2e-t
sin t y (t) = 3e
0,4^
-1
cos t
2391
2392
1
2395
2393
2
2398
2396
x (t) = 3sin t
y (t) = 2cos( sint)
2399
0,4^
]
2397 [
x (t) = el cos t
0,3^
2394 [
2400 [
x (t) = t (1 -
0,4^
2401
2402
2403 [
x (t) = te-1
0,4^
2404
5
2407
2405
2406 [
x (t) = 2t cos
2408
]
2409 [
x (t) = t +
sin 2t y (t) = 2e
0,4^
0,2^
_t
cos t
2410
2411
2412 [
x (t) = 2cos( t
0,2^
2413
8
2416
2415 [
2417
x (t ) = 2ln( t +1)
2420
0,2^
9
2419
2414
2418 [
]
2421 [
x (t) = t (1 +
cos t) y (t ) = 2t (1 +
sin t)
151
0,3^
0,2^
2422
2423
2424
x (t) = el sin
0,*]
2t y (t ) = t (1 + cos
t)
2425
2
2428
x (t) = 2sin
2426
y (t )
= (t + l)
1/2
2427
[
0,n]
2431
[
0,n]
sin
t
2432
4
2435
x (t ) = ( t2 +1)
5
2438
2433
2436
x (t) = t sin t +
2439
x (t) =
[
0,2n
]
2437
[
0,2n
]
2440
[
0,2n
]
2434
3sin (t -1)
2441
2442
x (t) = t (l -
2443
[
0,3n
]
2t
2444
8
2447
2445
(t) = t cos2t
2
x (t) = 3sin
2448
(arccos t); y ( t )
2sint
2450
2451
2452
+ 1)
[
0,3n
]
2449
[
0,4n
]
2446
2453
0,2n
]
2454
152
2455
V
ariant
a
2456
2457
2458
2460
2461
sin t ; z ( t ) = 2t
22462 x(t) = el cos t; y( t ) = el sin
t; z ( t ) = 1.5t
2463
2464
32465
2466
2467
sin t ; z ( t ) = 1.2t1.3
4 2 4 6 8
^
x(t) = e -t cos t ; y ( t ) =
n
t 1 . 9
2469--------------------x(t) = 9sin
sint ;
2470
10 2 10
2
4
7
1
1
1
9
2472
y ( t ) = 9cost + cost ; z ( t ) = 1.5t1.2
2473
10 2 10
[0,4n]
[0,2n]
[0,4n]
2474
[ 0,3n
]
2475
52476
2478
t; z (t) = 2t1/2
6 2479
x(t) = cos t ; y ( t ) = sin(sin t );
2480
z ( t ) = 2t1/3
2481
72483
2484
2482
x(t) = t - sin t ; y ( t ) =
2486
x (t ) = t cos2t; y (t ) = sin t + ln (t
+1); z (t ) = 2t
2488
92489
t; z (t ) = 1.4t
2491
12492
1/3
(t ) = 1.2t
2477
[0,2n]
[0,4n]
[ 0,3n
]
2487
[0,2n]
2490
[0,4n]
2493
[ 0,3^]
2494
1
2497
2495
x (t ) = t (1 - cos2t); y (t ) = t
2496
sin2t; z (t ) = 1.3t
1
2498
2499
2500
[0,2^]
2501
3
2504
4
2507
2512
12502
cos2t; z (t ) = 2t
1
2505
x(t)
2503
[0,2^]
1/3
2506
[0,2^]
z (t ) = 1,51
1
2511
2508
= cos2 t ; y ( t ) = (t
2509-------------x ( t )
+1) sin t ;
2510
z (t ) = 2>/?
1
2513 x (t) = 2sin (cos t); y (t) = t cos
t ; z (t ) = 3t
1
x (t) = ^ sin2t; y (t) = t (1 +
cos t); z (t ) = 1.3t
x (t) = t (1 + cos t); y (t) = 2t (1 +
1 2519
1/2
2515
2516
[0,*]
2514
[0,*]
2517
1/2
2518
sin t);
= 2t13
1
2523 x (t) = t - 2cost; y (t) = 1 sin t; z (t ) = 1.5t
2
2526 x ( t ) = 2cos t + cos 2t; 3
y ( t ) = 2sin t + -sin2t; z (t ) = 1.4t
2520
2522
9
2525
2/3
2527
1
2533
22531
2536
3
2539
1/3
t); z (t )
= 1.7t
3 /2
= e cost ; y ( t ) =
3sin(cost ) ; z ( t ) = t
2
x (t) = t (1 - sin t); y (t) = 2 cos t; z (t ) = 1.6t
2
x (t) = te sin t; y (t) = 1 2537
2524
[0,5*]
2529
[0,4*]
t; z (t ) = 3t
22 5 3 4
[0,2*]
z (t )
2528
2530
2521
x(t)
2540
2532
[0,4^]
2535
[0,4^]
2538
[ 0,3^]
2541
[0,4^]
2 /5
2542
2543
-1
154
2544
[0,4^]
cos t; z (t ) = 1.3t2
22546
2545
t ; z (t ) = 1.5t
2
= t + sin2t; y (t ) =
2e cos t; z (t ) = 2t
2
x (t) = 2cos(t +1); y (t) = 3sin2t
+1; z (t ) = 3t
2
x (t) = 3e cos (2t); y (t) =
2sin 1; z (t ) = 2.1t
3
x (t ) = 2ln( t +1) sint; y (t ) =
3cost; z (t ) = 1.7t
x (t )
_t
2551
5 /3
2552
1.7
2554
_t
2555
2557
4 /3
2558
[0,4^]
3/5
22 5 4 9
2548
2547
3 /2
2550
[0,2^]
2553
[0,2^]
2556
[0,2^]
2559
[ 0,3^]
2560
2561
2562
2563
2564
2565
2567
2568
2569
jy
(x)dx ,
155
2574
2575
2576
2577
2579
Exemplul 4.1.
2578
2580
2581________________________________________________________________________c
omand:________________________________________________
2582 >> quad('(exp(x)-1)',0,1,1.e-5)
2583 ans=
2584_____________________________________________________________________0.7
183__________________________________________________
2585
2586
2587
2589
2590
>> q=quad(@exp,0,2,1.e-4)
q
2592 =
6.3891
2593 >> q=quad(@sin,0,pi,1.e3) q=
2591
2594_____________________________________________________________________2.0
000__________________________________________________
2595
156
2597
2598
2599
2600
2601 2n 2n
2602
2603-----------------------------2604
2605 0 n
JJ
II
[2 y sin( x) +
]dxdy
2cos(y)
2606
2607
2608
2609
Exemplul 4.2.
2610
2611
funcia:
2612
2613
2614
2616
2617
2618
2619
2620
>> result=dblquad(@integr1,pi,2*pi,0,2*pi)
result=
-78.9574
2621
157
2623
2626
2627
reguli:
o F - numele fiierului EDO, adic a funciei de t i y, care
2628
red
un vector-coloan. o tspan -vector, care determin
intervalul de integrare [to
2630
tfinal].
2631
o yo - vectorul condiiilor iniiale;
2632
o p1, p2,... - parametri arbitrari care se transmit n funcia F; o
options - argument creat de funcia odeset, de obicei pentru a
determina greeala relativ i absolut;
2633o T , Y - matricea soluiilor, unde fiecare rnd corespunde
timpului redat n vectorul-coloan T;
2629
2634
158
2640
Exemplul 4.3.
2641
2643
2644
2645
/2 =
y'1 = y2;
1000*(1-y12)*y2-yL nainte de
2647
2649_______________________________________________________________________v
dp1000.m______________________________________________
2650
function dydt = vdp1000(t,y)
2651
dydt = zeros(2,1); %a column vector
2652
dydt(1) = y(2);
2653_______________________________________________________________________d
ydt(2) = 1000*(1-y(1)A2)*y(2)-y(1);_________________________
2654
2655
159
2656________________________________________________________________________o
2661
2663
2664
2665
time t
time t
a)
b)
Figura 4.1. Graficul funciei pentru u=1000 (a), i u=1 (b)
2666
2667
2668
2669
2670________________________________________________________________________c
2677
160
2680_______________________________________________________________________y
label('solution y');________________________________________
2681
2682
2683
2684
2685
2686_______________________________________________________________________s
olverDE.m______________________________________________
2687 function dy = solverDE(t,y)
dy(1) = f1(t, y(1), y(2),..., y(n)); dy(2)
= f2(t, y(1), y^... y(n));
2688
2689_______________________________________________________________________d
2691_____________________________________________________________________2).
2697
2699
2700_______________________________________________________________________>
161
2702
2704
2705
(fig. 4.2):
Figura 4.2. Scrierea denumirilor graficelor
2706
c
o
c
o
o
t
n
o
t
n
1
2
1
2
30
10
time t
a) manual - funcia gtext
15
20
10
time t
b) automat - funcia text
15
20
2707
2708
2709
2710
2711
2712
2715
2717
2718
2720
Figura 4.3.
(
i
90
(
2
' Mx = Gx + Fx,
unde,
2721
2723
89
163
Mx = Mg c(x + Ssl)
2724
2725
(3
)
(11)
164
2726
2728
165
2729
2730
(4
)
(11)
166
2731
2732
167
0 = Mg - cSst ^>Sst =
Mg / c.
2733
2734
(5
)
(11)
168
2739
x+
k x = 0.
(7)
2742
Aceasta este forma matematic a ecuaiei (6), care se numete
ecuaie diferenial liniar, omogen de ordinul doi cu coeficieni
constani. Soluia poate fi obinut n trei forme.
2741
2
2743
I.
Forma complex. Cutm soluia n forma x = est.
Introducem aceast expresie n (7), simplificm la est i obinem
ecuaia caracteristic pentru ecuaia diferenial (7)
2745
s2 +
k2 = 0,
(8)
2746
rdcinile creia sunt imaginare s1 = ik i s2 = -ik . Soluia
general
2744
a ecuaiei (7) va fi
2747
x=
2748
c1 e + c 2 e
2749
(9)
II.
2753 (c
1 + c2 ) = c1
i(c
1 - c2 ) = c2
2755
169
2754
(1
0
)
Obine
2756
m soluia n forma
x = c' cos kt + c2 sin kt.
2757
2758
(12)
2759
2760
2761
2763
2765
2773
2774
(11)
170
-S 5 t = a sin a , 0 =
a cos a ,
2775
171
2776
(15)
2777
172
2779
3n
2780
2781
2782
x
=
-0,05cos14 m
.
2783
2784
(1
6
)
173
2785
2786
2787
2788
2789
2790
2794
2795
Rezolvare.
2797
Placa efectueaz micare de translaie, toate punctele ei se
mic la fel. Considerm acum punctul B - punctul plcii co nectat
de arc.
2796
2798
fora
elastic F i fora de rezisten R. Fora R este orientat opus
vitezei. R =-qO v = -bv, b = qO am notat coeficientul de
proporionalitate. n cazul nostru b = 0.5 Ns/m. Alegem originea
axei x n punctul O, care coincide cu punctul B n poziia de
echilibru a corpului (plcii) i ndreptm axa vertical n jos. Ecuaia
diferenial a micrii punctului B a plcii se va scrie sub forma:
2799
174
' M&
2800
=
2801
unde
Gx + Fx + Rx,
G
Mg ,
x=
=~C ( x
(1)
+
Sst ) ,
x =-bvx
bx , i deci
Mx =
2802
0, x
(2)
0, x = 0,
2804
bx + cx = 0 .
Introducem notrile c/M matematic a ecuaiei (3)
2
2 8 0 6 x + 2 /zx + k x = 0 .
2805
2807 X A
2808
2809
28102811
r
2812 28132814
1
2815 2816
2817
175
Mx +
(3)
2818
t'+T \t,
2819
t'+2
T
176
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2833
x = ae -ht sin(k * t + s ) .
(6)
2835
Amplitudinile oscilaiilor, care ating nfurtoarele ae~ht se
micoreaz cu timpul i oscilaiile se numesc amortizate (fig. 4.6).
Condiiile iniiale: cnd t = 0, x0 = -Sst = -0,05m , x0 = 0. nlocuim
2836
n (6) i obinem
2837 x0 = -0,05 = a sin s, x0 = 0 = -ah sin s + ak * cos s,
(7)
2834
177
2838
a=
2839
2841
k2 h
o
2840
178
2842
=0,0516
m,
2843
2846
2847
4.5. Oscilaii
forate
n
prezenta
forei de
2
8
4
8
I
2849
rezisten
2850
\///////////////////////A
/////M"/'///
[6])
2851
De un arc, coeficientul
rigiditate al cruia c = 19,6 N/m,
sunt suspendate o bar magnetic
masa de 50 g, care trece printr-un
solenoid, i o plac de cupru cu
masa de 50 g, care trece printre
polii unui magnet (fig. 4.7). Prin
solenoid circul curentul i =
20sin8^t A, care creeaz o for de
interaciune
dintre
cmpul
magnetic al solenoidului i bar de
0.016;ri N. Fora de frnare a
de
2852
2853
cu
de
2854
Figura 4.7.
2856
2857
2858
2859
2860
Rezolvare.
Alegem axa x ca i n problema precedent, dar acum asupra
punctului B acioneaz nc o for, fora perturbtoare Q (fig.
4.7):
Qx =
0.016;ri = 0.32;rsin8;zt.
(1)
2862
In acest caz ecuaia diferenial a micrii punctului B va avea
aspectul
2861
179
2863
MX +
bX + cx = Q0 sin pt,
(2)
2864
introducem notrile c / M = k 2,
b / M = 2h,
Q0 / M = H 0 .
Atunci
2865
(2)
devine:
X+
2//X + k2x = H0 sin pt.
(3)
2867 Ecuaia (3) a devenit neomogen, fiindc partea din dreapta
este diferit de zero. Soluia ecuaiei difereniale (3) este suma soluiei
generale x1 a ecuaiei omogene respective i a soluiei
2868
particulare x2 a ecuaiei neomogene (3). In problema
precedent am
2869
determinat k = 14s_1, / = 2.5s_1 i pentru / < k am obinut
soluia ecuaiei omogene
2870
x1 =
-ht
a1e sin(k * t + s x ) ,
(4)
2866
2871
2875
2876
180
^(k2 - p2 )2 + 4h2p2
2877
k - p
(6)
H0 = 10m / s2 .
2878
2879
2880
n rezultat avem
x=
2881
'ht sin( k * t
sx)
A sin( pt -fi)
(7)
2887
2888
5x
0cm/s.
2889
2892
2893
2894________________________________________________________________________
forate
cu
rezisten
1):
_______________________________________________________
2895_______________________________________________________________________o
frl.m __________________________________________________
2896_______________________________________________________________________f
unction dxdt=ofr1(t,x);____________________________________
2897 dxdt=zeros(2,1); % a column vector
dxdt(1)=x(2);
181
2898
dxdt(2)=-5*x(2)-196*x(1)+1000*sin(25*t);
2899
2900
2901
2902_____________________________________________________________________2).
2908
Timpul de
tranziie
2909
2910
2911
0.5
1
0.5
1.5
2
1
2.5
3
1.5
3.5
4
2
a) pe intervalul [0 4]
2912
2913
b) doar pentru
timpul de tranziie
Figura 4.8. Graficele funciei
2914
2915
2916
2918_______________________________________________________________________y
label('Deplasarea x, cm')__________________________________
2919
2920
2921
ariant
a
2924
1
2925
2926
2928
2929
J(1 - 2 y )3V l + (1 - 2 y )4
-1
dy
2930
2935
2941
2949
2954
2927
1/2
2931
2932
J y"2(
0
2936
2965
jx
2938
2942
2944
2950
2951
2955
V5
-1/3
dy
0
9
jV1 +4ydy
2960
j( z 2 +1)4
0
2945
2946
2947
2948
2952
2953
V5
2958
j* dx
j
V1 + 5 x
0
j(
z2 + 2 + + 3)2/3
dZ
2963
2961
fx "1/3( x 2 / 3 + 1 )1/3dx
2962
2966
2940
x 4 + 1dx
j(1 + 5 x)
[ u du
2934
2943
2957
9
2
2939
2937
2956
2959
y3/2 + 1)1'2 dy
J(1
2964
- 5 x2 )2^3 + (2
V 1 - y (1 W 1 - y )
2968
2969
5/9
2
ydy
-j1 (y 4 +y 2
+ 1)1/3
+ x )3 dx
2967
2970
2971
2972
2975
2976
)
j
2973
(y 2 + 2 ) 1/ 4 y3'5 dy
2974
(y
2983
2984
\1/3
^ (z3 - 2)
5 2
dz 1 (z 2 + z + 1)2
3
+ 3 y + 1)3 (y
2 )dy
2977
2982
1 (x
2978
2979
2980
J /
2981
1.2 (u
+u+2)
2985
\1/3
. (u + 1) du
2
1/2
-1
+ x + 1) x dx
-1/2
2986
183
\1/5
(z2 + z + 1) dz 1
2987
2988
j(u3
2989
(z4 + 3)2
3
+ 3u1/3 + 2)
u2du
2992
2990
2993
2994
2998
jp/(x
3004
2997
1/4
\3/2
+ x) x dx
2999
j{y'
3000
2/3
)1 / 3 dz
3.(u3 +
3001
+ y3 )1/5 y indy
u3/ 2 )1/3 du
3002
j x3/2 (V x4
3005
J (y
3009
V2
\1/5
3003
+ 2 ) dx
j
1
/ 2
(u2 + 2)
4 (z3/ 2 + z)1/5
3006
/3 \
1/3 1 ( z 3+ 2)
5 /3
+ 1)1/3 y
dy
3010
(z 3 z
dz
3012
1 3
3007
3008
3 (x1/3 + x2 )1/5 dx
(x3 + x1'2)
-2
3
2995
2996
2991
3011
(x4 + 3x1/3) dx
(x2+ 4)
1.5
1 3013
(x + 1)x
7l3
dx 1.2
3/2
3014
(u3 +
3015
Jx3/4 (x2
3016
2)
/3 + 2 )dx
3017
3018
(y 2 / 5 +
9
3023
} y7 / 3 (y 3 + y3 / 5 )dy
0.5
3020
3021
J x7/3yl x3.
23030 Jx
3031
3 z 3'2 (z 3+ 13 dz
3028
0j5 (z + 2 )1/3
3027
+ xdx
0.2
3026
3029
(z 3 / 4 +
3024--------------3
3025
3022
3 /2
(x 3 + x1/3 )dx
0
184
3032
2 y"3
(y2 + 2) dy
(y 3 /2 + 1)
3033
3034
23 0 3 5 Jz 4 / (z 2 + 3)dz
3
2
3038
3036
1.2
3039
3040
J x (x + 2 )dx
7/3
3041
3043
3037
3 u3/2
3042
2 (y3/ 2
3046
5
3051
3048
3049
2 3052
3062
1/5
3060
3065
30672
1/3
J( u 3
3068
3069
3071
+ 1) udu
1/5
3 (y4,5
03
+ y"3
f dy
(y + 1)
3/2
2/7
1/3
(x 2 + 1)
0J1
(y / + 1)y2dy
5 2
(y 3 + 2)
3070
0.1
30723
3073 Jx
3074
(y 4 /3 + y ) dy
3061
0.2
3064
3066
3056
J z7 / (z 4 + 1)1'3 dz
23063 J x 3 /5 (x 2 + 1)1/3 dx
3055
3059
x7 / + 1)3/2 dx
3050
Jx1/3 (x3 + x 3 / 2 ) dx
23058
0.2
3053
3054
3057
x3 + 2
3047
+ 2)y2dy
0.5
4/3
(u1/3 + 1)du
z3 / + 2 ) ' dz 0 1 (z 2
5
1 3
+ 1)
3/4
7 /3
(x + 1)3/4 dx
3075
dy J
y 3 /2 (y 3 + 2 ) /
13
(y 2 + 2)
3076
3077
3078
3079
Varianta
1 3080
3081
3083
3082
3084
3085
3086
3087
3091
Integrala dubl
jj [e + ln( xy )] dxdy
jj [4x3 Vy 3 y x ]1/ 4dxdy
5 11
x y
2/3
4 10
11
2yf
00
3089
j*j
3090
-1 -2
3092
31
3088
2 1
[4 y y /x + cos y ]1 / 3dxdy
2
185
3095
3093
jj( e
3094
3096
20
32
3103
3098
21
3100
42
3101
jj (6 x
3102
3104
31
0.2 0
3110
3114
1
3120
x y dxdy
3
+ yex +y
dxdy
1/2
3112
3113
0.1 1
3118
cos y
1 3121
3122
3124
3123
3125
1/4
10.2
jj[
dxdy
jj
dxdy
1/3
32
3119
)-\j
10.1
13115 3 1
^ xex+y + x3 cos y
1
34
3116
3117
y + 8 xy
0.1-1
3108
3109
3111
j j ^sin x
3106
3105
3107
+ cos y ) dxdy
jj( x + y )3ex+ydxdy
3097
3099
+x
1 1
II[3x y
43
+ 2x ln (xy) dxdy
21
32r
3128
UI (x + 2y) + x
arcsin (xy)
3129
3126
3127
3130
4
3134
5
3138
3132
3133
3135
3139
xdy
1/2
x 3 /2 (x + y ) + yex+y 1 dxdy
2
1 1
2 1
3/4
IU (x
0.2 0.1
+ 2y) + x
arcsin (xy)
3140
3144
21
23
3136
3137
6
3143
3131
1/
3141
3142
xdy
21
21
186
1/
7
3147
3145
3146
3148
3149
3150
3152
8
3151
II_x3y
+ sinx ex+ydxdy
10.2
21
II[ x 3 /
10.3
3155
2 y+
x
ydxdy
3156
x4/ 3 (x + y )2 +
xex+y
3153
I
3154
0.5
3157
II[x
3158
32
1/3
3159
sin (xy) + x 2 /3 y 7 /2
y+ydxdy
3160
3161
1
3164
3162
21
II(x
32
3163
0.7
+ x1/3 y 2 / 5)
e x +ydxdy 1 1
3 1 6 8
2 3165
31
1 / 3
(x + x y
3169
+ xy sin x
3 7 / 2
3170
xdy
3166
I
3167
3171
3172
32
3173
3174
3175
3176
x y 1/3
112
21
3180
3182
10.1
|| (3 x y
ll[x
3179
10.5
3181
1/3
dxdy
3177
3178
II[ xy e + x y dxdy
|| xy sin (xy) ln xex+y
1/3
32
3 1/3
32
3183
3184
y3dxdy 2 1
23 1 8 5 ||^sin x + yex +y
dxdy
10.1
3186
3187
32r
3190
3188
3191
3192
2 1
32r
1
3194
3196
3198
3199
3197
xdy
||
2 1
x4 /3 (x + ) 2 +
x
ydxdy
3201
xex+y
3200
1/
(xy)
3195
xdy
(xy)
3189
3193
1/
0.5 0.4
3202
3203
V
ariant
a
3204
3210
3214
1
2
3205
3206
Ecuaia diferenial
5
y + 2 y +14 y =
800cos(20t),
3215
y + 3.2 y + 3 y = 7cos(15t),
3211
3208
3207
3209
3212
3213
10
3216
12
3218
3219
3220
16
3222
3226
3230
3234
3238
y + 6 y + 2.4 y =
3223
4.5cos(12t),
3227
y + 5.2 y + 4.7 y =
5.8cos(10t),
3228
y + 6.2 y + 4.3 y =
3232
3231
6.5cos(14t),
3235
y + 2.2 y +1.4 y =
-6.5cos(18t),
3239
y +1.3 y + 20 y = 1000
188
y (0),
y (0),
cm
3224
13
-10
14
3236
7
3240
cm/s
2
3217
3
3221
-2
3225
-3.2
3229
-3.2
3233
-4.2
3237
1.4
3241
3242
3246
0
1
3250
1
1
3254
2
1
3258
3
1
3262
4
3266
5
3270
6
3274
7
3278
8
3282
9
3286
0
3290
1
3294
2
3298
3
3302
4
3306
5
3310
6
3314
7
3318
8
3322
cos(18t),
3243
y +1.4 y +10 y = 1100
cos(20t),
3247
y +1.5 y + 22 y = 1050
cos(17t),
3251
y + 2 y +12 y =
1120cos(19t),
3255
y +1.2 y + 28 y = 840
cos(17t),
3259
y +1.4 y +10 y =
880cos(18t),
3263
y +1.8 y + 20 y = 720
cos(20t),
3267
y +1.4 y +18 y =
680cos(21t),
3271
y +1.2 y +19 y =
590cos(17t),
3275
y +1.8 y +14 y =
640cos(18t),
3279
y +1.6 y +18 y =
710cos(19t),
3283
y + 2.2 y + 22 y = 500
cos(18t),
3287
y +1.4 y +18 y =
620cos(19t),
3291
y + 2 y + 24 y = 690
cos(20t),
3295
y +1.4 y + 20 y = 580
cos(19t),
3299
y + 2.2 y + 24 y = 660
cos(18t),
3303
y +1.8 y +18 y =
560cos(16t),
3307
y + 2.1y +16 y = 620
cos(19t),
3311
y + 2 j + 22 y = 740
cos(20t),
3315
y +1.4 y + 20 y = 800
cos(21t),
3319
y +1.6 y +12 y =
600cos(19t),
3323
y +1.4 y +18 y =
189
8
3244
9
3248
7
3252
8
3256
7
3260
-9
3264
8
3268
10
3272
-8
3276
7
3280
-9
3284
8
3288
9
3292
7
3296
8
3300
-6
3304
9
3308
-8
3312
9
3316
7
3320
8
3324
1
3245
2
3249
-1.5
3253
2.5
3257
3
3261
1
3265
-1.5
3269
1.8
3273
2.1
3277
2.4
3281
1.5
3285
1.2
3289
-1.4
3293
2
3297
1.2
3301
1.6
3305
-1.4
3309
2
3313
-1.8
3317
1.4
3321
2.2
3325
9
3326
580cos(18t),
3327
y + 2.2 y + 20 y = 620
cos(17t),
3330
9
3328
-8
-1.1
3329
-1.2
3331
Universitatea Tehnic a
3332
3339
3340
RAPORT
3341
3342 la
Varianta 5
3344
3345
3346
3347
3348
3349
3350
3351
3352
A
ndeplinit:
Sergiu Olaru
3353
st.gr.TI-041
3354
3355
3356
A controlat:
3357
3358
3359
3360
3361
3362
3363
3364
3365
3366
3367
3368
3369
Chiinu - 2007
190
Valeriu Mihailov
3370
3371
3372
3379
3380
3381 la
RAPORT
Varianta 5
3383
191
A ndeplinit:
st.gr.TI-041
3384
3385
ergiu
Olaru
3386
3387
3388
Val
eriu
Mihailov
cont
rolat
:
192
3389
D 3392
R
ata
ezultat
verific
ul
rii
apreci
erii
Nr.
lucrrii de
laborator
3391
3390
Lucrar
ea nr.1
3398
Lucrar
ea nr.2
3402
Lucrar
ea nr.3
3406
Lucrar
ea nr.4
3394
Se
mntura
profesorul
ui
3393
3395
3396
3397
3399
3400
3401
3403
3404
3405
3407
3408
3409
3410
3411
3412
3413
Chiinu - 2007
ANEXA 3.
Secvenele de caractere folosite la grafice
3414
3415
3416
beta
\
gamma
3442
\
delta
3448 \epsilon
3436
3427.
\upsilon
_ j \>
....
3431
3432
3433
ia
\phi
3437
3438
Ir
\chi
3443
3444
5
\e
\psi
3449
\omega
3453
zeta
3459
3454
3455
I c,
3460
3461
3423
3428
Se
Sy
Se
Sy
3426
(;
3430
3422
3424
\sim
3429
~
3434
\leq
3435
3440
\infty
3441
3439
1X
3445
1V
3450
I <w
3456
1r
\
clubsuit
3451
\
diamondsuit
3457
\
heartsuit
3446
Gam
ma
193
Sy
\alpha
3421
3425
3420
3419
Se
3418
3462
3463
3447
3452
3458
3464
eta
3465
theta
3466
|
\
varthet
a
3478
\
iota
3484
\
kappa
3490
\
lambda
3496
\
mu
3472
\Delta
I1
3469
3468
6
7
\Theta
1e
l e
3473
3474
1a
YLamb
da
3479
3480
ii
\Xi
3485
3486
it
\Pi
3491
3492
1k
\Sigma
3497
3475
3481
Ia
3487
1n
3493
l2
3499
Y
3471
..
Meftar
3477
\
uparrow
3488
\
rightarrow
3494
\down
arrow
3500
\circ
3483
3476
1A
3498
spadesuit
3470
Meftri
ghtarrow
row
3482
3489
3495
A
3501
Upsil
on
3502
nu
3503
\Phi
3505
<t>
3504
3506........................\
3507
pm .............
1 V
3508
xi
3514
pi
3520
rho
\
sigma
3532
\
varsig
ma
3538
\
tau
3545
\
equiv
3526
3552
Im
\
otime
3558
3509
3510
I "t
\Psi
3515.
3516
_j
..
f
t
..
3511
IV
3517
\Omega
1Q
3523
3512........................ \
3513
geq..............
3518
\
propto
>
3519
3524
\partial
3525
3530
\bullet
3531
3521
3522
1P
\forall
3527
3528
1 ff
\exists
3533
3534
1c
\ni
3539
3540
3541
3542
3 5 4 3 ................\
3544
\cong
! ~
3547.........
3548
3551
\approx
........
3549
neq............|
3 5 5 0 .............\
aleph........_|
1 T
3546
i;
3553
I3
3559
!&
3554
3529
3535
3555
Re
3560
194
!;
\oplus
3536
3537
\div
3556................
..\wp
.............
3561
\
oslash
3557
[p
3562
I0
s
3563
cap
3569
supse
t
3575
int
3564
\ r\
3570
\ ZD
3576
If
\
rfloor
3582
3588
3581
3587
lfloor
3593
perp
3599
cup
wedg
e
3572
\
subsete
q
3577
\
in
3571
3578
3583
3584
lceil
L
3594___
______
3600
:
cdot
\
supsete
q
3573
\
subset
3567
3579
3585
3595
3590
3591
3596
times
3601
rceil
3612
3607
11
3613
vee
3618
angle
3625
3619
3614
varpi
\
rangle
3620
!(
Ia
3580.....
I...O
.....
3586....
....
3592
z
...
3598
\
prime
3597
3604
\0
3603
3605
I 0
3609
3610
surd
3608
3574
__ l V
A
3606
| r>
ldots
neg
3602
\o
3568
nabla
3589
1J
3566
I_J
3565
3615
3621
3611
mid
\
copyrig
ht
3617
3616
13
3624
>
3628
Bibliografie
3630
1.
., MATLAB 6 : , , ,
2001.
195
2.
3.
4.
5.
6.
7.
8.
9.
., .,
MATLAB. , ,
, 2001.
.., MATLAB -
. . .
.
N.V. Butenin, I.A. Lun, D.R. Merkin, Curs de Mecanic
Teoretic, Vol. 1, 2. Ed. Lumina, Chiinu-1993.
V. Caraganciu, M. Colpagiu, M. opa, Mecanica Teoretic,
Chiinu, tiina, 1994.
I.V. Mecerski, Culegere de probleme la Mecanica Teoretic.
Ed. Lumina, Chiinu-1993.
Andrew Knight, Basics of MATLAB and Beyond,
Chapman&Hall/CRC, 2000
Patrick Marchand, O.Thomas Holland, Graphics and GUIs
with MATLAB. Third edition, Chapman&Hall/CRC, 2003
The MathWorks - MATLAB Tutorial
http://www.mathworks.com/academia/student center/tutorial
s/launchpad.html
3631
3632
3633
3634
Bun de tipar
3635
Formatul hrtiei
60x84 1/16
Hrtie ofset. Tipar RISO
3636
Tirajul
500 ex.
Coli de tipar 7,5
3637
Comanda
nr.
3638
3639
3640
3641
196
3642
3643
ION BALMU
ANATOLIE
CASIAN
VALERIU MIHAILOV
3648
3649
3650
3651
3652
3653
LUCRRI DE LABORATOR LA
3654
94
Chii
nu
2007