Problem 44274. Calculate the sum of two polynomials
53.75% Correct | 46.25% Incorrect
Last Solution submitted on Mar 15, 2023
Christian Schröder on 22 Oct 2022
Doesn't nonzeros() remove non-leading zeros as well?
Dyuman Joshi on 22 Oct 2022
It does, and this solution will fail when any of the intermediate coefficients are zero in any of the two polynomials.
Problem Recent Solvers69
More from this Author1
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!