Difference between revisions of "Irfan Rahadi Kurninato"

From ccitonlinewiki
Jump to: navigation, search
Line 69: Line 69:
 
  UTS 23 oktober
 
  UTS 23 oktober
 
  '''3 A'''
 
  '''3 A'''
  m1 = eval(input("m1 ? "))
+
'''# Cara 1'''
  m2 = eval(input("m2 ? "))
+
  m1 = eval(input("Massa Benda 1 ? "))
  m3 = eval(input("m3 ? "))
+
  m2 = eval(input("Massa Benda 2 ? "))
  m4 = eval(input("m4 ? "))
+
  m3 = eval(input("Massa Benda 3 ? "))
  g = eval(input("gravitasi ? "))         
+
  m4 = eval(input("Massa Benda 4 ? "))
 +
  g = eval(input("Gravitasi ? "))         
 
  sinusa = ((m1+m2+m3)/m4)
 
  sinusa = ((m1+m2+m3)/m4)
 
  T1 = m1*sinusa*g
 
  T1 = m1*sinusa*g
Line 81: Line 82:
 
  print("T2",T2)
 
  print("T2",T2)
 
  print("T3", T3)
 
  print("T3", T3)
  print("alfa", sinusa)
+
  print("Sin theta = ", sinusa,"")
 +
[[File:quis_cara1_irfan.jpg]]
  
 
  '''3 B'''
 
  '''3 B'''

Revision as of 22:57, 28 October 2019

السلام عليكم Irfan Rahadi Kurnianto - 1706036255

[4 September 2019]
Mengapa kita harus belajar kalkulus?
kalkulus adalah mata kuliah dasar teknik. Mata kuliah kalkulus sangat berguna untuk membentuk logika agar mudah dalam belajar suatu hal lain


Tugas 1
Tugas irfan.png
[11 September 2019]
Bit Komputer
Program Catur
coding bukan pelajaran anak fasilkom/elektro
belajar python
praktek programing
dasar2 programing + pyhton
programnya irfan t2 dikelas
Irfant2.png

[18 September 2019]

Tugas irfan 18 sep 19

[25 September 2019]

Tugas irfan 25 sep 19
catatan irfan 25 sep 19

[Kuis 16 Oktober 2019] program runge kutta

https://pastebin.com/GxfenTa3
# dibuat oleh irfan rahadi 1706036255

def TurunanY(x, y): #Fungsi Turunan Y
return ((x**2 - 4*y))   
xawal = 0 #boundary condition x awal soal
yinit = 1 #boundary condition y awal soal
x = 0.03  #nilai x yang ditanya
h = 0.01  #delta yang digunakan
angka = (int)((x - xawal)/h) #menghitung jumlah increment yg diperlukan  
for i in range(1, angka + 1):
k1 = h * TurunanY(xawal, yinit) #rumus runge kutta
k2 = h * TurunanY(xawal + 0.5 * h, yinit + 0.5 * k1)
k3 = h * TurunanY(xawal + 0.5 * h, yinit + 0.5 * k2)
k4 = h * TurunanY(xawal + h, yinit + k3)
yinit = yinit + (1.0 / 6.0)*(k1 + 2 * k2 + 2 * k3 + k4) #menjumlahkan nilai k1,k2,k3,k4 ke y' yang baru dan membaginya  
xawal = xawal + h #menambahkan xawal besarkan delta h
print(yinit)
 PROGRAM GAUSS
from numpy import linalg 
import numpy as np
a= np.array ([[0,0,2,1,2] ,[0,1,0,2,-1], [1,2,0,-2,1], [0,0,0,-1,1], [0,1,-1,1,-1]])
b= np.array ([[1], [1], [-4], [-2], [-1]])
c= np.array ([[0,0,2,1,2,1] ,[0,1,0,2,-1,1], [1,2,0,-2,1,-4], [0,0,0,-1,1,-2], [0,1,-1,1,-1,-1]])
print ("Matrix a " , a)
print ("Matrix b ", b)
print ("Matrixnya adalah:" , c)
matsolve = linalg.solve (a,c)
x1 = int(matsolve[0])
x2 = int(matsolve[1])
x3 = int(matsolve[2])
x4 = int(matsolve[3])
x5 = int(matsolve[4])
hasil= (x1, x2, x3, x4, x5)
print ("Hasil nilai x1,x2,x3,x4,x5 :")
print (hasil)
UTS 23 oktober
3 A
# Cara 1
m1 = eval(input("Massa Benda 1 ? "))
m2 = eval(input("Massa Benda 2 ? "))
m3 = eval(input("Massa Benda 3 ? "))
m4 = eval(input("Massa Benda 4 ? "))
g = eval(input("Gravitasi ? "))         
sinusa = ((m1+m2+m3)/m4)
T1 = m1*sinusa*g
T2 = m2*sinusa*g + T1
T3 = m3*sinusa*g + T2
print("T1", T1)
print("T2",T2)
print("T3", T3)
print("Sin theta = ", sinusa,"")
File:Quis cara1 irfan.jpg
3 B
vtop = eval(input("vtop ? "))
percepatan  = eval(input("a ? "))
t = (2*vtop/percepatan)**(1/2)
print(t)