// Some numerical techniques C-program
#include<stdio.h>
#include<stdlib.h>
#include"functions.h"
int main()
{
int choice;
while(1)
{
printf("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
printf("\n\t\tMENU");
printf("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
printf("\n1. BISECTION");
printf("\n2. REGULA FALSI METHOD");
printf("\n3. NEWTON RAPSHON METHOD");
printf("\n4. SECANT METHOD");
printf("\n5. SUCSSIVE APPROXIMATION METHOD");
printf("\n6. GAUESSIAN METHOD");
printf("\n7. LEGRANGENCE INTERPOLATION METHOD");
printf("\n8. LEGRANGENCE INVERSE INTERPOLATION METHOD");
printf("\n9. NEWTONS BACKWARD INTRPOLATION METHOD");
printf("\n10. NEWTONS FORWARD INTERPOLATION METHOD");
printf("\n11. TRAPIZOIDAL METHOD");
printf("\n12. SIMPSONS 1 BY 3 METHOD");
printf("\n13. LU DECOMPOSITION");
printf("\n14. EULERS METHOD");
printf("\n15. RUNGE KUTTA 2 ORDER");
printf("\n16. RUNGE KUTTA 4 ORDER");
printf("\n\n ENTER YOUR CHOICE = ");
scanf("%d",&choice);
switch(choice)
{
case 1:
bisection();
break;
case 2:
regula_falsi();
break;
case 3:
newtonrapson();
break;
case 4:
secant();
break;
case 5:
succesive_approximation();
break;
case 6:
gauessian();
break;
case 7:
legrangence();
break;
case 8:
legrangence_inverse_interpolation();
#include<stdio.h>
#include<stdlib.h>
#include"functions.h"
int main()
{
int choice;
while(1)
{
printf("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
printf("\n\t\tMENU");
printf("\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
printf("\n1. BISECTION");
printf("\n2. REGULA FALSI METHOD");
printf("\n3. NEWTON RAPSHON METHOD");
printf("\n4. SECANT METHOD");
printf("\n5. SUCSSIVE APPROXIMATION METHOD");
printf("\n6. GAUESSIAN METHOD");
printf("\n7. LEGRANGENCE INTERPOLATION METHOD");
printf("\n8. LEGRANGENCE INVERSE INTERPOLATION METHOD");
printf("\n9. NEWTONS BACKWARD INTRPOLATION METHOD");
printf("\n10. NEWTONS FORWARD INTERPOLATION METHOD");
printf("\n11. TRAPIZOIDAL METHOD");
printf("\n12. SIMPSONS 1 BY 3 METHOD");
printf("\n13. LU DECOMPOSITION");
printf("\n14. EULERS METHOD");
printf("\n15. RUNGE KUTTA 2 ORDER");
printf("\n16. RUNGE KUTTA 4 ORDER");
printf("\n\n ENTER YOUR CHOICE = ");
scanf("%d",&choice);
switch(choice)
{
case 1:
bisection();
break;
case 2:
regula_falsi();
break;
case 3:
newtonrapson();
break;
case 4:
secant();
break;
case 5:
succesive_approximation();
break;
case 6:
gauessian();
break;
case 7:
legrangence();
break;
case 8:
legrangence_inverse_interpolation();
break;
case 9:
backward_interpolation();
break;
case 10:
forward_interpolation();
break;
case 11:
trapizoidal();
break;
case 12:
simpsons_1by3();
break;
case 13:
lu();
break;
case 14:
eulers();
break;
case 15:
rk_2_order();
break;
case 16:
rk_4_order();
break;
case 17:
exit(1);
default:
printf("\nENTER PROPER VALUE\n");
}
}
}
case 9:
backward_interpolation();
break;
case 10:
forward_interpolation();
break;
case 11:
trapizoidal();
break;
case 12:
simpsons_1by3();
break;
case 13:
lu();
break;
case 14:
eulers();
break;
case 15:
rk_2_order();
break;
case 16:
rk_4_order();
break;
case 17:
exit(1);
default:
printf("\nENTER PROPER VALUE\n");
}
}
}