- Suppose there is a vector v like [1 0 0 -1], representing polynomial coefficients.
- In this example, the polynimial is 1*x^3+0*x^2+0*x-1 or (x^3-1).
- Suppose there is another vector w like [1 -1].
- In this example, the second polynomial is (x-1).
- If x is any integer then the polynomial represented by (v/w) is integer?
Solution Stats
Problem Comments
1 Comment
Solution Comments
Show comments
Loading...
Problem Recent Solvers60
Suggested Problems
-
Find the peak 3n+1 sequence value
2565 Solvers
-
514 Solvers
-
Set some matrix elements to zero
621 Solvers
-
207 Solvers
-
07 - Common functions and indexing 5
428 Solvers
More from this Author99
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
This problem needs to have its description fixed. It should be "Is the polynomial represented by (v/w) an integer for any integer x except for the roots of w? if the integer x is a root of w, we will have a NaN, which is the case for the test case #1 and the value x=1 for instance.