Sabtu, 21 September 2013

PHP Indonesia - Facebook: [help]gan, gimana cara menggandakan matrik? dan me...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
All Tech news in ONE place

Tired of browing thru hundreds of RSS feeds? Try Techi. All the tech news from around the web in ONE place, including exclusive articles. Daily newsletter.
From our sponsors
[help]gan, gimana cara menggandakan matrik? dan me...
Sep 21st 2013, 07:18, by Rere Saputra

Rere Saputra 7:18am Sep 21
[help]gan, gimana cara menggandakan matrik?
dan membuat nested dan temporari untuk kasus sperti dbwah?
misal:
$data matrik awal
iterasi pertama
hasil1 $matriks
iterasi kedua
data dari hasil1 $matriks yang diperoses maka dapat hasil2 $matrik
itersasi ketiga
data dari hasil2 $matriks yang diproses
posisi berhenti adalah looping ketiga

for ($i=0;$i<count($data);$i++)
{
for ($j=0;$j<count($data[$i]);$j++)
{
$matriks[$i][$j] = (($data[$i][0]*$data[0][$j])+($data[$i][1]*$data[1][$j])+($data[$i][2]*$data[2][$j]));
}

}

echo "<pre>";
print_r($matriks);
echo "</pre>";

diatas baru untuk satu loop aja gan,
mohon pencerahan gan :3

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar