All you have to do is think of each x in the polynomial as a power of 10.
Therefore x is actually 10
x^2 = 100
x^3 = 1000
and so on....
So here is an example.
Polynomial given: x^8 + x^6 + x^3 + x + 1
In binary form it would be - 101001011
So for each x^(of whatever) if it exists then put a one in that location if not it is zero. At least this is the easy way I think about doing it.
Chat with our AI personalities
Transmission Media
5
write a c++ program to convert binary number to decimal number by using while statement
All I know is that when a number is negative, you convert the decimal into binary and if it is negative you put 1111 before the binary digits.
Write algorithms and draw a corresponding flow chart to convert a decimal number to binary equivalent?