|
|
(5 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| Algoritma | | Algoritma |
| | | |
− | == Soal A==
| + | *[[Soal A UTS ]] |
| | | |
| + | *[[Soal B UTS]] |
| | | |
− | Untuk soal B
| + | Muhasabah |
| | | |
− | from math import *
| + | *[[Video Muhasabah UTS]] |
− | | |
− | from sympy import *
| |
− | | |
− | ro = 1.2
| |
− | | |
− | g = 9.8
| |
− | | |
− | cd = eval(input("drag coefficient: "))
| |
− | | |
− | area = eval(input("luas area(m^2): "))
| |
− | | |
− | m = eval(input("massa mobil(kg): "))
| |
− | | |
− | vt = eval(input("kecepatan akhir(m/s): "))
| |
− | | |
− | a = eval(input("percepatan(m/s^2): "))
| |
− | | |
− | koefg = eval(input("koef gesek: "))
| |
− | | |
− | fgesek = g*koefg
| |
− | | |
− | fmobil = a
| |
− | | |
− | for vo in range (0,vt):
| |
− | | |
− | fdrag = (cd*area*ro*vo**2)/2*m
| |
− | | |
− | atotal = (fmobil - (fdrag+fgesek))
| |
− | | |
− | t = - vt/atotal
| |
− | | |
− | print("waktu untuk mencapaii topspeed(s): ", t)
| |
− | | |
− | print("percepatan total(m/s^2): ", atotal)
| |
− | | |
− | [[File:N2UTS.png]]
| |
− | | |
− | [[File:bandicam 2019-10-29 20-39-11-028.mp4]] | |