Unicode mathjs extension proposals #3365
gwhitney
started this conversation in
Design decisions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
√x
sqrt(x)
30°
30 deg
∑[2,3,4]
sum([2,3,4])
∏[2,3,4]
prod([2,3,4])
∑_(i=1)^5 i^2
sum(range(1,5).map(_(i) = i^2)
sum
is 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^2
product(range(1,5).map(_(i) = i^2)
a·b
a*b
*
, but it is the standard mathematical notation.v × w
cross(v,w)
v ⟂ w
v * w == 0
v ⊙ w
dotMultiply(v, w)
A ⊗ B
kron(A, B)
f∘g
_(x) = f(g(x))
x ≠ y
unequal(x,y)
a ∧ b ∨ ¬c
a and b or not(c)
a ∪ b ∩ c
setUnion(a, setIntersect(b))
a ∆ b
setSymDifference(a, b)
a ⊆ b
setIsSubset(a, b)
a ⊇ b
setIsSubset(b, a)
a ∖ b
setDifference(a, b)
x ∈ S
x is an element of S
r ∠ t
r*(cos(t) + i*sin(t))
⌊x⌋
floor(x)
⌈x⌉
ceil(x)
a ≤ b
a <= b
a ≥ b
a >= b
x ≡ y (mod m)
(x-y) % m == 0
a ∣ b
b % 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