nerdamer icon indicating copy to clipboard operation
nerdamer copied to clipboard

Intervals

Open Happypig375 opened this issue 6 years ago • 2 comments

Solutions to inequalities (#251) would be intervals, such as [-Infinity, 0] and (0, 1]. The closed interval 's syntax is the same as a vector, so some disamiguating syntax would be used.

Happypig375 avatar Sep 24 '17 11:09 Happypig375

The in operator (x in interval) or function (in(x, interval)) would return 1 (or true?) when x is in interval or 0 (or false?) when x is outside the interval. An extension to #252.

Quoted from issue #252. The issue has been moved here

jiggzson avatar Nov 20 '17 20:11 jiggzson

The in operator may have to be a function and not an actual operator. Something like

in(vector, item) 

The return would be 1 for true and 0 for false.

jiggzson avatar Nov 20 '17 20:11 jiggzson