- 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
-
Return the largest number that is adjacent to a zero
5511 Solvers
-
Return a list sorted by number of occurrences
2888 Solvers
-
4489 Solvers
-
Replace all zeros and NaNs in a matrix with the string 'error'
103 Solvers
-
Who is the smartest MATLAB programmer?
788 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.