RECAP JAWABAN UTS 23 OKT 2019

From ccitonlinewiki
Revision as of 23:54, 29 October 2019 by Gidion.maruli (talk | contribs)
Jump to: navigation, search

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)