Source code yang lucu

Cross posting dari blog saya yang ini.

Hari ini saya dapat sesuatu yang aneh bagi saya. Kenapa? Soalnya saat saya membuka SCeLE(situs e-learning milik Fasilkom UI) pada mata kuliah Analisis Numerik, ada source code dalam matlab(dengan file ekstensi .m) yang di-upload oleh dosen saya. Terus-terus yang lucu apa?

Lihat aja source code-nya:

function [L,U,p]=LUPivot(A)
U=A;
[n n] = size(A);
p=1:n;
for j=1:n-1
    [x k]=max(abs(U(j:n,j)));
    k=k+j-1;
    tmp1=U(k,smile;tmp2=p(k);
    U(k,smile=U(j,smile;p(k)=p(j);
    U(j,smile=tmp1;p(j)=tmp2;
    L(p(j),j)=1.0;
    for i=j+1:n
        m=U(i,j)/U(j,j);
        L(p(i),j)=m;
        U(i,j:n)=U(i,j:n)-m*U(j,j:n);
    end
end
en=zerosno; enno=1;
for i=1:n
    L(p(i),n)=en(i);
end

Gimana? Kalau ngga lucu buka aja link di bawah.

Note: kalau mau lihat gambar dari Firefox > di sini.

5 Comments »

RSS feed for comments on this post. TrackBack URI

  1. kok bisa ya ada variable kayak gitu?

    Comment by fitrirachmawati — February 19, 2009 #

  2. iiih…. lucu nya…. :ngayal:

    hoe hoe hoe ….

    Comment by Faruk — March 5, 2009 #

  3. :muntah:

    Comment by ikhma — March 11, 2009 #

  4. ih iyaaa
    yang nulisnya lucu…….

    :naksir::naksir::naksir:

    Comment by deni — March 11, 2009 #

  5. karena defaultnya tanda-tanda seperti itu akan diubah logo-logo smiley. Makanya dikasih tag (tanpa spasi) terlebih dahulu kalo mau ngasih source code :hi::capek::hiks:

    Comment by arief — March 30, 2009 #

Leave a comment

:hi: :naksir: :keren: :ngayal: more »

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Powered by WordPress with GimpStyle Theme design by Horacio Bella.
Entries and comments feeds. Valid XHTML and CSS.

Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported
This work by toni dermawan y is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported.