The input instructions do not say that the degree entered must be unique for each term. Hence, repeated degrees are allowed.
When the same degree is entered for multiple terms, the terms are not merged, while they should be. The simulator treats the terms as distinct, adds them separately and gives distinct terms in the result as well, even when they have the same degree and should be combined.
This is an inefficient way of storing and adding terms.
Steps to reproduce:
Go to this page, and type polynomials with the same degree repeated multiple times. Press 'Add'.
Description:
The input instructions do not say that the degree entered must be unique for each term. Hence, repeated degrees are allowed. When the same degree is entered for multiple terms, the terms are not merged, while they should be. The simulator treats the terms as distinct, adds them separately and gives distinct terms in the result as well, even when they have the same degree and should be combined. This is an inefficient way of storing and adding terms.
Steps to reproduce:
Go to this page, and type polynomials with the same degree repeated multiple times. Press 'Add'.
Expected Result:
The same degree terms should be combined.
Screenshot: