implies ⇒ and equivalent ⇔ operators #2660
Replies: 5 comments
-
For the question about extending mathjs with custom operators, take a look at #467. Currently you would have to modify the parser yourself manually. The logical operators Because mathjs isn't a computer algebra system, comparing expressions would essentially come down to evaluating it and comparing the value. Wouldn't
Not quite sure what you intend those operators to do. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the pointer to #467 I'm trying to implement a (simple) proof checker. ⇔ is quite identical to == but doesn't expand to TeX with the same symbol and only operates on logical propositions/boolean values At the moment, I use them through math.parse and FunctionNode |
Beta Was this translation helpful? Give feedback.
-
Implementing these operators seems quite feasible. But ultimately it's @josdejong's decision. If Jos accepts this the only issue that remains in my opinion, is the choice of the operators. I don't think it is a good idea to introduce unicode operators into mathjs. So maybe |
Beta Was this translation helpful? Give feedback.
-
Interesting discussion, thanks. Some ideas that crossed my mind:
|
Beta Was this translation helpful? Give feedback.
-
Point 1 would be awesome. But I can do without points 1, 2, 3 for the moment (thanks to FunctioNode) |
Beta Was this translation helpful? Give feedback.
-
math.js implement the logical operators or, and, not, xor.
Why doesn't it implement "implies" ⇒ and "equivalence" ⇔ ?
Also, is there a way to extend math.js with operators ? with symbols ? (with corresponding eval and toTex callBacks ) ?
Beta Was this translation helpful? Give feedback.
All reactions