Malavika-Srinivasan / CAS741

Course Website for CAS 741
Other
0 stars 1 forks source link

[UnitVnVPlan Review] Question about T4 #45

Closed hananezlitni closed 5 years ago

hananezlitni commented 5 years ago

In test case T4 (verify degree), the exception message says that the degree cannot be a real number. Do you mean it cannot be a decimal? When I think of a degree, for example 45deg, 45 is considered a real number, right? Correct me if I’m wrong.

Malavika-Srinivasan commented 5 years ago

@hananezlitni

The degree refers to the order of the polynomial. So, it cannot be a decimal number.

45 is a natural number or a positive integer. But 45.0 will be a real number. Also, I could see the ambiguity in the error message, so I changed it to degree must be a natural number.