Test | Status | Code Input and Output |
---|---|---|
1 | Pass |
coeffs = [6 8 7 9 12 467];
candidateX = quintic(coeffs);
assert(isreal(candidateX))
assert(abs(sum(coeffs.*(candidateX.^(5:-1:0)))-0)<0.0001)
|
2 | Pass |
coeffs = [4 6 7 8 2 1];
candidateX = quintic(coeffs);
assert(isreal(candidateX))
assert(abs(sum(coeffs.*(candidateX.^(5:-1:0)))-0)<0.0001)
|
3 | Pass |
for idx = 1:10
coeffs = randi([1 50],1,6);
candidateX = quintic(coeffs);
assert(isreal(candidateX))
assert(abs(sum(coeffs.*(candidateX.^(5:-1:0)))-0)<0.0001)
end
|
54229 Solvers
Find a subset that divides the vector into equal halves
332 Solvers
Make a run-length companion vector
512 Solvers
Permute diagonal and antidiagonal
224 Solvers
81 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!