Sie sind auf Seite 1von 3

1

LAB REPORT NO: 01

Submitted to: Maam Engr Sania Saeed

Submitted By: Sajjad Ahmad

Roll No: 07

Subject: Control system

Date of submission: 3rd April 2015

2
Title:
To find the values using different trigonometric, exponential and complex functions
using matlab.

Aim of the lab:


To become familiar with the commands of different function using matlab.

Table of observations:
S.
N0

Class no=x1=7

Class no=x1-1 =6

Class no=x1+1=8

9
10
11
12

MATLAB
Command
for different
functions
sin(x)
cos(x)
tan(x)
acos(x)
asin(x)
atan(x)
sinh(x)
cosh(x)
tanh(x)
asinh(x)
acosh(x)
atanh(x)

sin(7)= 0.6570
cos(7)= 0.7539
tan(7)= 0.8714
acos (0.7)= 0.7954
asin(0.7)= 0.7754
atan(7)= 1.4289
sinh(7)= 548.3161
cosh(7)= 548.3170
tanh(7)= 1.0000
asinh(7)= 2.6441
acosh(7)= 2.6339
atanh(7)= 0.1438 + 1.5708i

sin(6)= -0.2794
cos(6)= 0.9602
tan(6)= -0.2910
acos (0.6)= 0.9273
asin(0.6)= 0.6435
atan(6)= 1.4056
sinh(6)= 201.7132
cosh(6)= 201.7156
tanh(6)= 1.0000
asinh(6)= 2.4918
acosh(6)= 2.4779
atanh(6)= 0.1682 + 1.5708i

13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

sec(x)
csc(x)
cot(x)
asec(x)
acsc(x)
acot(x)
sech(x)
csch(x)
coth(x)
asech(x)
acsch(x)
acoth(x)
exp(x)
power(a,b)
log10(x)
log2(x)

sec(7)= 1.3264
csc(7)= 1.5221
cot(7)= 1.1475
asec(7)= 1.4274
acsc(7)= 0.1433
acot(7)= 0.1419
sech(7)= 0.0018
csch(7)= 0.0018
coth(7)= 1.0000
asech(7)= 0 + 1.4274i
acsch(7)= 0.1424
acoth(7)= 0.1438
exp(7)= 1.0966e+003
power(2,7)= 128
log10(7)= 0.8451
log2(7)= 2.8074

sec(6)= 1.0415
csc(6)= -3.5789
cot(6)= -3.4364
asec(6)= 1.4033
acsc(6)= 0.1674
acot(6)= 0.1651
sech(6)= 0.0050
csch(6)= 0.0050
coth(6)= 1.0000
asech(6)= 0 + 1.4033i
acsch(6)= 0.1659
acoth(6)= 0.1682
exp(6)= 403.4288
power(2,6)=64
log10(6)= 0.7782
log2(6)= 2.5850

sin(8)= 0.9894
cos(8)= -0.1455
tan(8)= -6.7997
acos (0.8)= 0.6435
asin(0.8)= 0.9273
atan(8)= 1.4464
sin(8)= 1.4905e+003
cosh(8)= 1.4905e+003
tanh(8)= 1.0000
asinh(8)= 2.7765
acosh(8)= 2.7687
atanh(8)= 0.1257 +
1.5708i
sec(8)= -6.8729
csc(8)= 1.0108
cot(8)= -0.1471
asec(8)= 1.4455
acsc(8)= 0.1253
acot(8)= 0.1244
sech(8)= 6.7093e-004
csch(8)= 6.7093e-004
coth(8)= 1.0000
asech(8)= 0 + 1.4455i
acsch(8)= 0.1247
acoth(8)= 0.1257
exp(8)= 2.9810e+003
power(2,8)=256
log10(8)= 0.9031
log2(8)= 3

1
2
3

4
5
6
7
8

3
29
30
31
32
33
34
35
36

sqrt(x)
log(x)
conj(x)
angle(x)
abs(x)
real(x)
imag(x)
isreal(x)

sqrt(7)= 2.6458
log (7)= 1.9459
conj(7)= 7
angle(7)= 0
abs(7)= 7
real(7)= 7
imag(7)= 0
isreal(7)= 1

sqrt(6)= 2.4495
log(6)= 1.7918
conj(6)= 6
angle(6)= 0
abs(6)= 6
real(6)= 6
imag(6)= 0
isreal(6)= 1

sqrt(8)= 2.8284
log(8)= 2.0794
conj(8)= 8
angle(8)= 0
abs(8)= 8
real(8)= 8
imag(8)= 0
isreal(8)= 1

Conclusion:
In above table the output values of trigonometric functions is in radians, if we
want to get the values in degree then we will write d at the end of each command i.e sin(x)
will give result in radians while sind(x) will result in degree. One another thing is that, that the
domain of inverse sine and cose is [-1 ,1] so using legal approach I use my roll number with
fraction.

Das könnte Ihnen auch gefallen