Difference between revisions of "RECAP JAWABAN UTS 23 OKT 2019"

From ccitonlinewiki
Jump to: navigation, search
(Created page with "from math import from sympy import g=9.81 pr=1.2 cd= eval(input("drag coef:")) area= eval(input("area (m^2): ")) v0= eval(input("velocity: ")) m= eval(input("massa benda(kg)...")
 
Line 1: Line 1:
from math import
+
from math import*
from sympy import
+
from sympy import*
  
 
g=9.81
 
g=9.81
Line 9: Line 9:
 
v0= eval(input("velocity: "))
 
v0= eval(input("velocity: "))
 
m= eval(input("massa benda(kg): "))
 
m= eval(input("massa benda(kg): "))
u= eval(input"koef gesek: ")
+
u= eval(input("koef gesek: "))
 
a= eval(input ("percepatan(m/s^2): "))
 
a= eval(input ("percepatan(m/s^2): "))
 
t= eval(input (" waktu dari diam ke gerak(s): "))
 
t= eval(input (" waktu dari diam ke gerak(s): "))
Line 17: Line 17:
 
f1 = a
 
f1 = a
 
atot = f1 - (fdrag+fs)
 
atot = f1 - (fdrag+fs)
 +
t = -(v1)/atot
 +
 +
print ("percepatan total (m/s^2):",atot
 +
print ("waktu yang dibutuhkan untuk v1: ",t)

Revision as of 23:54, 29 October 2019

from math import* from sympy import*

g=9.81 pr=1.2

cd= eval(input("drag coef:")) area= eval(input("area (m^2): ")) v0= eval(input("velocity: ")) m= eval(input("massa benda(kg): ")) u= eval(input("koef gesek: ")) a= eval(input ("percepatan(m/s^2): ")) t= eval(input (" waktu dari diam ke gerak(s): "))

fs = g*u fdrag = (cd*area*pro*v0**2)/2*m f1 = a atot = f1 - (fdrag+fs) t = -(v1)/atot

print ("percepatan total (m/s^2):",atot print ("waktu yang dibutuhkan untuk v1: ",t)