Difference between revisions of "Tugas After UTS"
Eric Delbert (talk | contribs) |
Eric Delbert (talk | contribs) |
||
Line 9: | Line 9: | ||
Cara 2 | Cara 2 | ||
+ | |||
+ | [[File:Casecase.mp4]] | ||
+ | |||
+ | Algoritma 2 | ||
+ | |||
+ | from numpy import * | ||
+ | |||
+ | g = 9.81 #percepatan gravitasi | ||
+ | m1 = eval(input("Massa 1: ")) #untuk menginput nilai m1 | ||
+ | m2 = eval(input("Massa 2: ")) | ||
+ | m3 = eval(input("Massa 3: ")) | ||
+ | u_1 = eval(input("Koef gesek 1: ")) | ||
+ | u_2 = eval(input("Koef gesek 2: ")) | ||
+ | u_3 = eval(input("Koef gesek 3: ")) | ||
+ | a = eval(input("percepatan: ")) #percepatan yang ada dibidang miring | ||
+ | sudutalpha = eval(input("alpha: ")) | ||
+ | alpha = (sudutalpha * 1/180)*pi | ||
+ | c = sin(alpha) | ||
+ | d = cos(alpha) | ||
+ | |||
+ | b1 = m1*g*(c-u_1*d) - m1*a | ||
+ | b2 = m2*g*(c-u_2*d) - m2*a | ||
+ | b3 = m3*g*(c-u_3*d) - m3*a | ||
+ | |||
+ | b = array([b1,b2,b3]) | ||
+ | T = array([[1,0,0], | ||
+ | [-1,1,0], | ||
+ | [0,-1,1]]) | ||
+ | |||
+ | hasil = linalg.solve(T,b) | ||
+ | T1 = hasil[0] | ||
+ | T2 = hasil[1] | ||
+ | T3 = hasil[2] | ||
+ | |||
+ | print(f'Tegangan tali= {T3}') | ||
Berikut adalah video penjelasan untuk case 2 yang ada pada UTS | Berikut adalah video penjelasan untuk case 2 yang ada pada UTS | ||
[[File:Case_1B.mp4]] | [[File:Case_1B.mp4]] |
Revision as of 15:41, 29 October 2019
TUGAS AFTER UTS
Berikut adalah video penjelasan untuk case 1 yang ada pada UTS
Cara 1
Cara 2
Algoritma 2
from numpy import *
g = 9.81 #percepatan gravitasi m1 = eval(input("Massa 1: ")) #untuk menginput nilai m1 m2 = eval(input("Massa 2: ")) m3 = eval(input("Massa 3: ")) u_1 = eval(input("Koef gesek 1: ")) u_2 = eval(input("Koef gesek 2: ")) u_3 = eval(input("Koef gesek 3: ")) a = eval(input("percepatan: ")) #percepatan yang ada dibidang miring sudutalpha = eval(input("alpha: ")) alpha = (sudutalpha * 1/180)*pi c = sin(alpha) d = cos(alpha)
b1 = m1*g*(c-u_1*d) - m1*a b2 = m2*g*(c-u_2*d) - m2*a b3 = m3*g*(c-u_3*d) - m3*a
b = array([b1,b2,b3]) T = array([[1,0,0], [-1,1,0], [0,-1,1]])
hasil = linalg.solve(T,b) T1 = hasil[0] T2 = hasil[1] T3 = hasil[2]
print(f'Tegangan tali= {T3}')
Berikut adalah video penjelasan untuk case 2 yang ada pada UTS