No 1 B
Revision as of 13:40, 29 October 2019 by Dimazadhitya98 (talk | contribs) (Created page with "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 = e...")
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)