Download file Source Code (Ekstensi .C) di sini... Filenya cuma 1 KB
selamat Mendownload
Panji Erick Stenly
Sunday, 22 March 2009
Download Source Code Eliminasi Gauss Jordan (Pivoting)
Posted by
Numerical Method Project
23:54
Thursday, 19 March 2009
Code Program 4.3 (Pivoting)
Posted by
Numerical Method Project
20:46
/* *************************************** */
/* File : pivoting.cpp */
/* Author : Group 9 Numerical Method Class */
/* Date : 1 oktober 2008 */
/* Deskripsi : Program Eliminasi Gauss yang diperbaiki (dengan tataancang Pivoting)*/
/* *************************************** */
#include
#include
#include
float a[11][11];
float x[4];
main()
{
int i, j, n, m, c, b, p, q, L, k;
float pivot, pivot1, pivot2, total, suku, temp;
cout<
cout<
///////////////////////////////////////////////////////////////
cout<
{
for(j=1; j<=m; j++)
{
cout<<" "; cin>>a[i][j];
}
cout<
/////////////////////////////////////////////////////////////
for(i=1;i<=(n-1); i++)
{
j=i;
pivot1 = a[i][j]; c=i; //simpan state pivot1 di c;
if(pivot1 < 0){pivot1 = pivot1 * -1;} // cari harga mutlak pivot1
for(b=(i+1); b<=n; b++)
{
pivot2= a[b][j];
if(pivot2 < 0){ pivot2 = pivot2 * -1;} //cari harga mutlak pivot2
if(pivot2 > pivot1){ pivot1 = pivot2; c=b;} //simpan state pivot2 di c;
}
if(c==i) goto lompat;
for(j=i; j<=m; j++)
{
temp = a[i][j];
a[i][j] = a[c][j];
a[c][j] = temp;
}
lompat:
j=i;
pivot = a[i][j];
for(k=i; k<=(n-1); k++)
{
temp = a[k+1][j];
for(L=i; L<=m; L++)
{
a[k+1][L] = a[k+1][L] - temp /pivot * a[i][L];
}
}
}
////// display
for(i=1;i<=n;i++)
{for(j=1;j<=m;j++)
{
cout<
cout<
///////////// penyulihan mundur
if(a[n][n]==0) {cout<
}
x[n] = a[n][m] / a[n][m-1];
for( p=(n-1); p>=1; p--)
{
total=0;
for( q=(m-1); q > p; q--)
{
suku = a[p][q] * x[q];
total = total + suku; //total suku ruas kiri
}
x[p] = ( a[p][m] - total ) / a[p][p];
}
for(i=1; i<=n; i++){ cout<
getch();
}
Sunday, 8 March 2009
The beauty of mathematics
Posted by
Numerical Method Project
20:31
Salaam and Greetings of Peace:
Here is an interesting and lovely way to look at the beauty of mathematics, and of God, the sum of all wonders.
1 x 8 + 1 = 9
12 x 8 + 2 = 98
123 x 8 + 3 = 987
1234 x 8 + 4 = 9876
12345 x 8 + 5 = 987 65
123456 x 8 + 6 = 987654
1234567 x 8 + 7 = 9876543
12345678 x 8 + 8 = 98765432
123456789 x 8 + 9 = 987654321
1 x 9 + 2 = 11
12 x 9 + 3 = 111
123 x 9 + 4 = 1111
1234 x 9 + 5 = 11111
12345 x 9 + 6 = 111111
123456 x 9 + 7 = 1111111
1234567 x 9 + 8 = 11111111
12345678 x 9 + 9 = 111111111
123456789 x 9 +10= 1111111111
9 x 9 + 7 = 88
98 x 9 + 6 = 888
987 x 9 + 5 = 8888
9876 x 9 + 4 = 88888
98765 x 9 + 3 = 888888
987654 x 9 + 2 = 8888888
9876543 x 9 + 1 = 88888888
98765432 x 9 + 0 = 888888888
Brilliant, isn’t it?
1 x 1 = 1
11 x 11 = 121
111 x 111 = 12321
1111 x 1111 = 1234321
11111 x 11111 = 123454321
111111 x 111111 = 12345654321
1111111 x 1111111 = 1234567654321
11111111 x 11111111 = 123456787654321
111111111 x 111111111 = 12345678987654321
Now, take a look at this…
101%
From a strictly mathematical viewpoint:
What Equals 100%?
What does it mean to give MORE than 100%?
Ever wonder about those people who say they are giving more than 100%?
We have all been in situations where someone wants you to
GIVE OVER 100%.
How about ACHIEVING 101%?
What equals 100% in life?
Here’s a little mathematical formula that might help
Answer these questions:
If:
A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Is represented as:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26.
If:
H-A-R-D-W-O-R- K
8+1+18+4+23+15+18+11 = 98%
And:
K-N-O-W-L-E-D-G-E
11+14+15+23+12+5+4+7+5 = 96%
But:
A-T-T-I-T-U-D-E
1+20+20+9+20+21+4+5 = 100%
THEN, look how far the love of God will take you:
L-O-V-E-O-F-G-O-D
12+15+22+5+15+6+7+15+4 = 101%
Therefore, one can conclude with mathematical certainty that:
While Hard Work and Knowledge will get you close, and Attitude will
Get you there, It’s the Love of God that will put you over the top!
Taken From : http://darvish.wordpress.com/