## C Program To Evaluate A Polynomial

Learn How To Write a Code To Evaluate A Polynomial in C Programming Language. For Evaluation of a Polynomial, we first fetch the value of Co – Efficient and store them in the Array. This program is intimidating but is actually very simple if you try a little harder to understand it.

#### What is Polynomial?

A Polynomial is an expression or a mathematical equation which contains variables and constants (also known as Co – Efficients). The different terms in the expression includes the operations of Addition, Non – Negative Integer Exponent, Subtraction and Multiplication. A polynomial is nothing but an algebraic expression. It is also famously known as arithmetic expression.

**Must Read: C Program To Evaluate a Postfix Expression**

#### Method 1: C Program To Evaluate a Polynomial using Function

[crayon-5c1182457f44c279385237/]

#### Method 2: C Program To Evaluate a Polynomial without Function

[crayon-5c1182457f456075176029/]

#### Method 3: C Program To Evaluate a Polynomial using Horner’s Method

[crayon-5c1182457f45d506536806/]

#### Output

If you have any compilation error or doubts in this C Program For Evaluation of Polynomial, let us know about it in the Comment Section below.

The Horner’s method for evaluating a polynomial seems to take Hard Coded values. Will the user defined values work in Horner method like they work in the above two C Programs?

Yes! It will definitely work. The Horner’s method to evaluate a polynomial here takes a hard coded array. You can take input for the array from the User. I think it should work.

So many methods to solve and evaluate a polynomial expression in c programming helped to clear how and when to use functions. Also it helped to analyze how to convert functions into main programs.

I am glad that you liked it. The main reason behind posting 2 different ways of writing how to calculate and evaluate a polynomial in c is to make the programmers understand the minute difference between for and while loops as well as functional approach.

This C Program to evaluate an arithmetic expression is just to good. Thanks.

I implement the polynomial program and i extract the order and coefficients of the given polynomial . I enter x value to that polynomial but it is not giving the correct value.