Currently browsing tag

method

Numerical Methods Solution of simultaneous algebraic equations using Gauss Jordan method in C

Numerical Methods: Solution of simultaneous algebraic equations using Gauss Jordan method in C Source Code: /***************************************************** Program: solution of linear algebraic equations using Gauss Jordan Method Language used: C Program written by Bibek Subedi July 2, 2011 Tribhuvan University *****************************************************/ #include int main() { double matrix[10][10],a,b; int i, j, k, …

Numerical Methods Solution of simultaneous algebraic equations using Gauss Elimination method in C

Numerical Methods: Solution of simultaneous algebraic equations using Gauss Elimination method in C Source Code: /***************************************************** Program: Solution of Linear algebraic equations using Gauss Elimination method Language used: C Program written by Bibek Subedi *****************************************************/ #include int main() { double matrix[10][10],a,b, temp[10]; int i, j, k, n; printf(“Enter the no …

Numerical Methods Interpolation with unequal interval with Lagranges method in C

Numerical Methods: Interpolation with unequal interval with Lagrange’s method in C Source Code: ///Interpolation with unequal intervals with Lagrange’s Formula #include #include #include COORD coord = {0, 0}; void gotoxy (int x, int y) { coord.X = x; coord.Y = y; // X and Y coordinates SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE), coord); } int …

Write Code for Humans not Machines

Programmers spend more their time reading someone else’s code than reading or writing their own. This is why it is important that whoever writes the code pays particular attention not only to what it does but also to how it does it. For a compiler, it makes no difference if …