Metode Perhitungan

2
>> %Nama: Putri Watulingas >> %Tugas: Algoritma >> x=2; >> y=-4; >> z=5; >> >> w1=x-2*y+z w1 = 15 >> >> w2=x^2-3*z w2 = -11 >> w3=sqrt(x+y+(z)^2) w3 = 4.7958

description

Matlab

Transcript of Metode Perhitungan

Page 1: Metode Perhitungan

>> %Nama: Putri Watulingas

>> %Tugas: Algoritma

>> x=2;

>> y=-4;

>> z=5;

>>

>> w1=x-2*y+z

w1 =

15

>>

>> w2=x^2-3*z

w2 =

-11

>> w3=sqrt(x+y+(z)^2)

w3 =

4.7958

>> w4=(x+y)/sqrt(x+z+1)

Page 2: Metode Perhitungan

w4 =

-0.7071

>> w5=(x^2+y^2)*(x+y)

w5 =

-40

>> %By:Beny Manialup