User talk:Yarynara Sebrio Suharyadi

From ccitonlinewiki
Jump to: navigation, search

Yarynara Sebrio Suharyadi

Nama : Yarynara Sebrio Suharyadi

Jurusan : Teknik Mesin Paralel Universitas Indonesia

NPM  : 1706070816

Biografi

TTL  : Jakarta, 23 September 1999

Hobi : Bermain Tenis

SMA  : SMP-SMA khusus olahragawan Negeri Ragunan Jakarta 116

Python

contoh pengerjaan python

x1 = 0

dx1 = ('0.1')

dx = float (dx1)

x2 = x1+dx

Fx_1 = ((x2**2)-1) / (x1-1)

n = 1

error = 0

print ("n x F(x) error")

print (n," ",x1," ",Fx_1," ",error)

while x2<1 :

Fx_2 = ((x2**2)-1) / (x2-1)

error = ((Fx_2-Fx_1) / Fx_1)

Fx_1 = Fx_2

n = n+1

print (n," ",x1," ",Fx_1," ",error)

x2=x2+dx