Experience-Monks / math-as-code

a cheat-sheet for mathematical notation in code form
MIT License
14.98k stars 1.07k forks source link

code comment typo in 'intervals' section #50

Closed sweetIan closed 5 years ago

sweetIan commented 7 years ago

the code example goes like this

var b = [nextafter(0, Infinity), 1]                           // interval closed on the left 
var c = [0, nextafter(1, -Infinity)]                          // interval closed on the right

however, I think the correct version is

var b = [nextafter(0, Infinity), 1]                           // interval closed on the right
var c = [0, nextafter(1, -Infinity)]                          // interval closed on the left
mattdesl commented 5 years ago

Should be fixed now