UTS Eric Delbert

From ccitonlinewiki
Revision as of 01:30, 24 October 2019 by Eric Delbert (talk | contribs) (Created page with "Nomor 1 from math import * g = 9.81 m1 = int(input("Massa 1: ")) m2 = int(input("Massa 2: ")) m3 = int(input("Massa 3: ")) u_1 = eval(input("u1: ")) u_2 = eval(input("u2: ")...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Nomor 1

from math import *

g = 9.81 m1 = int(input("Massa 1: ")) m2 = int(input("Massa 2: ")) m3 = int(input("Massa 3: ")) u_1 = eval(input("u1: ")) u_2 = eval(input("u2: ")) u_3 = eval(input("u3: ")) alpha = eval(input("sudut alpha: ")) a = eval(input("percepatan: ")) c = sin (alpha) d = cos (alpha)

t1 = m1*g*(c-u_1*d) - m1*a t2 = m2*g*(c-u_2*d) + t1 - m2*a t3 = m3*g*(c-u_3*d) + t2 - m3*a

print("tegangan total: ",t3)

Nomor 2