We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c81f0ea commit e09e104Copy full SHA for e09e104
src/utils/latex.js
@@ -81,7 +81,7 @@ exports.operators = {
81
'dotPow': '.^\\wedge', // TODO find ideal solution
82
'unaryPlus': '+',
83
'unaryMinus': '-',
84
- 'bitNot': '~', // TODO find ideal solution
+ 'bitNot': '\\~', // TODO find ideal solution
85
'not': '\\neg',
86
'multiply': '\\cdot',
87
'divide': '\\frac', // TODO how to handle that properly?
test/function/bitwise/bitNot.test.js
@@ -60,6 +60,6 @@ describe('bitNot', function () {
60
61
it('should LaTeX bitNot', function () {
62
const expression = math.parse('bitNot(4)')
63
- assert.strictEqual(expression.toTex(), '~\\left(4\\right)')
+ assert.strictEqual(expression.toTex(), '\\~\\left(4\\right)')
64
})
65
0 commit comments