Difference between revisions of "No 1 B"

From ccitonlinewiki
Jump to: navigation, search
 
Line 35: Line 35:
  
 
[[File:utsmetnumdimaznomor2.png]]
 
[[File:utsmetnumdimaznomor2.png]]
 +
 +
<comments voting"plus" />

Latest revision as of 16:42, 30 October 2019

from math import *

from sympy import *

g == 9.81

dens = 1.2

cd = eval(input('Masukkan nilai drag coefficient! '))

A = eval(input("masukkan nilai luas area kendaraan "))

m = eval(input('masukkan berat mobil '))

a = eval(input('masukkan nilai percepatan mobil '))

v1 = eval(input('masukkan kecepatan akhir mobil'))

fs = g*u

f1 = a

for v0 in range (0,v1):

   fdrag = (cd*A*dens*v0**2)/2*m

atot = f1 - (fdrag + fs)

t = -(v1)/atot

print('percepatan total adalah ', atot, 'm/s^2')

print('waktu yang diperlukan untuk mencapai kecepatan max adalah ', t)


Utsmetnumdimaznomor2.png


Add your comment
ccitonlinewiki welcomes all comments. If you do not want to be anonymous, register or log in. It is free.