Posts

Showing posts from January, 2020

IF #4 Menyederhanakan Rangkaian dengan Peta Karnaugh Gampang Banget

Image
Langkah : Ubah menjadi bentuk standar apabila belum standar Susun petak 2 n Gabun minterm untuk   2 n Contoh Soal : Z = f(A,B,C) = A'B + BC' + BC + AB'C' Penyelesaian : Dari minterm yang  didapatkan, yaitu 2,3,4,6,7 akan kita bawa ke tabel kebenaran. dimana berdasarkan urutan tabel dengan urutan 2,3,4,6,7 akan bernilai 1 dan sisanya 0 Setelah itu, dibawa ke peta carnaugh untuk dilakukan penyederhanaan, ingat untuk memberikan kotak pada peta carnaugh harus 2^n. Aturannya adalah ketika sama akan tetap, jika beda akan hilang . Misal pada contoh dibawah ini pada kolom kode 6 dan 4. Kolom 6 : ABC (110) Kolom 4 : ABC (100) Terlihat A di 6 dan A di 4 sama-sama bernilai 1 sehingga tetap (A) Terlihat B di 6 dan B di 4 berbeda sehingga dihilangkan Terlihat C di 6 dan C di 4 sama-sama bernilai 0 sehingga tetap (C') Sehingga hasil akhirnya adalah AC' dan hasil penyederhanaan dari rangkaian adalah Y = B + AC...

IF #3 : Cara Mencari Eagen Value Dan Eagen Vector Dengan Mudah

Image
Diketahui Matriks berikut : Tentukan : Eigen value dan eigen vektornya! Basis dari eigen spacenya! Basis orthonormal dari eigenspacenya! Buktikan apakah matriks A dapat di diagonalisasi! Penyelesaian : Mencari eigen value : Mencari  eigen vector  : Basis dari eigen space : Basis orthonormal dari eigenspace : Apakah matriks A bisa di Diagonalisasi? :

[SOLVED] Give Notification When Can't Delete Primay Key Row Which is Foreign Key of Another Table

Image
As we know, to maintain data integrity, when we delete a primary key row that is used as a foreign key in another table it will be error because it is restrict. but if the data has not been used of course it can still be deleted. One of the ways that data can be erased is to use the ON DELETE CASCADE feature if we used phpmyadmin, where when the primary key is deleted the data that uses the primary key as a foreign key will also be deleted. But the problem is that if important data is erased, data integrity will be lacking. So here I will give a solution where the data condition remains RESTRICT and there is a notification when the data cannot be deleted. this time I use codeigniter framework. I have two table like this Table 1 : Sumber Table 2 : Barang i want to give delete button from my view , so that the code like below : Views : tampil_sumber.php (click trash button) ..... <?php echo $this->session->flashdata('message');?> ... ...

[SOLVED] Uncaught SoapFault exception

I have a code like this : <?php  $client = new SoapClient (null, array( 'location' => "http://localhost/phpws/praktikum41/service.php", 'uri' => "urn://localhost/p11", )); $return = $client->__soapCall("tambah",array(3,2)); echo "Hasil penjumlahan web service 3+2 = ".$return; ?> Then, on my browser i have error message like this : Fatal error : Uncaught SoapFault exception: [Client] looks like we got no XML document in C:\xampp\htdocs\phpws\praktikum41\client.php:28 Stack trace: #0 C:\xampp\htdocs\phpws\praktikum41\client.php(28): SoapClient->__soapCall('tambah', Array) #1 {main} From this message, i got there are exception on function __soapCall. So, i have solution like this : <?php $client = new SoapClient (null, array( 'location' => "http://localhost/phpws/praktikum41/service.php", 'uri' => "urn://localhost/p11", 'trace...