4 ms·
There isn't a way to check order for complex numbers in any reasonable way.
by yequalsx 11y ago
There isn't a way to check order for complex numbers in any reasonable way.
- nandemo 11y agoBut the problem statement doesn't imply the rule involves ordering. Likely, it doesn't accept complex numbers (or vectors or matrices) as input as part of the (implicit) spec: in common parlance, "number" tends to mean real number.
- yequalsx 11y agoThe tests with real numbers indicate that the rule is one based on order. So the problem doesn't state this but it is easily deducible when working with real numbers. Hence no need to check complex numbers. In common parlance in mathematical circles "number" tends not to mean real number unless context makes this obvious.