Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

NAMA : I Made Widhi Suryawan

NIM : 19050104

KELAS : Praktikum Teknik Pemograman C

Tugas Praktikum 1

1.)

A.octave:5> 14.8^3-6.3^2/(sqrt(13)+5)^2

ans = 3241.3

B.octave:13> 45*((288/9.3)-(4.6)^2)-(1065*exp(-1.5))

ans = 203.71

C.octave:15> (24.5+(64/3.5^2)+8.3*12.5^3)/(sqrt(76.4)-(28/15))

ans = 2362.6

D.octave:17> ((5.9^2-2.4^2)/3)+((log10(12890)/exp(0.3))^2

E.octave:0> cos(7*pi/9)+tan(7/15*pi)*sind(15)

ans = 1.6965

F.octave:2> (sind(80))^2-((cosd(14)*sind(80))/nthroot(0,18))

ans = -Inf

2.) diketahui x=5.1 dan y=4.2

A. x=6.7

octave:7> x=6.7

x = 6.7000

octave:8> (0.01*(x^5))-(1.4*(x^3))+(80*x)+16.7

ans = 266.64

B.

octave:13> x=6.7

x = 6.7000
octave:14> sqrt(x^3+(exp(x))-(51/x))

ans = 33.250

3.)Diketahui x=5.1 dan y=4.2

a.octave:16> x=5.1

x = 5.1000

octave:17> y=4.2

y = 4.2000

octave:19> (3/4*x*y)-((7*x)/(y^2))+sqrt(x*y)

ans = 18.669

b. x=5.1

octave:19> (3/4*x*y)-((7*x)/(y^2))+sqrt(x*y)

ans = 18.669

4.) A. a=12,b=5.6,c=(3*a)/b^2,d=(a-b)^2/c

a = 12

b = 5.6000

c = 1.1480

d = 35.681

octave:26> (a/b)+((d-c)/(d+a))-((d-b)^2)

ans = -901.98

B.octave:27>a=12,b=5.6,c=(3*a)/b^2,d=(a-b)^2/c

a = 12

b = 5.6000

c = 1.1480
d = 35.681

octave:28> exp(c-d/a-(2*b))+log(c-d+b/a)

ans = 3.5283 + 3.1416i

You might also like