the 0 polynomial returns undefined when evaluating
Iddoyadlin opened this issue · comments
Iddoyadlin commented
when I evaluate the 0 polynomial, I get a return value of undefined.
I expect the evaluation in this case to return 0.
Example:
> Polynomial('0').eval(1)
> undefined
Robert Eisele commented
Thanks for spotting this error!
Iddoyadlin commented
hmm no problem. This fixes the case for '0', but it still returns undefined for some polynomials that are identical to 0 (but not 0)
> Polynomial('x-x').eval(1)
< undefined
Thanks for fixing so quickly!
Robert Eisele commented
Sorry, fixed again.