Unicode mathjs extension proposals #3365
Replies: 5 comments
-
|
Oh and of course per #3335, if we were going to go unicode-positive, we should allow standard constants like τ, π, and perhaps γ. |
Beta Was this translation helpful? Give feedback.
-
|
A few more possibilities:
|
Beta Was this translation helpful? Give feedback.
-
|
Also see the very old https://github.com/davidson16807/unicodemath which was (is?) a sort of mathjs clone based on using unicode symbols, with its own version of typed-function for operator overloading and everything! Since it was so long ago, it made the dubious choice of using letters from other alphabets that happen to look like math symbols, which I think is a poor choice, but it could still be a mine for operations that one might want to allow in MaJE (the "MathJs Expressions" language), just with the proper modern symbols as needed. |
Beta Was this translation helpful? Give feedback.
-
|
Thanks Glen, nice overview! Good to keep these ideas in mind when working on #3420, not all notations needed for the ideas above are supported by the parser right now I think. |
Beta Was this translation helpful? Give feedback.
-
|
And now we have #3593 -- we should look for equivalents to standard delimiters in other writing systems supported by Unicode as well. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This is a companion discussion to #3364 collecting and adding proposals for extensions to the mathjs expression language based on the use of Unicode symbols, now that the standard is long established and it is becoming easier and easier to enter and deal with such characters.
√xsqrt(x)30°30 deg∑[2,3,4]sum([2,3,4])∏[2,3,4]prod([2,3,4])∑_(i=1)^5 i^2sum(range(1,5).map(_(i) = i^2)sumis what was specifically proposed in #3075, and as it is has a direct AsciiMath notation, it is a proposal that makes a lot of sense.∏_(i=1)^5 i^2product(range(1,5).map(_(i) = i^2)a·ba*b*, but it is the standard mathematical notation.v × wcross(v,w)v ⟂ wv * w == 0v ⊙ wdotMultiply(v, w)A ⊗ Bkron(A, B)f∘g_(x) = f(g(x))x ≠ yunequal(x,y)a ∧ b ∨ ¬ca and b or not(c)a ∪ b ∩ csetUnion(a, setIntersect(b))a ∆ bsetSymDifference(a, b)a ⊆ bsetIsSubset(a, b)a ⊇ bsetIsSubset(b, a)a ∖ bsetDifference(a, b)x ∈ Sx is an element of Sr ∠ tr*(cos(t) + i*sin(t))⌊x⌋floor(x)⌈x⌉ceil(x)a ≤ ba <= ba ≥ ba >= bx ≡ y (mod m)(x-y) % m == 0a ∣ bb % a == 0|f′(x)derivative(f, x)Γ(x)gamma(x)𝒫(S)setPowerset(S)ζ(z)zeta(z)℃Unicode is so huge, it's unlikely this table is exhaustive. So feel free to recommend others or discuss any of these proposals.
Beta Was this translation helpful? Give feedback.
All reactions