C program for operations on polynomials using structures
02:41output :>
1 : create 1'st polynomial
2 : create 2'nd polynomial
3 : Add polynomials
4 : Multiply polynomials
5 : Evaluate 1'st polynomial
6 : Quit
Enter your choice :1
Enter number of terms :2
enter a term(power coeff.)2 3
enter a term(power coeff.)3 2
1 : create 1'st polynomial
2 : create 2'nd polynomial
3 : Add polynomials
4 : Multiply polynomials
5 : Evaluate 1'st polynomial
6 : Quit
Enter your choice :5
Enter the value of x:2
Value of Polynomial = 28.00
1 : create 1'st polynomial
2 : create 2'nd polynomial
3 : Add polynomials
4 : Multiply polynomials
5 : Evaluate 1'st polynomial
6 : Quit
Enter your choice :2
Enter number of terms :2
enter a term(power coeff.)2 4
enter a term(power coeff.)1 5
1 : create 1'st polynomial
2 : create 2'nd polynomial
3 : Add polynomials
4 : Multiply polynomials
5 : Evaluate 1'st polynomial
6 : Quit
Enter your choice :3
1'st polynomial -> 3.00X^2 + 2.00X^3
2'nd polynomial -> 5.00X^1 + 4.00X^2
Sum = 5.00X^1 + 7.00X^2 + 2.00X^3
1 : create 1'st polynomial
2 : create 2'nd polynomial
3 : Add polynomials
4 : Multiply polynomials
5 : Evaluate 1'st polynomial
6 : Quit
Enter your choice :4
1'st polynomial -> 3.00X^2 + 2.00X^3
2'nd polynomial -> 5.00X^1 + 4.00X^2
Product = 15.00X^3 + 22.00X^4 + 8.00X^5
1 : create 1'st polynomial
2 : create 2'nd polynomial
3 : Add polynomials
4 : Multiply polynomials
5 : Evaluate 1'st polynomial
6 : Quit
Enter your choice :6
0 comments: