Tugas Pertemuan 2

From ccitonlinewiki
Revision as of 21:26, 19 February 2019 by 115.178.195.208 (talk) (Created page with " ---- == Headline text == Membuat algoritma dan flowchart dari : ax + by = c px + qy = r Dan membuat program pythonnya Jawaban : == Headline text == Algoritma persamaan l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Headline text

Membuat algoritma dan flowchart dari : ax + by = c px + qy = r

Dan membuat program pythonnya

Jawaban :


Headline text

Algoritma persamaan linier dan eliminasi :

Cara 1

1. Menentukan permisalan nilai a, b, p, q, c, dan r 2. Membentuk matriks dua dimensi persamaan 1 dan 2

  misal, A : [a,b] dan B : [p,q] serta C : [x,y]

3. Membuat bentuk A * B = r dan B * C = r 4. Jika C = [0,1] maka didapat y = range[a,b] a,b E 0-9 5. JIka C = [1,0] maka didapat x = range[a,b] a,b E 0-9 6. Selesai