KQMATH / tex2max

:books: JavaScript library for converting LaTeX math into Maxima code
https://www.npmjs.com/package/tex2max
GNU General Public License v3.0
14 stars 6 forks source link

Set handling proposal #55

Closed nicolopinci closed 5 years ago

nicolopinci commented 5 years ago

I have implemented sets as following:

Since trigonometric function exponentials are in braces (at least in some of the tests), I have checked the symbol before the brace. In case it is an operator, then the content of the braces is considered a group, otherwise it is considered a set. All the tests work now, but the operator check has to be improved, since expressions like 2{a; b} are transformed into 2(a; b), that doesn't make sense.

TODO: I have to implement some test for sets.

Do you think it is better to use commas and not semicolons? I have implemented semicolons because I thought commas might have been confusing for the user.