Top 10 Programming Language to learn in 2023

Are you a programming enthusiast looking to stay ahead of the curve in 2023? With the ever-evolving tech landscape, keeping up with the Best Programming Language to learn can be a daunting task. Fear not, as we have compiled a list of the top 10 Programming Languages that you should consider learning in 2023. Python: This versatile language continues to dominate in 2023, with its ease of use, readability, and a vast library of modules. JavaScript: As web development grows increasingly popular, JavaScript remains a crucial player, with its ability to create dynamic and interactive web pages. Java: This language has stood the test of time and remains a popular choice for enterprise software development. C++: A staple in the gaming and systems development industries, C++ offers exceptional performance and memory management. Swift: Apple's preferred language for iOS app development, Swift continues to grow in popularity with its simplicity and reliability. R: As data science and machin...

C program to find value using secant method | C programming

C program to find value using secant method | C programming


#include<stdio.h>
#include <math.h>
#include<conio.h>
#define EST 0.05
#define F(x) x-exp(x)+2
int main()
{
int i = 1;
float x0,x1,a,b,c,d,f1,x2,f0,error;
printf("\nEnter the value of x0: ");
scanf("%f",&x0);
printf("\nEnter the value of x1: ");
scanf("%f",&x1);
printf("\n__________________________________________________________________\n");
printf("\niteration\tx0\t x1\t f0\t f1\t x2\t\terror");
printf("\n___________________________________________________________________\n");
f0=F(x0);
f1=F(x1);
x2=x1-((f1*(x1-x0))/(f1-f0));
printf("%f",x2);
error=fabs((x2-x1)/x2);
printf("\n %d \t %.2f\t %.2f\t %.2f \t %.3f \t %.3f \t %.3f", i, x0,x1,f0,f1,x2,error);
do{
i++;
x0=x1;
f0= f1;
x1=x2;

f0=F(x0);
f1=F(x1);
x2=x1-((f1*(x1-x0))/(f1-f0));
error=fabs((x2-x1)/x2);
printf("\n %d \t %.2f\t %.2f\t %.2f \t %.4f \t %.4f \t %.4f", i, x0,x1,f0,f1,x2,error);
}while(error>EST);
printf("\n__________________________________________________________\n");
printf("\n\nApp.root = %f",x2);
return 0;
}

Comments

Popular posts from this blog

Array in C Programming | C Programming

C program to Find Cartesian Product of Two Sets | C programming

Eliminating Epsilon transition (ε-Transitions) | Conversion of Epsilon-NFA to DFA | Conversion of Epsilon-NFA to NFA | Theory Of Computation (TOC)